public abstract class XBRLExtendedLink extends XLinkElement implements XBRLDTSDocument, XBRLAllowsDocumentation, XBRLValidation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
standard_role_URI
The standard role URI http://www.xbrl.org/2003/role/link
|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, TO, type, TYPECONCEPT_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| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentation(XBRLDocumentation doc)
Adds a new XBRLDocumentation object to this object.
|
void |
addRelationship(XBRLRelationship relationship)
Adds the relationship.
|
void |
addResource(XBRLResource resource)
This method adds a XBRLResource to the Extended Link container.
|
void |
clear()
Frees-up used memory
This method should not be invoqued on live objects in the DTS.
|
void |
clearCaches()
Used to clear memory used during the DTS loading process.
|
static XBRLExtendedLink |
createExtendedLink(XBRLDocument parent,
DTSBase base)
Creates the extended link.
|
static XBRLExtendedLink |
createExtendedLink(XBRLDocument parent,
javax.xml.namespace.QName rootElementName,
XBRLRoleType role)
Creates the extended link.
|
static XBRLExtendedLink |
createExtendedLink(XBRLDocument parent,
net.sf.saxon.s9api.XdmNode node)
Creates the extended link.
|
void |
discoverDTS(XBRLDTSDocument parent)
Fires the rules of DTS Discovery for this object.
|
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object.
|
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Serializes to a jdom Element the representation of the properties of this Information Item
This method should be called from classes derived from this class
|
java.util.Iterator<XBRLArcroleType> |
getArcroles()
Access to all used arcroles.
|
XBRLArcroleType |
getArcroleType(java.lang.String arcrole)
Returns the arcroleType of an arc on this extended link resolved using the corresponding arcroleRef
element or the static definition in the specifications.
|
java.util.Iterator<XBRLArc> |
getArcs()
Return an Iterator object over all arcs in the extended link.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
java.util.Iterator<XBRLDocumentation> |
getDocumentation()
Access to the [Documentation] property.
|
DTSBase |
getDTSBase()
Gets the DTS base.
|
java.net.URI |
getDTSKey()
Provides a key that can be used to index the document in the cache.
|
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.
|
abstract java.lang.String |
getExtendedLinkTypeName()
Returns a localized constant string indicating the extended link type
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
javax.xml.namespace.QName |
getLinkbaseType()
Access to the [linkbaseType] property
This is the QName of the extended link element which is the root
ot this extended link.
|
GeneralIterable<XBRLLocator> |
getLocators()
Access to all locators in an extended link.
|
int |
getNumberOfResources()
Returns how many resources exists in this extended link.
|
XBRLDocument |
getParent()
Access to the [Parent] property.
|
java.util.Iterator<XBRLRelationship> |
getRelationships()
Access to the [Relationships] information item.
|
java.util.Iterator<XBRLResource> |
getResources()
Return an iterator over all resources that exist on this extended link.
|
XBRLRoleType |
getRoleType()
Access to the [Role Type] property of this object
Validates this extended link QName in on the used on list of the roleType.
|
abstract java.util.Collection<java.lang.String> |
getStandardDefinedRolesOnResources()
Returns a collection of role URIs that the XBRL 2.1 standard defines to be used on resources
on this extended link
|
abstract java.util.Collection<javax.xml.namespace.QName> |
getStandardResourceNodeNames()
Returns a collection of resource node names that are allowed to exist on this extended link.
|
abstract javax.xml.namespace.QName |
getStaticLinkbaseType()
This function MUST be implemented by classes derived from this class.
|
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 |
isOnValidation()
When validation is a recursive process, this function returns true if the
object going to be validated is already under validation.
|
abstract boolean |
isStandardExtendedLink()
Returns true if the extended link belongs to the XBRL 2.1 specification.
|
void |
removeDocumentation(XBRLDocumentation doc)
Remove a XBRLDocumentation object to this object.
|
boolean |
removeRelationship(XBRLRelationship relationship)
Removes the relationship.
|
void |
removeResource(XBRLResource resource)
Removes the resource.
|
void |
setDTSBase(DTSBase base)
Sets the DTS base.
|
void |
setParent(XBRLDocument parent)
Sets the parent of this extended link.
|
void |
setRole(java.lang.String newRole)
Sets the value of the xlink:role attribute to a specific value.
|
void |
setRoleType(XBRLRoleType newRoleType)
Sets the role type.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
boolean |
wouldBeDuplicateArc(XBRLRelationship rel)
Checks wether or not the relationship in the parameter
will be a duplicate relationship in this extended link.
|
getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setToaddAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElementsHashCode, getFragment, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, 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, setDocumentAndReload, setElements, setId, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualgetContaineraddXMLChild, getBase, removeXMLChild, setParentpublic static final java.lang.String standard_role_URI
public java.net.URI getDTSKey()
XBRLDTSDocumentgetDTSKey in interface XBRLDTSDocumentpublic 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.Throwable - the throwablepublic XBRLDocument getParent()
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic void setParent(XBRLDocument parent)
parent - the new XBRLDocument that will be the parentpublic void setDTSBase(DTSBase base) throws XBRLInconsistentDTSException
base - the new DTS baseXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic DTSBase getDTSBase()
public boolean equals(java.lang.Object other)
XMLFragmentequals in class XMLFragmentother - the otherpublic int hashCode()
hashCode in class XMLFragmentpublic static XBRLExtendedLink createExtendedLink(XBRLDocument parent, DTSBase base) throws XBRLInconsistentDTSException
parent - XBRLDocumentbase - DTSBaseXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic static XBRLExtendedLink createExtendedLink(XBRLDocument parent, javax.xml.namespace.QName rootElementName, XBRLRoleType role) throws XBRLInconsistentDTSException
parent - the parentrootElementName - the root element namerole - the roleXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic static XBRLExtendedLink createExtendedLink(XBRLDocument parent, net.sf.saxon.s9api.XdmNode node)
parent - the parentnode - the nodepublic void discoverDTS(XBRLDTSDocument parent) throws DTSDiscoveryException, com.rs.lic.LicenseVerificationException
XBRLDTSDocumentdiscoverDTS in interface XBRLDTSDocumentparent - the parentDTSDiscoveryException - the DTS discovery exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic abstract javax.xml.namespace.QName getStaticLinkbaseType()
public abstract java.lang.String getExtendedLinkTypeName()
public javax.xml.namespace.QName getLinkbaseType()
public java.util.Iterator<XBRLDocumentation> getDocumentation()
public void addDocumentation(XBRLDocumentation doc)
XBRLAllowsDocumentationaddDocumentation in interface XBRLAllowsDocumentationdoc - the docpublic void removeDocumentation(XBRLDocumentation doc)
XBRLAllowsDocumentationremoveDocumentation in interface XBRLAllowsDocumentationdoc - the docpublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentXMLFragment.getAllAttributes()public XBRLRoleType getRoleType()
public void setRoleType(XBRLRoleType newRoleType)
newRoleType - the new role typepublic void setRole(java.lang.String newRole)
XLinkElementsetRole in class XLinkElementnewRole - the new rolepublic void addRelationship(XBRLRelationship relationship) throws XBRLInconsistentDTSException
relationship - the relationshipXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic abstract boolean isStandardExtendedLink()
public boolean removeRelationship(XBRLRelationship relationship) throws XBRLInconsistentDTSException
relationship - the relationshipXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragmentpublic java.util.Iterator<XBRLArcroleType> getArcroles()
public XBRLArcroleType getArcroleType(java.lang.String arcrole)
arcrole - the arcrolepublic java.util.Iterator<XBRLRelationship> getRelationships()
public abstract java.util.Collection<javax.xml.namespace.QName> getStandardResourceNodeNames()
public abstract java.util.Collection<java.lang.String> getStandardDefinedRolesOnResources()
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in class XLinkElementrelativize - boolean indicating if URIs should be relativized to the base URI (see next argument)base - the URI to which some attributes of this object should be relatividedXBRLSerializationException - the XBRL serialization exceptionpublic boolean wouldBeDuplicateArc(XBRLRelationship rel) throws XBRLValidationException
rel - the relationship that is not in this link and will be testedXBRLValidationException - the XBRL validation exceptionpublic java.util.Iterator<XBRLArc> getArcs() throws XBRLValidationException
XBRLValidationException - If there are unrecoverable XBRL errors in the arcpublic java.util.Iterator<XBRLResource> getResources()
public int getNumberOfResources()
public void addResource(XBRLResource resource) throws XBRLDuplicateException
Try to avoid calling this method directly and use the setParent(XBRLExtendedLink) method of the resource instead.
resource - the resourceXBRLDuplicateException - the XBRL duplicate exceptionpublic void removeResource(XBRLResource resource)
resource - the resourcepublic GeneralIterable<XBRLLocator> getLocators()
public java.util.Iterator<XMLFragment> getElements()
XMLFragmentgetElements in class XMLFragmentpublic void clearCaches()
For internal purposes only
public XBRLValidationReport getValidationReport()
XBRLValidationgetValidationReport in interface XBRLValidationpublic void invalidate()
XBRLValidationinvalidate 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 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 boolean isOnValidation()
XBRLValidationisOnValidation in interface XBRLValidation