public class XMLDocumentURI extends java.lang.Object implements XBRLDTSDocument, XBRLValidation, XBRLHasDTSTarget, java.io.Serializable
A XMLDocumentURI has a document key, a document URI and a set of child documents.
XBRLValidation.Direction| Constructor and Description | 
|---|
| XMLDocumentURI(DTSContainer dts,
              java.lang.Integer resolvedURI,
              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,
              java.net.URI resolvedURI,
              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 | 
|---|---|
| boolean | addChild(XMLDocumentURI child)Add a new clid to this document list of children. | 
| void | clear()Clear. | 
| void | delChild(XMLDocumentURI child)Removes a child document from the list of document children. | 
| void | discoverDTS(XBRLDTSDocument parent)Discover DTS. | 
| boolean | equals(java.lang.Object obj)Equals. | 
| net.sf.saxon.s9api.XdmValue | evaluateList(java.lang.String string)Evaluate list. | 
| java.net.URI | getBase()Gets the base. | 
| java.util.Iterator<XMLDocumentURI> | getChildren()Access to the Children property. | 
| DTSContainer | getContainer()Returns the DTS Container object. | 
| net.sf.saxon.s9api.XdmNode | getDocument()Returns an XdmNode build from the internal DocumentInfo. | 
| XBRLDocumentRootNode | getDocumentRootNode()Returns the XMLFragment that is the root node of this XMLDocumentURI. | 
| 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.lang.Integer | getDocumentURICode()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. | 
| DTSDiscoveryInfo | getDTSDiscoveryInfo()Gets the DTS discovery info. | 
| java.lang.Integer | getDTSKey()Gets the DTS key. | 
| java.lang.String | getFriendlyName()Returns a string description that represents the element content in a form
 that users can understand. | 
| 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. | 
| net.sf.saxon.s9api.XdmNode | getOldDocument()Returns the document obtained from disk or generated by the last call to updateXML
 
 This method shall be avoided and is in the process to be eliminated from API. | 
| java.lang.String | getPackageName()Provides the package name this file has been obtained from. | 
| java.lang.String | getPackageVersion()Provides version of the package this file has been obtained from. | 
| java.lang.String | getPrefix(java.lang.String namespaceURI)Returns the prefix String associated to the given URI as defined in this node. | 
| java.util.Iterator<java.lang.String> | getPrefixes(java.lang.String namespaceURI)Gets the prefixes. | 
| XBRLValidationReport | getValidationReport()Gets the validation report. | 
| XBRLDocumentInfo | getXBRLDocumentInfo()Gets the XBRL document info. | 
| java.lang.String | getXPathToRoot()Returns an XPath 2.0 expression to locate this document's node starting at this document's root
 This function updates the local namespace context if nodes in the path requires new namespaces
 to be declared. | 
| int | hashCode()Hash code. | 
| void | invalidate()Invalidate. | 
| boolean | invalidate(XBRLValidation.Direction dir)Invalidate. | 
| 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()Checks if is on validation. | 
| void | setContainer(DTSContainer newContainer)Changes the dts container of this . | 
| void | setDocumentURICode(java.lang.Integer newCode)Used internally by the API when one document was loaded in another DTSContainer
 and is moved to another "compatible" DTSContainer. the documentURI code might
 not be equal on both DTContainers so it must be adjusted | 
| void | setDTSDiscoveryInfo(DTSDiscoveryInfo ddInfo)Used when an embedded linkbase is created to inject the internal ddInfo. | 
| void | setDTSKey(java.lang.Integer newValue)This method is used internally by the API when a document
 is moved from one DTSContainer to another DTSContainer. | 
| void | setNodeName(javax.xml.namespace.QName nodeName)Sets a new nodeName to this XMLDocumentURI. | 
| void | setRootNode(XBRLDocumentRootNode instance)Sets the root node. | 
| boolean | 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. | 
| void | setXBRLDocumentInfo(XBRLDocumentInfo documentInfo)Sets the XBRL document info. | 
| XBRLValidationReport | validate(XBRLPlugInProcessor proc)Validate. | 
public XMLDocumentURI(DTSContainer dts, java.net.URI resolvedURI, javax.xml.transform.Source source, boolean bAddToCache, XBRLDTSDocument parent) throws DTSDiscoveryException
dts - the DTSContainer object this new object will belongs toresolvedURI - the resolved URI of documentsource - 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, java.lang.Integer resolvedURI, javax.xml.transform.Source source, boolean bAddToCache, XBRLDTSDocument parent) throws DTSDiscoveryException
dts - the DTSContainer object this new object will belongs toresolvedURI - the resolved URI code of documentsource - 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 DTSContainer getContainer()
getContainer in interface XBRLDTSDocumentpublic void clear()
           throws java.lang.Throwable
clear in interface XBRLDTSDocumentjava.lang.Throwable - the throwablepublic java.io.File getLocalFile()
public java.lang.String getPackageName()
getPackageVersion()public java.lang.String getPackageVersion()
getPackageName()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the objpublic java.lang.String getPrefix(java.lang.String namespaceURI)
namespaceURI - the namespace uripublic java.util.Iterator<java.lang.String> getPrefixes(java.lang.String namespaceURI)
namespaceURI - the namespace URIpublic boolean setURI(java.net.URI uri)
               throws DTSDiscoveryException
TODO: Setting a base uri on a document recalculates all other xlink:href uris in nodes down to the node root. The process must be fired also when xml:base is set on a node that contains sub-nodes.
uri - URIDTSDiscoveryException - the DTS discovery exceptionpublic XBRLDocumentRootNode getDocumentRootNode()
public net.sf.saxon.s9api.XdmNode getDocument()
public net.sf.saxon.s9api.XdmNode getOldDocument()
This method shall be avoided and is in the process to be eliminated from API.
public java.net.URI getDocumentURI()
When an instance document is created from nodes, this property value is also null.
public java.lang.Integer getDocumentURICode()
When an instance document is created from nodes, this property value is also null.
public void setDocumentURICode(java.lang.Integer newCode)
newCode - the new document URI codepublic java.net.URI getBase()
public java.lang.String getFriendlyName()
Remarks, this method may return very long names not suitable for user interface
public java.util.Iterator<XMLDocumentURI> getChildren()
getChildren in interface XBRLHasDTSTargetpublic boolean addChild(XMLDocumentURI child)
child - the childpublic void delChild(XMLDocumentURI child)
child - the childpublic void discoverDTS(XBRLDTSDocument parent) throws DTSDiscoveryException, com.rs.lic.LicenseVerificationException
discoverDTS in interface XBRLDTSDocumentparent - the parentDTSDiscoveryException - the DTS discovery exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic java.lang.Integer getDTSKey()
getDTSKey in interface XBRLDTSDocumentpublic void setDTSKey(java.lang.Integer newValue)
newValue - the new DTS keypublic boolean isInDTS(java.net.URI target)
target - the URI of the XBRL Document to checkpublic XBRLValidationReport getValidationReport()
getValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
validate in interface XBRLValidationproc - the procpublic void invalidate()
invalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
invalidate in interface XBRLValidationdir - the dirpublic boolean isOnValidation()
isOnValidation in interface XBRLValidationpublic DTSDiscoveryInfo getDTSDiscoveryInfo()
public void setXBRLDocumentInfo(XBRLDocumentInfo documentInfo)
documentInfo - the new XBRL document infopublic XBRLDocumentInfo getXBRLDocumentInfo()
public void setDTSDiscoveryInfo(DTSDiscoveryInfo ddInfo)
ddInfo - the new DTS discovery infopublic void setNodeName(javax.xml.namespace.QName nodeName)
nodeName - the new node namepublic void setRootNode(XBRLDocumentRootNode instance)
instance - the new root nodepublic net.sf.saxon.s9api.XdmValue evaluateList(java.lang.String string)
string - the stringpublic java.lang.String getXPathToRoot()
public void setContainer(DTSContainer newContainer)
newContainer - the new containerCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa