|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.XMLDocumentURI
public class XMLDocumentURI
This class represents an XML Document that exist in a DTS.
A XMLDocumentURI has a document key, a document URI and a set of child documents.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary |
|---|
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
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 embeded linkbases 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. |
|
| Method Summary | |
|---|---|
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 the resulting 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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 messages
DTSDiscoveryException - if an error occurs
public 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.
dts - DTSContainerextendedLinkNode - is the element in the xl:extended substitution group. The node that identifies the linkbase type| Method Detail |
|---|
public 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.Throwablepublic java.io.File getLocalFile()
public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object obj)
XMLFragment
equals in class XMLFragment
public void setURI(java.net.URI uri)
throws DTSDiscoveryException
uri - URI
DTSDiscoveryExceptionpublic java.net.URI getDocumentURI()
public java.net.URI getBase()
XMLFragment
getBase in interface XMLHasParentgetBase in class XMLFragmentpublic java.util.Iterator<XMLDocumentURI> getChildren()
getChildren in interface XBRLHasDTSTargetpublic void addChild(XMLDocumentURI child)
child - public void delChild(XMLDocumentURI child)
child -
public void discoverDTS(XBRLDTSDocument parent)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
XBRLDTSDocument
discoverDTS in interface XBRLDTSDocumentDTSDiscoveryException
com.rs.lic.LicenseVerificationExceptionpublic java.net.URI getDTSKey()
XBRLDTSDocument
getDTSKey in interface XBRLDTSDocument
public XBRLLocator generateLocatorToDocument(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
relativize - if true, xlink:href will be relative to base URIbase - URI for relativization
XBRLSerializationExceptionpublic boolean isInDTS(java.net.URI target)
target - the URI of the XBRL Document to check
public XBRLValidationReport getValidationReport()
XBRLValidation
getValidationReport 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()
XBRLValidation
invalidate 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()
XBRLValidation
isOnValidation in interface XBRLValidation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||