public class LoadDTSInThread
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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()
Run.
|
public static final java.lang.String DTS_NAME_PROPERTY
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 DTSpublic 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 DTSpublic 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.errorHandler
- the error handlersendEventsTo
- 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 DTSspublic void run()
run
in interface java.lang.Runnable
public XBRLDocument getDoc()
public XBRLDocument getDoc(int index)
index
- document indexpublic int getDocs()
public XBRLDocument[] getDocsArray()
public DTSContainer getDts()
public XBRLValidationReport getValidationReport()
public java.util.Properties getProperties()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa