public class XMLDocumentURI extends XMLFragment implements XBRLDTSDocument, XBRLValidation, XBRLHasDTSTarget
A XMLDocumentURI has a document key, a document URI and a set of child documents.
XBRLValidation.DirectionCONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, HIDE_COMMON_ACCURACY, idQName, NO_POSITION, OrderComparator, OrderComparator2, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER| Constructor and Description |
|---|
XMLDocumentURI(DTSContainer dts,
java.net.URI baseURI,
java.net.URI theURI,
javax.xml.transform.Source source,
boolean bAddToCache,
XBRLDTSDocument parent)
Create a DocumentURI from the cache or reading it from the supplied URI if it is not
in the cache.
|
XMLDocumentURI(DTSContainer dts,
net.sf.saxon.s9api.XdmNode extendedLinkNode)
For embedded link bases or creation of XBRLDocuments from a XML Source
This creator just creates a new XMLFragment and assigns it to the XdmNode
received as a parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(XMLDocumentURI child)
Add a new clid to this document list of children.
|
void |
clear()
Frees-up used memory
This method should not be invoqued on live objects in the DTS.
|
void |
delChild(XMLDocumentURI child)
Removes a child document from the list of document children.
|
void |
discoverDTS(XBRLDTSDocument parent)
Fires the rules of DTS Discovery for this object.
|
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object.
|
XBRLLocator |
generateLocatorToDocument(boolean relativize,
java.net.URI base)
Creates an XBRLLocator pointing to this document URI.
|
java.net.URI |
getBase()
Search for an attribute called xml:base on this node
and returns a resolved URI considering the content of the xml:base in ancestor nodes and the
document URI.
|
java.util.Iterator<XMLDocumentURI> |
getChildren()
Access to the Children property.
|
java.net.URI |
getDocumentURI()
Every DocumentURI has a unique URI except embeded linkbases
this function returns the document URI or null for embeded linkbases
When an instance document is created from nodes, this property value
is also null.
|
java.net.URI |
getDTSKey()
Provides a key that can be used to index the document in the cache.
|
java.io.File |
getLocalFile()
Provides the local file name on the file system even if the surrounding file has systemID of the
official URL on the Internet. or null if the source does not have that information stored.
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report.
|
int |
hashCode() |
void |
invalidate()
Invalidates the XBRLFact for XBRL validation.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidates this object and the elements in the XML tree according with the parameter in dir
This method is used by GUI tools that requires to reset validation before a manual validation
cycle is started.
|
boolean |
isInDTS(java.net.URI target)
Returns true if the document pointed to by the URI can be discovered
in the DTS that would result using this document as the Starting
point for DTS Discovery.
|
boolean |
isOnValidation()
When validation is a recursive process, this function returns true if the
object going to be validated is already under validation.
|
void |
setURI(java.net.URI uri)
Sets the value of the URI of this XMLDocumentURI
If the document is in the cache and the supplied URI is not null
or is different from the original URI this method throws an
XBRLInternalErrorException.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
addAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNode, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFriendlyName, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParent, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolve_equal2, resolveHRef, resolveHRef, s_equal2, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setId, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualpublic XMLDocumentURI(DTSContainer dts, java.net.URI baseURI, java.net.URI theURI, javax.xml.transform.Source source, boolean bAddToCache, XBRLDTSDocument parent) throws DTSDiscoveryException
dts - the DTSContainer object this new object will belongs tobaseURI - the base URI of documenttheURI - the document URI to readsource - source form where to read the document. If null then the document is obtained form the indicated URIbAddToCache - true if the document will be added to the cache of documents readparent - optional (may be null) URL of parent document in order to property create error messagesDTSDiscoveryException - if an error occurspublic XMLDocumentURI(DTSContainer dts, net.sf.saxon.s9api.XdmNode extendedLinkNode)
This creator just creates a new XMLFragment and assigns it to the XdmNode received as a parameter.
This creator does not add the DocumentURI to the cache
This method is also used by the IXBRLProcessor when a new XMLDocumentURI has to be created from the content of the transformed nodes (XBRL Report just extracted) so it can be used to build a new XBRLInstance without using the SchemaAware configuration object. This way, the XBRLInstance is transformed into the schema aware configuration object at a later time when changeConf is normally executed.
Remember to call setURI(URI) and assign a URI after this instance is created and before calling load and using
this XBRLDocumentURI
dts - DTSContainerextendedLinkNode - is the element in the xl:extended substitution group. The node that identifies the linkbase typepublic void clear()
throws java.lang.Throwable
XMLFragmentThis method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.
clear in interface XBRLDTSDocumentclear in class XMLFragmentjava.lang.Throwable - the throwablepublic java.io.File getLocalFile()
public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object obj)
XMLFragmentequals in class XMLFragmentobj - the otherpublic void setURI(java.net.URI uri)
throws DTSDiscoveryException
uri - URIDTSDiscoveryException - the DTS discovery exceptionpublic java.net.URI getDocumentURI()
When an instance document is created from nodes, this property value is also null.
public java.net.URI getBase()
XMLFragmentgetBase in interface XMLHasParentgetBase in class XMLFragmentpublic java.util.Iterator<XMLDocumentURI> getChildren()
getChildren in interface XBRLHasDTSTargetpublic void addChild(XMLDocumentURI child)
child - the childpublic void delChild(XMLDocumentURI child)
child - the childpublic void discoverDTS(XBRLDTSDocument parent) throws DTSDiscoveryException, com.rs.lic.LicenseVerificationException
XBRLDTSDocumentdiscoverDTS in interface XBRLDTSDocumentparent - the parentDTSDiscoveryException - the DTS discovery exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic java.net.URI getDTSKey()
XBRLDTSDocumentgetDTSKey in interface XBRLDTSDocumentpublic XBRLLocator generateLocatorToDocument(boolean relativize, java.net.URI base) throws XBRLSerializationException
relativize - if true, xlink:href will be relative to base URIbase - URI for relativizationXBRLSerializationException - the XBRL serialization exceptionpublic boolean isInDTS(java.net.URI target)
target - the URI of the XBRL Document to checkpublic XBRLValidationReport getValidationReport()
XBRLValidationgetValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
XBRLValidation
The validation result may be cached internally. A call to XBRLValidation.invalidate(Direction) clears the validation cache.
validate in interface XBRLValidationproc - the processor under which the object is going to be validated. Note the same object can be validated on multiple processors.public void invalidate()
XBRLValidationinvalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
XBRLValidationThis method is used by GUI tools that requires to reset validation before a manual validation cycle is started.
invalidate in interface XBRLValidationdir - see the XBRLValidation.Direction enumeration for more information.public boolean isOnValidation()
XBRLValidationisOnValidation in interface XBRLValidation