public class XBRLArcroleType extends XBRLRoleAndArcroleTypes implements java.io.Serializable
An arcrole type definition can be of 3 types:
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static int |
ANY
ANY cycle is allowed (bitmap), DIRECTED and UNDIRECTED
|
static javax.xml.namespace.QName |
arcroleTypeQName
The Constant arcroleTypeQName.
|
static int |
NONE
NONE (no) cycles are allowed, this includes DIRECTED and UNDIRECTED cycles detection.
|
static XBRLArcroleType |
STANDARD_CONCEPT_LABEL
The standard concept label.
|
static XBRLArcroleType |
STANDARD_CONCEPT_REFERENCE
The standard concept reference.
|
static XBRLArcroleType |
STANDARD_ESSENCE_ALIAS
The standard essence alias.
|
static XBRLArcroleType |
STANDARD_FACT_FOOTNOTE
Static arcroles.
|
static XBRLArcroleType |
STANDARD_GENERAL_SPECIAL
The standard general special.
|
static XBRLArcroleType |
STANDARD_PARENT_CHILD
The standard parent child.
|
static XBRLArcroleType |
STANDARD_REQUIRES_ELEMENT
The standard requires element.
|
static XBRLArcroleType |
STANDARD_SIMILAR_TUPLES
The standard similar tuples.
|
static XBRLArcroleType |
STANDARD_SUMMATION_ITEM
The standard summation item.
|
static int |
UNDIRECTED
UNDIRECTED cycles are allowed (bitmap).
|
CONCEPT_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 |
|---|
XBRLArcroleType(DTSContainer newDTS)
Creates a "virtual" arcrole type.
|
XBRLArcroleType(DTSContainer dts,
java.lang.String uri,
int cyclesAllowed)
Creates a new XBRLArcroleType for the specific values of the uri and cyclesAllowed.
|
XBRLArcroleType(DTSContainer newDTS,
XBRLArcroleType other)
Instantiates a new XBRL arcrole type.
|
XBRLArcroleType(XBRLArcroleType other)
Instantiates a new XBRL arcrole type.
|
XBRLArcroleType(XBRLTaxonomy parent,
net.sf.saxon.s9api.XdmNode node)
Creates a new XBRLArcroleType object from a node in a file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUse(XBRLRelationship here)
Adds the use.
|
void |
clear()
Frees-up the memory used by this object.
|
void |
delUse(XBRLRelationship rel)
Del use.
|
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
|
XBRLArcroleRef |
getArcroleRef(XBRLDocument parent)
Creates an XBRLArcroleRef object that points to this arcroleRef and
that can be serialized.
|
int |
getCyclesAllowed()
Returns an integer constant according to the value of the cyclesAllowed
attribute on the arcrole type definition.
|
static java.lang.String |
getCyclesAllowed(int code)
Gets the cycles allowed.
|
static java.lang.Integer |
getCyclesAllowed(java.lang.String code)
Gets the cycles allowed.
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
java.util.Iterator<XBRLRelationship> |
getUses()
Access to the [arcrole uses] property
The returned objects in the iterator are instances of
XBRLRelationship elements.
|
int |
hashCode() |
void |
setCyclesAllowed(int cyclesAllowedCode)
Sets the cycles allowed.
|
java.lang.String |
toString()
Returns the XML representation of this object as an String.
|
addRef, addUsedOn, compareTo, generateLocatorToNode, getDefinition, getElements, getFriendlyName, getHRefURI, getParent, getURI, getUsedOn, getValidationReport, invalidate, invalidate, isOnValidation, isStatic, isUsedOn, isVirtual, removeUsedOn, sameUsedOn, setDefinition, setId, setParent, setStatic, setURI, setVirtual, validateaddAttribute, 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, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElementsHashCode, getFragment, 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, valueEquals, xEqualpublic static final javax.xml.namespace.QName arcroleTypeQName
public static final int ANY
public static final int UNDIRECTED
public static final int NONE
public static XBRLArcroleType STANDARD_FACT_FOOTNOTE
public static XBRLArcroleType STANDARD_CONCEPT_LABEL
public static XBRLArcroleType STANDARD_CONCEPT_REFERENCE
public static XBRLArcroleType STANDARD_PARENT_CHILD
public static XBRLArcroleType STANDARD_SUMMATION_ITEM
public static XBRLArcroleType STANDARD_GENERAL_SPECIAL
public static XBRLArcroleType STANDARD_ESSENCE_ALIAS
public static XBRLArcroleType STANDARD_SIMILAR_TUPLES
public static XBRLArcroleType STANDARD_REQUIRES_ELEMENT
public XBRLArcroleType(XBRLTaxonomy parent, net.sf.saxon.s9api.XdmNode node) throws XBRLValidationException
parent - the parentnode - the nodeXBRLValidationException - the XBRL validation exceptionpublic XBRLArcroleType(DTSContainer dts, java.lang.String uri, int cyclesAllowed)
XBRLRoleAndArcroleTypes.setParent(XBRLTaxonomy) is called.dts - the dtsuri - the uricyclesAllowed - the cycles allowedpublic XBRLArcroleType(XBRLArcroleType other)
other - the otherpublic XBRLArcroleType(DTSContainer newDTS, XBRLArcroleType other)
newDTS - the new dtsother - the otherpublic XBRLArcroleType(DTSContainer newDTS)
newDTS - the new dtspublic void addUse(XBRLRelationship here)
here - the herepublic void delUse(XBRLRelationship rel)
rel - the relpublic java.util.Iterator<XBRLRelationship> getUses()
public int getCyclesAllowed()
public void setCyclesAllowed(int cyclesAllowedCode)
cyclesAllowedCode - the new cycles allowedpublic static java.lang.String getCyclesAllowed(int code)
code - the codepublic static java.lang.Integer getCyclesAllowed(java.lang.String code)
code - the codepublic java.lang.String toString()
XMLFragmenttoString in class XMLFragmentpublic boolean equals(java.lang.Object other)
XMLFragmentequals in class XBRLRoleAndArcroleTypesother - the otherpublic int hashCode()
hashCode in class XBRLRoleAndArcroleTypespublic XBRLArcroleRef getArcroleRef(XBRLDocument parent)
parent - the parentpublic void clear()
clear in class XMLFragmentpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in class XBRLRoleAndArcroleTypesrelativize - 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 getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragment