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.
XBRLDocument.LockInfo, XBRLDocument.XBRLDocumentType
XBRLValidation.Direction
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
linkbaseDocNode
The Constant linkbaseDocNode.
|
static net.sf.saxon.om.StructuredQName |
sqnLinkbaseDocNode
The Constant sqnLinkbaseDocNode.
|
Constructor and Description |
---|
XBRLLinkbase(DTSContainer dts,
boolean isDynamic)
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 |
clear()
Clear.
|
void |
discoverDTS(XBRLDTSDocument parent)
Discover DTS.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XMLDocumentImpl |
generateDocNode()
Generate doc node.
|
java.util.Iterator<XBRLDocumentation> |
getDocumentation()
Access to the [Documentation] property.
|
XBRLDocument.XBRLDocumentType |
getDTSDocumentType()
Gets the DTS document type.
|
java.lang.String |
getDTSDocumentTypeName()
Gets the DTS document type name.
|
java.lang.String |
getId()
Gets the id.
|
XBRLLinkbaseRef |
getLinkbaseRef()
Obtains an XBRLLinkbaseRef object pointing to this taxonomy.
|
XBRLLinkbaseRootNode |
getLinkbaseRootNode()
Gets the linkbase root node.
|
XBRLDocument |
getParentDocument()
Gets the parent document.
|
java.lang.String |
getRoleRef()
Returns a string representing the standard role for linkbaseRef elements pointing
to this linkbase object.
|
int |
hashCode()
Hash code.
|
boolean |
isEmbedded()
Checks if is embedded.
|
void |
readInfoset()
Read infoset.
|
void |
removeDocumentation(XBRLDocumentation doc)
Removes a XBRLDocumentation object from the array of documentation objects of this
linkbase.
|
void |
setId(java.lang.String id)
Sets the id.
|
void |
setParent(XBRLDocument newParent)
Sets the parent of this XBRLLinkbase to a new document.
|
void |
setRootNode(XBRLLinkbaseRootNode linkbase)
Sets the root node.
|
addComment, addIdOfElement, addIdOfElement, addParent, changeElementId, checkCleanDocumentInfo, createDocument, createDocument, createDocument, createDynamicDocument, delParent, generateId, getAllUsedIds, getComments, getDocumentInfo, getDTS, getElementById, getElementsById, getOrCreateTableId, getParents, getRoleRef, getTreeModel, isContentModified, isDynamic, isIdUsed, isOfficialURI, lock, registerChangeIdListener, registerChangeIdListener, release, removeComments, removeIdOfElement, removeIdOfElement, resolveURI, save, save, save, setComments, setLockInfo, setModified, setReadingInfoset, toString, unregisterChangeIdListener, unsetLockInfo, updateXML
addChild, delChild, evaluateList, getBase, getChildren, getContainer, getDocument, getDocumentRootNode, getDocumentURI, getDocumentURICode, getDTSDiscoveryInfo, getDTSKey, getFriendlyName, getLocalFile, getOldDocument, getPackageName, getPackageVersion, getPrefix, getPrefixes, getValidationReport, getXBRLDocumentInfo, getXPathToRoot, invalidate, invalidate, isInDTS, isOnValidation, setContainer, setDocumentURICode, setDTSDiscoveryInfo, setDTSKey, setNodeName, setRootNode, setURI, setXBRLDocumentInfo, validate
getContainer
public static final javax.xml.namespace.QName linkbaseDocNode
public static final net.sf.saxon.om.StructuredQName sqnLinkbaseDocNode
public XBRLLinkbase(XMLDocumentURI other, boolean bAddToCache) throws DTSDiscoveryException
other
- XMLDocumentURIbAddToCache
- booleanDTSDiscoveryException
- the DTS discovery exceptionpublic XBRLLinkbase(DTSContainer dts, boolean isDynamic)
dts
- The DTSContainer object that will own this linkbaseisDynamic
- true when the document is created programaticallypublic 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
clear
in interface XBRLDTSDocument
clear
in class XBRLDocument
java.lang.Throwable
- the throwablepublic int hashCode()
hashCode
in class XBRLDocument
public boolean equals(java.lang.Object obj)
equals
in class XBRLDocument
obj
- the objpublic XBRLDocument.XBRLDocumentType getDTSDocumentType()
getDTSDocumentType
in class XBRLDocument
public java.lang.String getDTSDocumentTypeName()
getDTSDocumentTypeName
in class XBRLDocument
public void setParent(XBRLDocument newParent)
The parent is not informed about this change.
newParent
- XBRLDocumentpublic void setRootNode(XBRLLinkbaseRootNode linkbase)
linkbase
- the new root nodepublic java.lang.String getId()
public void setId(java.lang.String id) throws XBRLInconsistentDTSException
id
- the new idXBRLInconsistentDTSException
- the XBRL inconsistent DTS exceptionpublic XBRLDocument getParentDocument()
public boolean isEmbedded()
public XBRLLinkbaseRef getLinkbaseRef()
public XBRLLinkbaseRootNode getLinkbaseRootNode()
public void discoverDTS(XBRLDTSDocument parent) throws DTSDiscoveryException
discoverDTS
in interface XBRLDTSDocument
discoverDTS
in class XBRLDocument
parent
- the parentDTSDiscoveryException
- the DTS discovery exceptionpublic java.util.Iterator<XBRLDocumentation> getDocumentation()
public void addDocumentation(XBRLDocumentation newDoc)
addDocumentation
in interface XBRLAllowsDocumentation
newDoc
- the new XBRLDocumentation to addpublic void removeDocumentation(XBRLDocumentation doc)
removeDocumentation
in interface XBRLAllowsDocumentation
doc
- the existing XBRLDocumentation to removepublic void readInfoset() throws XBRLValidationException
readInfoset
in class XBRLDocument
XBRLValidationException
- the XBRL validation exceptionpublic java.lang.String getRoleRef() throws XBRLSerializationException
XBRLSerializationException
- the XBRL serialization exceptionpublic XMLDocumentImpl generateDocNode() throws XBRLSerializationException
generateDocNode
in class XBRLDocument
XBRLSerializationException
- the XBRL serialization exceptionCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa