|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.DTSContainer
public class DTSContainer
The DTSContainer is the root class that ties all pieces in a DTS together
One instance of a DTSContainer is required on the creator of almost every object in this API.
You can obtain the DTSContainer on every object derived from XMLFragment
Correspondence table between objects in the XBRL Infoset and this API
| Class | Infoset Object |
|---|---|
DTSContainer | 2.2.1 DTS Information Item |
XBRLDocument | 2.2.2 XBRL Document Information Item |
XBRLTaxonomy | 2.2.3 XBRL Taxonomy Information Item |
XBRLImport | 2.2.4 XBRL Imported XBRL Taxonomy Information Item |
XBRLRoleType | 2.2.5 XBRL Role Type Information Item |
XBRLArcroleType | 2.2.6 XBRL Arcrole Type Information Item |
XBRLUsedOn | 2.2.7 XBRL Used On Information Item |
XMLElementDefinition | 2.2.8 XBRL Concept Information Item |
XBRLItem | 2.2.9 XBRL Item Information Item |
XBRLTuple | 2.2.10 XBRL Tuple Information Item |
XBRLLinkbase | 2.2.11 XBRL Linkbase Information Item |
XBRLExtendedLink | 2.2.12 XBRL Extended Link Information Item |
XBRLDocumentation | 2.2.13 XBRL Documentation Information Item |
XBRLRelationship | 2.2.14 XBRL Relationship Information Item |
XBRLResource | 2.2.15 XBRL Resource Information Item |
The DTSContainer implements the Stopable interface in order to allow the GUI to request the cancellation of the operation of opening a DTS.
| Nested Class Summary | |
|---|---|
static class |
DTSContainer.IteratorConcepts
This class joins an iterator over XBRLItem and another iterator over XBRLTuple together into a single Iterator over XMLElementDefinition objects. |
static class |
DTSContainer.ProcessorAndSchemaCompiler
Helper class to encapsulate the saxonica Processor of this DTSContainer and a saxonica SchemaCompiler together. |
| Field Summary | |
|---|---|
static java.lang.String |
ALWAYS_ADD_ref_2006_02_27_xsd_SCHEMA_TO_DTS
ALWAYS_ADD_ref_2006_02_27_xsd_SCHEMA_TO_DTS is defined as "http://www.reportingstandard.com/properties/always_add_ref_2006_02_27_schema_to_DTS" Possible value is a string that can be converted into a boolean "true" or "false" Default value is "false" Some taxonomies does not incorporate the URL of the reference schema http://www.xbrl.org/2006/ref-2006-02-27.xsd to the DTS but use its namespace in the reference linkbase instead. |
static java.lang.String |
CONSIDER_COMPARISON_WITH_NUMBER_WITH_PRECISION_ZERO_AS_INCONSISTENCY
CONSIDER_COMPARISON_WITH_NUMBER_WITH_PRECISION_ZERO_AS_INCONSISTENCY is defined as "http://www.reportingstandard.com/properties/compare-with-number-p-zero-is-inconsistency" Possible value is a String that can be converted into a boolean "true" or "false" Default value is "false" According to the XBRL 2.1 specification in the simple equation A = B + C, if A is zero with precision 0 the comparison must return true regardless the value of B + C. |
static java.lang.String |
CONSIDER_DUPLICATES_AS_INCONSISTENCIES
CONSIDER_DUPLICATES_AS_INCONSISTENCIES is defined as "http://www.reportingstandard.com/properties/duplicate-is-inconsistency" Possible value is a String that can be converted into a boolean "true" or "false" Default value is "false" According to the XBRL 2.1 specification duplicates must be ignored for calculation checking. |
static int |
FAST
FAST is a constant for the mode parameter in the isInstanceOfThisDTS(Source, int) function. |
static int |
FULL
FULL is a constant for the mode parameter in the isInstanceOfThisDTS(Source, int) function. |
static int |
GENERATION_MODE_NODEINFO
ORIGINAL serialization method means that the serialization of this object will be made using the document that was first read from source file. |
static int |
GENERATION_MODE_OBJECTS
GENERATION_MODE_OBJECTS serialization method means that the serialization of this object will be made using the object model and objects in the infoset |
java.util.logging.Logger |
logger
All log information goes throwgh this logger |
static java.lang.String |
SEQUAL_MODE
The SEQUAL_MODE property indicates if the s-equal function follow the rules of the XBRL 2.1 specification or if it should follow the interpretation made by the authors of the XBRL formula specification. |
static java.lang.String |
USE_CACHE_PROPERTY
USE_CACHE_PROPERTY is defined as "http://www.reportingstandard.com/properties/use-cache" Possible values are String that can be converted to a boolean "true" or "false" Default value is "true" Cache is read form the catalog file XBRLCatalog.xml There may be catalog files at the folder where the tool is initiated, or in the user's home directory or both. |
static java.lang.String |
USE_SEQUAL_AS_FORMULA_COMPLIANT
USE_SEQUAL_AS_FORMULA_COMPLIANT is defined as FORMULA_COMPLIANT. |
static java.lang.String |
USE_SEQUAL_AS_XBRL_COMPLIANT
USE_SEQUAL_AS_XBRL_COMPLIANT is defined as XBRL_COMPLIANT. |
static java.lang.String |
USE_XDT_1_0_AS_OF_18_SEP_2006
USE_XDT_1_0_AS_OF_18_SEP_2006 is defined as XDT_18_SEP_2006. |
static java.lang.String |
USE_XDT_1_0_AS_OF_7_SEP_2009
USE_XDT_1_0_AS_OF_7_SEP_2009 is defined as XDT_7_SEP_2009. |
static java.lang.String |
USE_XEQUAL_AS_FORMULA_COMPLIANT
USE_XEQUAL_AS_FORMULA_COMPLIANT is defined as FORMULA_COMPLIANT. |
static java.lang.String |
USE_XEQUAL_AS_XBRL_COMPLIANT
USE_XEQUAL_AS_XBRL_COMPLIANT is defined as XBRL_COMPLIANT. |
static java.lang.String |
XBRL_BASE
The XBRL_BASE property indicates the directory that will be used as base for resolution of files that during the DTS Discovery process. |
static java.lang.String |
XDT_VERSION
The XDT_VERSION property indicates the version of the Dimensions Specification to be used. |
static java.lang.String |
XEQUAL_MODE
The XEQUAL_MODE property indicates if the x-equal function follow the rules of the XBRL 2.1 specification or if it should follow the interpretation made by the authors of the XBRL formula specification. |
| Method Summary | |
|---|---|
void |
addArcroleType(XBRLArcroleType arcrole)
Register a new arcroleType declaration. |
void |
addDocumentToDTS(XBRLDTSDocument d)
Adds a document to the DTS container objects. |
void |
addError(java.lang.Exception e)
|
void |
addResource(XBRLResource resource)
The XBRLResouce initializer calls this method to store a new resource in the DTSContainer cache. |
void |
addRoleType(XBRLRoleType role)
Register a new roleType declaration. |
void |
addRoleTypeForExtendedLink(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
|
void |
addValidationException(XBRLValidationException e)
|
boolean |
cacheContains(java.net.URI documentURI)
Interrogates objects in the cache of documents indexed by documentURI returns true if the documentURI is on the cache The document URI is normalized and absolutized before the index search operation fragments are removed because the cache contains documents. |
XMLDocumentURI |
cacheGet(java.net.URI documentURI)
Obtains a document from the cache indexed by document URI The URI is absolutized and normalized before comparison |
void |
cachePut(XMLDocumentURI documentURI)
Stores a document in the cache indexed by document URI The URI is absolutized and normalized before stored being stored |
void |
cacheRemove(java.net.URI url)
Removes a document form the cache. |
XBRLResource |
cacheResource(XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode ni,
java.lang.Class<? extends XBRLResource> name)
Obtains a resource from the cache or creates a new resource corresponding to the node supplied as a parameter and stores it in the cache for further reference. |
java.util.Iterator<XBRLTaxonomy> |
cacheSchemaByNamespace(java.lang.String namespace)
Obtains a series of XBRLTaxonomy objects from the cache based on the namespace declared in the XBRLTaxonomy schema Results are not indexed Returns the empty sequence if the namespace is not found in the DTS |
int |
cacheSize()
Returns the number of files in the cache |
void |
clear()
Similarly to the clear method in collections, this method frees up memory and resources used in this object. |
void |
delArcroleType(XBRLArcroleType arcrole)
Unregister a loaded arcroleType declaration. |
void |
delConcept(javax.xml.namespace.QName concept)
Removes a concept form the DTS and removes also all relationships this concept participates on. |
void |
delDocumentFromDTS(XBRLDTSDocument d)
|
void |
delResource(XBRLResource resource)
|
void |
delRoleType(XBRLRoleType role)
Unregister a registered roleType |
void |
delRoleTypeForExtendedLink(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
|
boolean |
equals(java.lang.Object obj)
|
XBRLArcroleType |
getArcroleType(java.lang.String uri)
Access to the arcroleType object from the URI. |
java.util.Iterator<XBRLArcroleType> |
getArcroleTypes()
Access to an iterator over defined XBRL Arcrole Types defined on all taxonomies in the loaded DTS. |
DTSBase |
getBase(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
Obtains a base for the specified linkbaseType and role type. |
java.util.Iterator<XBRLRoleType> |
getBaseRoles(javax.xml.namespace.QName linkbaseType)
Iterator over all roles used on xlink:role attributes on extended links Iterator elements can be casted to XBRLRoleType objects |
java.util.Iterator<XBRLRoleType> |
getBaseRoleTypes(javax.xml.namespace.QName extendedLinkQName)
Return an iterator over all XBRLRoleType elements where DTSBase exists. |
java.util.Iterator<javax.xml.namespace.QName> |
getBaseTypes()
Returns an iterator over the QNames of all DTSBases in the DTS this is all types of containers of relationships. |
java.net.URI |
getBaseURI()
Access to the base URI for the XBRL processor |
XMLDocumentURI |
getCacheElement(int index)
Returns the nth element in the cache |
XMLFragment |
getConcept(javax.xml.namespace.QName concept)
Returns a concept declaration in the DTS regardless it is a tuple, item or pure element returns null if the concept is not defined in the DTS or if the value of the QName for the concept parameter is null |
java.util.Iterator<XMLElementDefinition> |
getConcepts()
Iterator over all XBRL Concept declarations (Items and Tuples) in the DTS (crosses all taxonomies) |
net.sf.saxon.s9api.Processor |
getConfiguration()
Obtains the Saxonica Processor object used by all elements in this DTS |
javax.xml.transform.URIResolver |
getDTSURIResolver()
Access to the URIResolver of this DTSContainer. |
java.lang.String[] |
getErrors()
|
net.sf.saxon.s9api.Processor |
getFastConfiguration()
Method to access to the Processor corresponding to this DTSContainer and the status of this DTSContainer. |
java.util.Iterator<XBRLItem> |
getItemDeclarations()
Iterator over all Item concepts declarations in the DTS (crosses all taxonomies) |
java.util.Iterator<java.lang.String> |
getLanguages()
Returns an iterator over all languages used in labels in the DTS |
XBRLLinkbase |
getLinkbaseByURI(java.net.URI u)
Returns the XBRLLinkbase corresponding to the Document URI or null if the URI cannot be found |
java.util.Iterator<java.net.URI> |
getLinkbaseURIs()
Returns an iterator over all linkbase documents in the DTS |
java.lang.String |
getName()
Returns back the DTS name, this is useful for GUIs only. |
static DTSContainer.ProcessorAndSchemaCompiler |
getNewConfiguration(boolean schemaAware,
DTSContainer dts,
java.util.Properties props)
Creates a new Configuration object. |
int |
getNumberOfItemDeclarations()
|
int |
getNumberOfLinkbaseURIs()
Returns the number of linkbase URIs in the DTS |
int |
getNumberOfTaxonomyURIs()
Returns the number of taxonomy URIs in the DTS |
int |
getNumberOfTupleDeclarations()
|
XBRLPlugInProcessor |
getProcessor(java.lang.String processorname)
Returns a registered plug-in processor based on the processor name. |
java.util.Iterator<XBRLPlugInProcessor> |
getProcessors()
Access to all registered plug-in processors |
java.util.Properties |
getProperties()
Access to the properties of this DTSContainer |
DTSLoadingBarInterface |
getRegisteredBar()
If this DTSContainer has a registered object that implements the DTSLoadingBarInterface interface this function returns it. |
XBRLRelationship |
getRelationship(java.lang.String extendedLink,
javax.xml.namespace.QName relationshipType,
java.lang.String arcrole,
java.util.Vector<XMLFragment> attributes,
XMLFragment source,
XMLFragment target)
Returns the relationship that matches the search criteria. |
java.util.Iterator<XBRLRelationship> |
getRelationships(DTSBase base)
Return all relationships in a DTSBase. |
XMLFragment |
getResource(java.lang.String resourceRole,
javax.xml.namespace.QName resourceType,
java.lang.String content,
java.util.Vector<XMLFragment> attributes,
net.sf.saxon.value.Value value,
java.util.Vector<java.lang.String> xpathChildren)
Search for a resource in the DTS with the given id. |
XBRLResource |
getResource(XBRLResource res)
Locates a resource in the DTS that is identical to the resource received as a parameter. |
java.util.Iterator<XBRLResource> |
getResources()
Make sure the DTS has beed validated or the list of resources may not be complete. |
XBRLRoleType |
getRoleType(java.lang.String uri)
Access to the roleType object from the URI. |
java.util.Iterator<XBRLRoleType> |
getRoleTypes()
Access to an iterator over defined XBRL Role Types defined on all taxonomies in the loaded DTS. |
java.net.URI |
getRootURI()
|
java.net.URI[] |
getRootURIs()
|
com.saxonica.schema.SchemaCompiler |
getSchemaCompiler()
Returns the current schema compiler for this configuration object. |
int |
getSerializationMethod()
Obtains the value of the serialization method. |
XBRLArcroleType |
getStaticArcroleTypeByURI(java.lang.String arcrole)
|
static DTSContainer |
getStaticContainer()
The static container exist only for static objects like standard roleTypes and standard arcroleTypes that are not used on any specific DTS. |
XBRLRoleType |
getStaticRoleTypeByURI(java.lang.String role)
|
java.util.Iterator<XBRLTaxonomy> |
getTaxonomyByNamespace(java.lang.String namespace)
Returns an iterator over all taxonomy schemas that matches the corresponding namespace Never returns null |
java.util.Iterator<XBRLTaxonomy> |
getTaxonomyByPrefix(java.lang.String conceptPrefix)
Returns an iterator over all taxonomy schemas whose target namespace matches the prefix. |
XBRLTaxonomy |
getTaxonomyByURI(java.net.URI u)
Returns the XBRLTaxonomy corresponding to the Document URI |
java.util.Iterator<java.net.URI> |
getTaxonomyURIs()
Returns an iterator over all taxonomy documents in the DTS |
java.util.Iterator<XBRLTuple> |
getTupleDeclarations()
Iterator over all Tuple concept declarations in the DTS (crosses all taxonomies) |
XBRLXSDTypeDefinition |
getTypeDefinition(javax.xml.namespace.QName type)
Find the type definition for the specific QName This function does not find new types defined in taxonomy schemas that has not been read from XML files. |
XBRLValidationReport |
getValidationReport()
Access to the internal validation report. |
int |
hashCode()
|
void |
installDTSURIResolver(javax.xml.transform.URIResolver resolver)
Sets a new resolver to this DTSContainer object. |
boolean |
isBaseDefined(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
Returns true if there is a DTSbase defined in the DTS for the given role and of the specified linkbaseType |
boolean |
isDocumentInDTS(java.net.URI key)
Returns true if the document is in the DTS. |
boolean |
isDocumentInDTS(XBRLDTSDocument d)
Search the different DTS document containers and try to find the document in the cache. |
XBRLInstance |
isInstanceOfThisDTS(javax.xml.transform.Source xmlSource,
int mode)
Check whether or not the document in the xmlSource is an instance document according to this DTS. |
boolean |
isInstanceOfThisDTS(XBRLInstance instance,
int mode)
Check whether or not the instance document received as a parameter can be used in this DTSContainer. |
XBRLDocument |
load(javax.xml.transform.Source source)
Load a DTS. |
XBRLDocument[] |
load(javax.xml.transform.Source[] ss)
Load a DTS from a set of urls. |
XBRLDocument |
load(java.net.URI url)
Load a DTS. |
XBRLDocument[] |
load(java.net.URI[] url)
Load a DTS from a set of urls. |
void |
loadExtraSchemas()
Called internally by the API when extra schemas must be loaded in the configuration object and schema compiler |
void |
loadIntoConfiguration()
Switch the configuration object to strict schema validation, then loads all documents in this DTS (thus in the cache) into the configuration object. |
void |
loadIntoConfiguration(XBRLTaxonomy taxonomy)
Load a new schema into the schema compiler. |
static DTSContainer |
mergeDTSs(DTSContainer[] dtss)
Merges several DTSs into a single DTS |
static DTSContainer |
newCompatibleContainer(net.sf.saxon.s9api.Processor proc,
java.util.Properties props)
Creates a new DTSContainer that is compatible with the Processor suppied as a parameter. |
static DTSContainer |
newEmptyContainer()
Method used to create a new empty DTSContainer. |
static DTSContainer |
newEmptyContainer(java.util.Properties props)
Method used to create a new empty DTSContainer. |
void |
readInfoset()
Method used to populate the object model in all objects defined within this DTS |
void |
recompile()
Recompile schemas loaded into the schemaconfiguration. |
void |
registerBar(DTSLoadingBarInterface bar)
Sets the loading bar object that will be informed about progress in the loading process. |
void |
registerProcessor(java.lang.String processorname,
XBRLPlugInProcessor processor)
Called by the processor to self register |
XMLFragment |
resolveXPointer(java.net.URI uriHref,
XMLDocumentURI doc)
resolve the XPointer to the node pointed to The href MUST be absolute |
void |
save(boolean relativize)
Save all files in the DTS. |
boolean |
sEqualMode()
The default value of the SEQUAL_MODE is XBRL_COMPLIANT but the conformance suite of the formula processor requires it to be set to FORMULA_COMPLIANT. |
void |
setName(java.lang.String name)
Sets the name of this DTS to the specified name. |
void |
setProperties(java.util.Properties newProps)
internal method using during class constructors |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a DTSConfiguration property |
void |
setRootURI(java.net.URI newURI)
|
void |
setSerializationMethod(int method)
Sets the serialization method to OBJECTS or ORIGINAL. |
boolean |
shouldStop()
This function will be called by classes that knows what to do if the loading proces of a DTS has been cancelled by the user. |
void |
stop()
This method will be called by another thread in order to request this process to stop execution. |
boolean |
xEqualMode()
The default value of the XEQUAL_MODE is XBRL_COMPLIANT but the conformance suite of the formula processor requires it to be set to FORMULA_COMPLIANT. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USE_CACHE_PROPERTY
public static final java.lang.String CONSIDER_DUPLICATES_AS_INCONSISTENCIES
public static final java.lang.String CONSIDER_COMPARISON_WITH_NUMBER_WITH_PRECISION_ZERO_AS_INCONSISTENCY
public static final java.lang.String ALWAYS_ADD_ref_2006_02_27_xsd_SCHEMA_TO_DTS
public static final java.lang.String USE_XDT_1_0_AS_OF_18_SEP_2006
This is one of the possible values of the XDT_VERSION property of the DTSContainer.
public static final java.lang.String USE_XDT_1_0_AS_OF_7_SEP_2009
This is one of the possible values of the XDT_VERSION property of the DTSContainer.
public static final java.lang.String USE_XEQUAL_AS_XBRL_COMPLIANT
This is one of the possible value of the XEQUAL_MODE property.
public static final java.lang.String USE_XEQUAL_AS_FORMULA_COMPLIANT
This is one of the possible value of the XEQUAL_MODE property.
public static java.lang.String XEQUAL_MODE
The value of the XEQUAL_MODE constant is "http://www.reportingstandard.com/properties/x-equal"
The default value for the property is USE_XEQUAL_AS_XBRL_COMPLIANT which is safer in all conditions except when passing the XBRL functions comformance suite.
public static final java.lang.String USE_SEQUAL_AS_XBRL_COMPLIANT
This is one of the possible value of the SEQUAL_MODE property.
public static final java.lang.String USE_SEQUAL_AS_FORMULA_COMPLIANT
This is one of the possible value of the SEQUAL_MODE property.
public static java.lang.String SEQUAL_MODE
The value of the SEQUAL_MODE constant is "http://www.reportingstandard.com/properties/s-equal"
The default value for the property is USE_SEQUAL_AS_XBRL_COMPLIANT which is safer in all conditions except when passing the XBRL functions comformance suite.
public static java.lang.String XDT_VERSION
The value of the XDT_VERSION constant is "http://www.reportingstandard.com/properties/xdt-version".
The default value for the property it refers to is USE_XDT_1_0_AS_OF_7_SEP_2009 which is the lastest release with errata corrections of the XDT specification.
public static java.lang.String XBRL_BASE
The data type of this property is a URI. Users MUST take care the provided String can be converted into a URI
The default value depends on the existence of a value for the environment variable XBRLCATALOGPATH.
if that variable is set. the default value will be ${XBRLCATALOGPATH}/Other/
if that variable is not set, the default value is the directory where the processor is running. "user.dir"/
Note that the xbrl-base is a directory so the method reading this property value ensures the value ends with a slash character "/" in order to allow proper resolution of local files.
public static final int FAST
isInstanceOfThisDTS(Source, int) function.
It indicates that the comparison of the DTS will use only the files explicitly referenced in this file and not
the files inside files referenced in this file (no recurse discovery of DTS files). This is faster but DTSs that
contains the same files using different starting points will not be found.
public static final int FULL
isInstanceOfThisDTS(Source, int) function.
It indicates that the comparison of the DTS will use all files in the DTS of both documents. This is slowest than
FAST comparison but will detect all DTS that are the same DTS regardless the starting points of discovery
are the same on both DTSs under comparison.
public java.util.logging.Logger logger
public static final int GENERATION_MODE_NODEINFO
public static final int GENERATION_MODE_OBJECTS
| Method Detail |
|---|
public void setProperty(java.lang.String name,
java.lang.String value)
name - value - public void setProperties(java.util.Properties newProps)
newProps - public java.util.Properties getProperties()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void registerBar(DTSLoadingBarInterface bar)
bar - DTSLoadingBar objectpublic DTSLoadingBarInterface getRegisteredBar()
This function is used internally by the API in order to send messages to the GUI during the process of dts discovery and loading a DTS into the object model.
public javax.xml.transform.URIResolver getDTSURIResolver()
public void installDTSURIResolver(javax.xml.transform.URIResolver resolver)
resolver - public void setName(java.lang.String name)
name - public java.lang.String getName()
public void clear()
throws java.lang.Throwable
XBRLValidationException
java.lang.Throwable
public static DTSContainer newEmptyContainer()
throws com.rs.lic.LicenseVerificationException
After object instantiation you may be interested in using any of the load methods in order to load the DTS into the container.
The default DTSContainer created using this method takes the default value for all DTS properties.
The USE_CACHE_PROPERTY value is true
com.rs.lic.LicenseVerificationException
public static DTSContainer newEmptyContainer(java.util.Properties props)
throws com.rs.lic.LicenseVerificationException
com.rs.lic.LicenseVerificationException
public static DTSContainer newCompatibleContainer(net.sf.saxon.s9api.Processor proc,
java.util.Properties props)
throws com.rs.lic.LicenseVerificationException
proc - Processor (saxonica s9api)props - Properties. May be null.
com.rs.lic.LicenseVerificationException
public static DTSContainer mergeDTSs(DTSContainer[] dtss)
throws com.rs.lic.LicenseVerificationException
dtss - DTSContainer[] array of DTSs to merge into a single DTS
com.rs.lic.LicenseVerificationException - Only thrown when the license is limited to a set of files and there is a file in the DTS that is out of the valid list of files under the license
XBRLValidationExceptionpublic static DTSContainer getStaticContainer()
public void addDocumentToDTS(XBRLDTSDocument d)
d - XMLDocumentURIpublic void delDocumentFromDTS(XBRLDTSDocument d)
public void save(boolean relativize)
throws XBRLSerializationException
relativize - true if the URIs will be relativized according to the parent
document. False to absolutize all URIs
XBRLSerializationExceptionpublic boolean isDocumentInDTS(XBRLDTSDocument d)
d - XMLDocumentURI
public boolean isDocumentInDTS(java.net.URI key)
Note: The URI must be absolute and the URI text MUST NOT have non US-ASII characters. Non US-ASCII characters must be transformed into escaped UTF-8 characters previously to calling this function.
key - the Document URI to search for
public java.util.Iterator<javax.xml.namespace.QName> getBaseTypes()
public java.util.Iterator<XBRLRoleType> getBaseRoles(javax.xml.namespace.QName linkbaseType)
linkbaseType -
XBRLValidationException
public void addRoleTypeForExtendedLink(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
public void delRoleTypeForExtendedLink(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
public boolean isBaseDefined(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
linkbaseType - QNamerole - XBRLRoleType
public DTSBase getBase(javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
linkbaseType - QNamerole - XBRLRoleType
XBRLValidationException
DTSDiscoveryExceptionpublic java.util.Iterator<XBRLRoleType> getBaseRoleTypes(javax.xml.namespace.QName extendedLinkQName)
extendedLinkQName - QName
public net.sf.saxon.s9api.Processor getConfiguration()
public void recompile()
throws DTSDiscoveryException
DTSDiscoveryExceptionpublic net.sf.saxon.s9api.Processor getFastConfiguration()
If schemas has been already compiled this method returns the shared Processor. If the status of this DTSContainer is still reading external files then a new Processor non schema aware will be created.
public static DTSContainer.ProcessorAndSchemaCompiler getNewConfiguration(boolean schemaAware,
DTSContainer dts,
java.util.Properties props)
schemaAware - boolean (true if the new configuration object MUST be schema aware)dts - a DTSContainer object suitable to provide schemas from the cache or null if not available at this timeprops - Properties to the DTSConfiguration object
public boolean cacheContains(java.net.URI documentURI)
The document URI is normalized and absolutized before the index search operation
fragments are removed because the cache contains documents.
documentURI -
public java.util.Iterator<XBRLTaxonomy> cacheSchemaByNamespace(java.lang.String namespace)
Results are not indexed
Returns the empty sequence if the namespace is not found in the DTS
namespace - String
public XMLDocumentURI cacheGet(java.net.URI documentURI)
documentURI -
public int cacheSize()
public XMLDocumentURI getCacheElement(int index)
public void cachePut(XMLDocumentURI documentURI)
documentURI - public void cacheRemove(java.net.URI url)
url - URI
public XBRLResource cacheResource(XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode ni,
java.lang.Class<? extends XBRLResource> name)
resources are indexed by the NodeInfo element
parent - - Extended link where the XBRLResource resides. Can be null if the XBRLResource is in the cache.ni - - NodeInfo, cannot be nullname - - class of the resource to be created if no resource exist in the cache
public void addResource(XBRLResource resource)
throws XBRLDuplicateException
resource -
XBRLDuplicateResource
XBRLValidationException
XBRLDuplicateExceptionpublic XBRLResource getResource(XBRLResource res)
res - XBRLResource
public java.util.Iterator<java.lang.String> getLanguages()
public void delResource(XBRLResource resource)
public XBRLDocument load(java.net.URI url)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
url - a Taxonomy schema, linkbase or instance document
DTSDiscoveryException - is XBRL errors were found
com.rs.lic.LicenseVerificationException - Only thrown when the license is limited to a set of files and there is a file in the DTS for which there is no license
public XBRLDocument[] load(java.net.URI[] url)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
url - an array of Taxonomy schemas, linkbases or instance documents
DTSDiscoveryException - is XBRL errors were found
com.rs.lic.LicenseVerificationException - Only thrown when the license is limited to a set of files and there is a file in the DTS for which there is no license
public XBRLDocument load(javax.xml.transform.Source source)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
source - a Taxonomy schema, linkbase or instance document as a javax.xml.transform.Source. Note the SystemId value in the source will be used for the resolution of relative URLs in the file
DTSDiscoveryException - is XBRL errors were found
com.rs.lic.LicenseVerificationException - Only thrown when the license is limited to a set of files and there is a file in the DTS for which there is no license
public XBRLDocument[] load(javax.xml.transform.Source[] ss)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
ss - array of Source objects
DTSDiscoveryException
com.rs.lic.LicenseVerificationException
public void loadIntoConfiguration()
throws XBRLValidationException,
com.rs.lic.LicenseVerificationException
XBRLValidationException
com.rs.lic.LicenseVerificationException - Thrown if there is a file in the DTS for which the license is not valid. Only happens if the license is limited to a set of files. Open licenses does not generate this exceptionpublic java.net.URI getRootURI()
public java.net.URI[] getRootURIs()
public void setRootURI(java.net.URI newURI)
newURI -
public void loadIntoConfiguration(XBRLTaxonomy taxonomy)
throws net.sf.saxon.type.SchemaException
taxonomy -
net.sf.saxon.type.SchemaExceptionpublic void addError(java.lang.Exception e)
public java.lang.String[] getErrors()
public XBRLArcroleType getStaticArcroleTypeByURI(java.lang.String arcrole)
public XBRLRoleType getStaticRoleTypeByURI(java.lang.String role)
public java.util.Iterator<XBRLRelationship> getRelationships(DTSBase base)
throws XBRLValidationException
base - DTSBase The base to be interrogated
XBRLValidationExceptionpublic void setSerializationMethod(int method)
OBJECTS means that the objects that are part of this document will be used to serialize the document. This is the default value and it is safe because during the loading phase the infoset is read and the infoset contains an object model representation of all possible content.
ORIGINAL is faster and even safer than OBJECTS unless the application has changed things in the objects of this document.
method - integer code of the new Methodpublic int getSerializationMethod()
public XBRLArcroleType getArcroleType(java.lang.String uri)
uri - String with the arcroleURI to search for
XBRLValidationExceptionpublic XBRLRoleType getRoleType(java.lang.String uri)
uri - String with the roleURI to search for
XBRLRuntimeExceptionpublic java.util.Iterator<XBRLRoleType> getRoleTypes()
XBRLRuntimeException - encapsulating XBRLValidationException if any occurs during the process of reading role typespublic java.util.Iterator<XBRLArcroleType> getArcroleTypes()
XBRLRuntimeException - encapsulating XBRLValidationException if any occurs during the process of reading arcrole typespublic void addRoleType(XBRLRoleType role)
role -
XBRLValidationExceptionpublic void delRoleType(XBRLRoleType role)
role - XBRLRoleTypepublic void addArcroleType(XBRLArcroleType arcrole)
arcrole - XBRLArcroleType definition to add to this DTS
XBRLValidationExceptionpublic void delArcroleType(XBRLArcroleType arcrole)
arcrole - XBRLArcroleType
public int getNumberOfItemDeclarations()
throws XBRLValidationException
XBRLValidationException
public int getNumberOfTupleDeclarations()
throws XBRLValidationException
XBRLValidationExceptionpublic java.util.Iterator<XBRLItem> getItemDeclarations()
public java.util.Iterator<XBRLTuple> getTupleDeclarations()
public java.util.Iterator<XMLElementDefinition> getConcepts()
public java.util.Iterator<XBRLResource> getResources()
public java.util.Iterator<XBRLTaxonomy> getTaxonomyByPrefix(java.lang.String conceptPrefix)
conceptPrefix -
public java.util.Iterator<XBRLTaxonomy> getTaxonomyByNamespace(java.lang.String namespace)
namespace -
public java.util.Iterator<java.net.URI> getTaxonomyURIs()
public int getNumberOfTaxonomyURIs()
public java.util.Iterator<java.net.URI> getLinkbaseURIs()
public int getNumberOfLinkbaseURIs()
public XBRLTaxonomy getTaxonomyByURI(java.net.URI u)
u - URI of the taxonomy to retrieve
public XBRLLinkbase getLinkbaseByURI(java.net.URI u)
u - URI of the taxonomy to retrieve
public void readInfoset()
throws XBRLValidationException
XBRLValidationExceptionpublic XMLFragment getConcept(javax.xml.namespace.QName concept)
Returns a concept declaration in the DTS regardless it is a tuple, item or pure element
returns null if the concept is not defined in the DTS or if the value of the QName for the concept parameter is null
concept -
public void delConcept(javax.xml.namespace.QName concept)
concept - QName
public XBRLRelationship getRelationship(java.lang.String extendedLink,
javax.xml.namespace.QName relationshipType,
java.lang.String arcrole,
java.util.Vector<XMLFragment> attributes,
XMLFragment source,
XMLFragment target)
extendedLink - relationshipType - arcrole - attributes - source - target -
XBRLValidationException
public XMLFragment getResource(java.lang.String resourceRole,
javax.xml.namespace.QName resourceType,
java.lang.String content,
java.util.Vector<XMLFragment> attributes,
net.sf.saxon.value.Value value,
java.util.Vector<java.lang.String> xpathChildren)
throws XBRLValidationException
resourceRole - StringresourceType - QNamecontent - String "simple" or "complex"attributes - Vectorvalue - the value for simple type resources
XBRLValidationException
public boolean isInstanceOfThisDTS(XBRLInstance instance,
int mode)
instance - mode - can be DTSContainer.FAST constant or DTSContainer.FULL (slowest) comparison. FULL comparison considers the whole DTS.
FAST comparison considers only the files explicitly referenced in this file.
public XBRLInstance isInstanceOfThisDTS(javax.xml.transform.Source xmlSource,
int mode)
xmlSource - mode - can be DTSContainer.FAST constant or DTSContainer.FULL (slowest) comparison. FULL comparison considers the whole DTS.
FAST comparison considers only the files explicitly referenced in this file.
com.rs.lic.LicenseVerificationException - Thrown if the license does not allow one of the files in the DTS. Can onl occur if the license is limited to a set of filespublic XBRLXSDTypeDefinition getTypeDefinition(javax.xml.namespace.QName type)
This function does not find new types defined in taxonomy schemas that has not been read from XML files.
type - QName
public void addValidationException(XBRLValidationException e)
e - public XBRLValidationReport getValidationReport()
public void loadExtraSchemas()
throws XBRLSchemaException
XBRLSchemaExceptionpublic com.saxonica.schema.SchemaCompiler getSchemaCompiler()
This method is for internal use only.
public void stop()
StopableThere is no warantee the process will stop inmediatelly
stop in interface Stopablepublic boolean shouldStop()
public XBRLPlugInProcessor getProcessor(java.lang.String processorname)
Processors are created by calling the create function of the processor main class. they automatically self register within the DTS that is used as a parameter. Further calls to the create method using the same DTS as a parameter will always return the already registered processor.
processorname - Processor token name (statically defined on each processor class)
public void registerProcessor(java.lang.String processorname,
XBRLPlugInProcessor processor)
processorname - processor - public java.util.Iterator<XBRLPlugInProcessor> getProcessors()
public boolean xEqualMode()
This is because some test cases in the formula comformance sute assumes that the comparison of XBRL entities texts are trim before thay are compared but this operation is not required in the XBRL specification.
public boolean sEqualMode()
This is because some test cases in the formula comformance sute assumes that the comparison of nodes should skip ids in nested nodes while this is not stated in the XBRL 2.1 specification.
public java.net.URI getBaseURI()
XBRL_BASE
public XMLFragment resolveXPointer(java.net.URI uriHref,
XMLDocumentURI doc)
throws XBRLValidationException
uriHref - the URI to resolvedoc - XMLDocumentURI in which uriHRef exist. if null then the XMLDocumentURI is obtained from the cache.
XBRLValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||