public abstract class XBRLRoleAndArcroleTypes extends XMLFragment implements XBRLValidation, java.lang.Comparable<XBRLRoleType>
XBRLValidation.DirectionCONCEPT_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 |
|---|
XBRLRoleAndArcroleTypes(DTSContainer newDTS,
XBRLRoleAndArcroleTypes other)
Instantiates a new XBRL role and arcrole types.
|
XBRLRoleAndArcroleTypes(XBRLRoleAndArcroleTypes other)
Instantiates a new XBRL role and arcrole types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRef(XBRLDocument doc)
When a role or arcrole is referenced via roleRef its is annotated here.
|
void |
addUsedOn(XBRLUsedOn on)
Adds the used on.
|
int |
compareTo(XBRLRoleType o) |
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object.
|
XBRLLocator |
generateLocatorToNode(boolean relativize,
java.net.URI base)
Generates an XBRLLocator object pointing to this node.
|
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.lang.String |
getDefinition()
Access to the [Definition] property.
|
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 |
getFriendlyName(int modifiers,
LabelsProvider lp)
Returns a string description that represents the element content in a form
that users can understand.
|
java.net.URI |
getHRefURI()
Creates a URI pointing to the roleType or arcroleType .
|
XBRLTaxonomy |
getParent()
access to the [Parent] property.
|
java.lang.String |
getURI()
Access to the [Role URI]/[Arcrole URI] property.
|
java.util.Iterator<XBRLUsedOn> |
getUsedOn()
Gets the used on.
|
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.
|
boolean |
isStatic()
Returns true for role types and arcrole types defined in the XBRL 2.1 specification
|
boolean |
isUsedOn(javax.xml.namespace.QName here)
returns true if the element represented by the QName can legally use this XBRLRoleType
This method considers roles defined in the XBRL 2.1 specification, virtual roles undefined in the
DTS and used in generic linkbases and roles properly defined in XBRL linkbases
|
boolean |
isVirtual()
Returns true for role types not referenced using roleRef elements or arcrole type not referenced via
arcroleRef elements but valid because they are used within custom extended linkbases.
|
void |
removeUsedOn(XBRLUsedOn on)
Removes the used on.
|
boolean |
sameUsedOn(XBRLRoleAndArcroleTypes o)
Same used on.
|
void |
setDefinition(java.lang.String newValue)
Sets the definition string for a role and arcrole types.
|
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(XBRLTaxonomy newParent)
Changes the [Parent] property.
|
void |
setStatic(boolean newValue)
Used by the API when a static role or arcrole URI is defined.
|
void |
setURI(java.lang.String newURI)
Sets or changes the URI of this role type.
|
void |
setVirtual(boolean newValue)
Used by the APO when a virtual role or arcrole URI is defined.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
addAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clear, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, 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, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualpublic XBRLRoleAndArcroleTypes(XBRLRoleAndArcroleTypes other)
other - the otherpublic XBRLRoleAndArcroleTypes(DTSContainer newDTS, XBRLRoleAndArcroleTypes other)
newDTS - the new dtsother - the otherpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in class XMLFragmentrelativize - 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 java.lang.String getDefinition()
public void setDefinition(java.lang.String newValue)
newValue - the new definitionpublic XBRLTaxonomy getParent()
getParent in interface XMLHasParentgetParent 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 void setParent(XBRLTaxonomy newParent)
newParent - the new parentpublic java.util.Iterator<XBRLUsedOn> getUsedOn()
public void addUsedOn(XBRLUsedOn on)
on - the onpublic void removeUsedOn(XBRLUsedOn on)
on - the onpublic boolean isUsedOn(javax.xml.namespace.QName here)
This method considers roles defined in the XBRL 2.1 specification, virtual roles undefined in the DTS and used in generic linkbases and roles properly defined in XBRL linkbases
here - the node element to check forpublic boolean isStatic()
public boolean isVirtual()
public void setStatic(boolean newValue)
newValue - the new staticpublic void setVirtual(boolean newValue)
newValue - the new virtualpublic java.lang.String getURI()
public void setURI(java.lang.String newURI)
newURI - the new uripublic boolean equals(java.lang.Object other)
XMLFragmentequals in class XMLFragmentother - the otherpublic int hashCode()
hashCode in class XMLFragmentpublic boolean sameUsedOn(XBRLRoleAndArcroleTypes o)
o - the opublic java.net.URI getHRefURI()
public void addRef(XBRLDocument doc)
doc - the docpublic java.util.Iterator<XMLFragment> getElements()
XMLFragmentgetElements in class XMLFragmentpublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XMLFragmentThis function accepts flags that are defined as constants in XMLFragment in order to modify the output.
getFriendlyName in class XMLFragmentmodifiers - integerlp - the lppublic XBRLLocator generateLocatorToNode(boolean relativize, java.net.URI base) throws java.net.URISyntaxException
relativize - the relativizebase - the basejava.net.URISyntaxException - the URI syntax exceptionpublic 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 XBRLValidationpublic int compareTo(XBRLRoleType o)
compareTo in interface java.lang.Comparable<XBRLRoleType>