|
||||||||||
| 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
com.ihr.xbrl.om.XBRLDocument
com.ihr.xbrl.om.exLinks.XBRLLinkbase
public class XBRLLinkbase
Provides the properties of the XBRL Linkbase information item
The [Parent] property is the parent class XBRLDocument
An XBRL Linkbase is just the container of documentation and extended links. The extended links contains the locators, arcs and resources that are connected with the concept definitions in the taxonomy. The Linkbase is just the container element.
According to the XBRL 2.1 specification an XBRL Linkbase can be the root element in a separate document (called external linkbases) or can exist inside an XML schema in xs:annotation/xs:appinfo/link:linkbase elements called embedded linkbases.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
linkbaseDocNode
|
| Fields inherited from class com.ihr.xbrl.om.XBRLDocument |
|---|
INSTANCE, IXBRL, LINKBASE, TAXONOMY |
| 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 | |
|---|---|
XBRLLinkbase(DTSContainer dts)
Creates a XBRLLinkbase that will contain extended links created later. |
|
XBRLLinkbase(DTSContainer dts,
XBRLDocument parent)
Creates a XBRLLinkbase that will contain extended links created later. |
|
XBRLLinkbase(XBRLDocument parent)
Creates a XBRLLinkbase that will contain extended links created later. |
|
XBRLLinkbase(XBRLDocument parent,
XMLDocumentURI combinedDocument)
Creates a linkbase, the parent XBRLDocumentURI Item is an XBRL Taxonomy Used to create embedded linkbases, Parent is the parent taxonomy and XMLDocumentURI is the link:linkbase element |
|
XBRLLinkbase(XMLDocumentURI other,
boolean bAddToCache)
Creates a linkbase, the parent XBRLDocumentInformation Item is this object Used to create external linkbases. |
|
| Method Summary | |
|---|---|
void |
addDocumentation(XBRLDocumentation newDoc)
Adds a new XBRLDocumentation object to the array of documentation objects |
void |
checkRoleType(XBRLRoleType roleType,
java.net.URI txURI)
|
void |
clear()
Frees-up used memory This method should not be invoqued on live objects in the DTS. |
void |
discoverDTS(XBRLDTSDocument parent)
All derived classes MUST implement this method and provide the functionality according to section 3.2 of the XBRL 2.1 specification |
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object |
org.jdom.Document |
generateDocNode(boolean relativize,
java.net.URI base)
This class has to be implemented by objects derived from XBRLDocument and must return a org.jdom.Document node with the content of this XBRLDocument object |
java.util.Iterator<XBRLDocumentation> |
getDocumentation()
Access to the [Documentation] property |
int |
getDTSDocumentType()
Returns the type of DTS Document |
java.lang.String |
getDTSDocumentTypeName()
|
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments Tthis method may be overwriten by other classes in the hierarchy |
java.lang.String |
getId()
Access to the element's id. |
XBRLLinkbaseRef |
getLinkbaseRef()
Obtains an XBRLLinkbaseRef object pointing to this taxonomy. |
XBRLDocument |
getParent()
Access to the parent property |
java.lang.String |
getRoleRef()
Returns a string representing the standard role for linkbaseRef elements pointing to this linkbase object. |
int |
hashCode()
|
void |
readInfoset()
Read all structures that builds the infoset |
void |
removeDocumentation(XBRLDocumentation doc)
Removes a XBRLDocumentation object from the array of documentation objects of this linkbase |
void |
setDocumentAndReload(net.sf.saxon.s9api.XdmNode node)
This method is called by the XMLFragment object each time the surrounding XdmNode object is set. |
void |
setId(java.lang.String id)
Sets the content of the id attribute of this element the ID MUST not have any space, but null is allowed and removes an id from an XML Fragment. |
void |
setParent(XBRLDocument newParent)
Sets the parent of this XBRLLinkbase to a new document. |
| Methods inherited from class com.ihr.xbrl.om.XBRLDocument |
|---|
addExtendedLink, addIdOfElement, addIdOfElement, addParent, changeElementId, changeExtendedLinkKey, createDocument, createDocument, createDocument, delParent, getAllUsedIds, getComments, getDocument, getDTS, getElementById, getExtendedLink, getExtendedLinks, getExtendedLinks, getParents, isIdUsed, moveNamespacesUp, removeExtendedLink, removeIdOfElement, save, setComments, updateXML |
| Methods inherited from class com.ihr.xbrl.om.XMLDocumentURI |
|---|
addChild, delChild, generateLocatorToDocument, getBase, getChildren, getDocumentURI, getDTSKey, getLocalFile, getValidationReport, invalidate, invalidate, isInDTS, isOnValidation, setURI, validate |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLAllowsDocumentation |
|---|
getContainer |
| Methods inherited from interface com.ihr.xbrl.om.XMLHasParent |
|---|
addXMLChild, getBase, removeXMLChild, setParent |
| Field Detail |
|---|
public static final javax.xml.namespace.QName linkbaseDocNode
| Constructor Detail |
|---|
public XBRLLinkbase(XMLDocumentURI other,
boolean bAddToCache)
throws DTSDiscoveryException
other - XMLDocumentURIbAddToCache - boolean
DTSDiscoveryExceptionpublic XBRLLinkbase(DTSContainer dts)
dts - The DTSContainer object that will own this linkbase
public XBRLLinkbase(DTSContainer dts,
XBRLDocument parent)
For the creation of an embedded linkbase set parent parameter to the taxonomy where this linkbase will be embeded
For the creation of exetarnal taxonomies use null as the parent. The parent wil be set to this document so the linkbase will be external.
dts - The DTSContainer object that will own this linkbaseparent - the linkbase parent documentpublic XBRLLinkbase(XBRLDocument parent)
This is the creator for the creation of an embedded linkbase set parent parameter to the taxonomy where this linkbase will be embedded
parent - Actually only the XBRLTaxonomy object where this linkbase will be embedded
public XBRLLinkbase(XBRLDocument parent,
XMLDocumentURI combinedDocument)
throws DTSDiscoveryException
parent - XBRLDocumentcombinedDocument - XMLDocumentURI
DTSDiscoveryException| 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 XBRLDocumentjava.lang.Throwable
public void setDocumentAndReload(net.sf.saxon.s9api.XdmNode node)
throws XBRLInconsistentDTSException,
com.rs.lic.LicenseVerificationException
XMLFragmentOverwrite this method in parent objects in order to refresh objects that depends on the surrounding XML nodes.
setDocumentAndReload in class XBRLDocumentnode - the new XdmNode
XBRLInconsistentDTSException
com.rs.lic.LicenseVerificationExceptionpublic int hashCode()
hashCode in class XBRLDocumentpublic boolean equals(java.lang.Object obj)
XMLFragment
equals in class XBRLDocumentpublic int getDTSDocumentType()
XBRLDocument
getDTSDocumentType in class XBRLDocumentpublic java.lang.String getDTSDocumentTypeName()
getDTSDocumentTypeName in class XBRLDocumentpublic XBRLDocument getParent()
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic void setParent(XBRLDocument newParent)
The parent is not informed about this change.
newParent - XBRLDocumentpublic java.lang.String getId()
XMLFragment
getId in class XMLFragment
public void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragment
setId in class XMLFragmentid - the new ID
XBRLInconsistentDTSException - if the id is not lexicographically validpublic XBRLLinkbaseRef getLinkbaseRef()
public void discoverDTS(XBRLDTSDocument parent)
throws DTSDiscoveryException
XBRLDocument
discoverDTS in interface XBRLDTSDocumentdiscoverDTS in class XBRLDocumentDTSDiscoveryExceptionpublic java.util.Iterator<XBRLDocumentation> getDocumentation()
public void addDocumentation(XBRLDocumentation newDoc)
addDocumentation in interface XBRLAllowsDocumentationnewDoc - the new XBRLDocumentation to addpublic void removeDocumentation(XBRLDocumentation doc)
removeDocumentation in interface XBRLAllowsDocumentationdoc - the existing XBRLDocumentation to remove
public void readInfoset()
throws XBRLValidationException
XBRLDocument
readInfoset in class XBRLDocumentXBRLValidationException
public void checkRoleType(XBRLRoleType roleType,
java.net.URI txURI)
throws DTSDiscoveryException
DTSDiscoveryException
public java.lang.String getRoleRef()
throws XBRLSerializationException
XBRLSerializationException
public org.jdom.Document generateDocNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLDocument
generateDocNode in class XBRLDocumentrelativize - boolean indicating if all URIs must be relativizedbase - URI the base uri to relativize other URIs
XBRLSerializationExceptionpublic java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements in class XMLFragment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||