|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.util.LoadDTSInThread
public class LoadDTSInThread
Load a DTS in a separate thread. This class is responsible of loading and validating a DTS against the XBRL 2.1 specification and the XDT specification. Other validation processors can use the DTS returned by this object for further validation process. Separate licenses are required for XBRL 2.1 validation and XDT 1.0 validation. This object implements Runnable so it can be called in a new Thread. Configuration is established during object creation.
| Field Summary | |
|---|---|
static java.lang.String |
DTS_NAME_PROPERTY
This is a very common property used by calling applications that requires to set a name to the DTS after loading |
| Constructor Summary | |
|---|---|
LoadDTSInThread(javax.xml.transform.Source source,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
Creates a new object that will load a DTS and possible perform validation. |
|
LoadDTSInThread(java.lang.String fileName,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
Creates a new object that will load a DTS and possible perform validation. |
|
LoadDTSInThread(java.net.URI[] files,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
Creates a new object that will load a DTS and possible perform validation. |
|
| Method Summary | |
|---|---|
XBRLDocument |
getDoc()
Access to the document that has been loaded in the DTS. |
XBRLDocument |
getDoc(int index)
Access to one of the documents loaded (if invoqued with a set of URIs) |
int |
getDocs()
Returns the number of documents loaded in the DTS |
XBRLDocument[] |
getDocsArray()
Returns the array of documents loaded in the DTS |
DTSContainer |
getDts()
Returns the DTS |
java.util.Properties |
getProperties()
Access to the extra properties initiated by the calling application |
XBRLValidationReport |
getValidationReport()
Access to the validation report |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DTS_NAME_PROPERTY
| Constructor Detail |
|---|
public LoadDTSInThread(java.lang.String fileName,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
throws com.rs.lic.LicenseVerificationException
fileName - File name to load as a string that will be the parameter to File(String).toURI()bDoXBRLValidation - true if XBRL 2.1 validation is required (license is required)bDoXDTValidation - true if XDT 1.0 validation is required (license is required)bErrorsAsExceptions - true if errors must thrown an exception rather that being stored in the XBRLValidationReportbWarningsAsExceptions - true if warnings (calculation inconsistencies) must thrown an exception rather than being stored in the XBRLValidationReportlogHandler - the logHandler to report logging messages. Can be null.level - the level for the messages to be displayed.bar - the DTSLoadingBar for reporting loading and validation process. If null nothing is reported. If not null and not visible this method will make if visible at start and will dispose it at the end. If already visible this method will not dispose the bar at the end.errorHandler - is a class that implements the HasErrorsHandler interface and will be informed of errorssendEventsTo - is a class that implements the HasReceiveXBRLLoadingEvents and will be informed of the finalization of the loading processextraProperties - is a Properties object that an instance of this class can use to push information to be retrieved later by the class receiving the loading eventcompatibleDTS - is a DTSContainer object or null. If null, a new DTSContainer will be created and the extraProperties Properties Object will be used to set the new DTS properties. If not null, the new DTS will be compatible with this DTS (See saxon compatibility between processors) and the properties of the new DTS will be the properties of the old DTS and the extraProperties used in the parameter. The settings in the extraPropeties takes preference over the properties in the old DTS.
com.rs.lic.LicenseVerificationException - In case the license does not allows the user to load the DTS
public LoadDTSInThread(javax.xml.transform.Source source,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
throws com.rs.lic.LicenseVerificationException
source - XML to readbDoXBRLValidation - true if XBRL 2.1 validation is required (license is required)bDoXDTValidation - true if XDT 1.0 validation is required (license is required)bErrorsAsExceptions - true if errors must thrown an exception rather that being stored in the XBRLValidationReportbWarningsAsExceptions - true if warnings (calculation inconsistencies) must thrown an exception rather than being stored in the XBRLValidationReportlogHandler - the logHandler to report logging messages. Can be null.level - the level for the messages to be displayed.bar - the DTSLoadingBar for reporting loading and validation process. If null nothing is reported. If not null and not visible this method will make if visible at start and will dispose it at the end. If already visible this method will not dispose the bar at the end.errorHandler - is a class that implements the HasErrorsHandler interface and will be informed of errorssendEventsTo - is a class that implements the HasReceiveXBRLLoadingEvents and will be informed of the finalization of the loading processextraProperties - is a Properties object that an instance of this class can use to push information to be retrieved later by the class receiving the loading eventcompatibleDTS - is a DTSContainer object or null. If null, a new DTSContainer will be created and the extraProperties Properties Object will be used to set the new DTS properties. If not null, the new DTS will be compatible with this DTS (See saxon compatibility between processors) and the properties of the new DTS will be the properties of the old DTS and the extraProperties used in the parameter. The settings in the extraPropeties takes preference over the properties in the old DTS.
com.rs.lic.LicenseVerificationException - In case the license does not allows the user to load the DTS
public LoadDTSInThread(java.net.URI[] files,
boolean bDoXBRLValidation,
boolean bDoXDTValidation,
boolean bErrorsAsExceptions,
boolean bWarningsAsExceptions,
org.apache.log4j.Appender logHandler,
org.apache.log4j.Level level,
DTSLoadingBarInterface bar,
HasErrorsHandler errorHandler,
HasReceiveXBRLLoadingEvents sendEventsTo,
java.util.Properties extraProperties,
DTSContainer compatibleDTS)
throws com.rs.lic.LicenseVerificationException
files - [] set of URI files to load in the same DTS.bDoXBRLValidation - true if XBRL 2.1 validation is required (license is required)bDoXDTValidation - true if XDT 1.0 validation is required (license is required)bErrorsAsExceptions - true if errors must thrown an exception rather that being stored in the XBRLValidationReportbWarningsAsExceptions - true if warnings (calculation inconsistencies) must thrown an exception rather than being stored in the XBRLValidationReportlogHandler - the logHandler to report logging messages. Can be null.level - the level for the messages to be displayed.bar - the DTSLoadingBar for reporting loading and validation process. If null nothing is reported. If not null and not visible this method will make if visible at start and will dispose it at the end. If already visible this method will not dispose the bar at the end.sendEventsTo - is a class that implements the HasReceiveXBRLLoadingEvents and will be informed of the finalization of the loading processextraProperties - is a Properties object that an instance of this class can use to push information to be retrieved later by the class receiving the loading eventcompatibleDTS - is a DTSContainer object or null. If null, a new DTSContainer will be created and the extraProperties Properties Object will be used to set the new DTS properties. If not null, the new DTS will be compatible with this DTS (See saxon compatibility between processors) and the properties of the new DTS will be the properties of the old DTS and the extraProperties used in the parameter. The settings in the extraPropeties takes preference over the properties in the old DTS.
com.rs.lic.LicenseVerificationException - In case the supplied license does not allows the user to load DTSs| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic XBRLDocument getDoc()
public XBRLDocument getDoc(int index)
index - document index
public int getDocs()
public XBRLDocument[] getDocsArray()
public DTSContainer getDts()
public XBRLValidationReport getValidationReport()
public java.util.Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||