public class XBRLLinkbase extends XBRLDocument implements java.io.Serializable, XBRLAllowsDocumentation
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.
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
linkbaseDocNode
The Constant linkbaseDocNode.
|
INSTANCE, IXBRL, LINKBASE, TAXONOMYCONCEPT_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 |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentation(XBRLDocumentation newDoc)
Adds a new XBRLDocumentation object to the array of documentation objects.
|
void |
checkRoleType(XBRLRoleType roleType,
java.net.URI txURI)
Check role type.
|
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()
Gets the DTS document type name.
|
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments
This 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.
|
addExtendedLink, addIdOfElement, addIdOfElement, addParent, changeElementId, changeExtendedLinkKey, createDocument, createDocument, delParent, getAllUsedIds, getComments, getDocument, getDTS, getElementById, getExtendedLink, getExtendedLinks, getExtendedLinks, getParents, isContentModified, isDocumentModified, isIdUsed, moveNamespacesUp, moveNamespacesUp, removeExtendedLink, removeIdOfElement, save, setComments, updateXMLaddChild, delChild, generateLocatorToDocument, getBase, getChildren, getDocumentURI, getDTSKey, getLocalFile, getValidationReport, invalidate, invalidate, isInDTS, isOnValidation, setURI, validateaddAttribute, 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, getElementsHashCode, getFragment, getFriendlyName, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, 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, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualgetContaineraddXMLChild, getBase, removeXMLChild, setParentpublic static final javax.xml.namespace.QName linkbaseDocNode
public XBRLLinkbase(XMLDocumentURI other, boolean bAddToCache) throws DTSDiscoveryException
other - XMLDocumentURIbAddToCache - booleanDTSDiscoveryException - the DTS discovery exceptionpublic XBRLLinkbase(DTSContainer dts)
dts - The DTSContainer object that will own this linkbasepublic 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 embeddedpublic XBRLLinkbase(XBRLDocument parent, XMLDocumentURI combinedDocument) throws DTSDiscoveryException
parent - XBRLDocumentcombinedDocument - XMLDocumentURIDTSDiscoveryException - the DTS discovery exceptionpublic 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 - the throwablepublic 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 XdmNodeXBRLInconsistentDTSException - the XBRL inconsistent dts exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic int hashCode()
hashCode in class XBRLDocumentpublic boolean equals(java.lang.Object obj)
XMLFragmentequals in class XBRLDocumentobj - the otherpublic int getDTSDocumentType()
XBRLDocumentgetDTSDocumentType in class XBRLDocumentpublic java.lang.String getDTSDocumentTypeName()
XBRLDocumentgetDTSDocumentTypeName 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()
XMLFragmentgetId in class XMLFragmentpublic void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragmentsetId in class XMLFragmentid - the new IDXBRLInconsistentDTSException - if the id is not lexicographically validpublic XBRLLinkbaseRef getLinkbaseRef()
public void discoverDTS(XBRLDTSDocument parent) throws DTSDiscoveryException
XBRLDocumentdiscoverDTS in interface XBRLDTSDocumentdiscoverDTS in class XBRLDocumentparent - the parentDTSDiscoveryException - the DTS discovery exceptionpublic 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 removepublic void readInfoset()
throws XBRLValidationException
XBRLDocumentreadInfoset in class XBRLDocumentXBRLValidationException - the XBRL validation exceptionpublic void checkRoleType(XBRLRoleType roleType, java.net.URI txURI) throws DTSDiscoveryException
roleType - the role typetxURI - the tx uriDTSDiscoveryException - the DTS discovery exceptionpublic java.lang.String getRoleRef()
throws XBRLSerializationException
XBRLSerializationException - the XBRL serialization exceptionpublic org.jdom.Document generateDocNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLDocumentgenerateDocNode in class XBRLDocumentrelativize - boolean indicating if all URIs must be relativizedbase - URI the base uri to relativize other URIsXBRLSerializationException - the XBRL serialization exceptionpublic java.util.Iterator<XMLFragment> getElements()
XMLFragmentgetElements in class XMLFragment