|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.MultiDTSValidationService
public class MultiDTSValidationService
This class supports hyper fast XBRL validation by using a configuration file where multiple DTS are pre-defined. A new instance document will be compared against the already loaded DTSs and validated against the DTS it matches. Validation is hyper fast because the DTS is already loaded in memory and reused multiple times.
| Constructor Summary | |
|---|---|
MultiDTSValidationService()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCalculatedFileName()
Access to the file name of this file after substitution of all variables. |
void |
init(java.net.URI absURI,
java.net.URI baseURI)
Initializes the service using the configuracion file received in the absURI parameter. |
void |
setVariable(java.lang.String variableName,
java.lang.String variableValue)
Variables can be used to change the document URL dynamically. |
boolean |
validate(MultiDTSValidationFile item,
MultiDTSValidationHandler multiDTSValidationHandler)
Validates the XBRL Report that can be created reading the inputStream and passes validation report to the instance of the multiDTSValidationHandler that can operate in consequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiDTSValidationService()
| Method Detail |
|---|
public void init(java.net.URI absURI,
java.net.URI baseURI)
throws XBRLInitializationException
absURI - the configuration file URIbaseURI - this is the baseURI used for the resolution of the configuration file. it is used to resolve taxonomies that are indicated without
official URL
XBRLInitializationException
public boolean validate(MultiDTSValidationFile item,
MultiDTSValidationHandler multiDTSValidationHandler)
throws java.io.IOException
inputStream - as InputStreammultiDTSValidationHandler - as MultiDTSValidationHandler
java.io.IOExceptionpublic java.lang.String getCalculatedFileName()
public void setVariable(java.lang.String variableName,
java.lang.String variableValue)
Variables are replaced in the document URL as indicated in the following example: a variable URL may contain $(variable_name) then the entire string $(variable_name) is replaced by the variable value. for example:
http://www.exaple.com/repository/xbrl/$(PERIOD)/$(COMPANY_CODE)/$(INSTANCE_FILENAME) contains 3 variable definitions that will be replaced by the variable values at the time the validate method is called.
Well know variable names:
variableName - variableValue -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||