public class XBRLArc extends XLinkElement implements XBRLGlueInterface, java.io.Serializable
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
Modifier and Type | Field and Description |
---|---|
static com.ihr.xbrl.om.exLinks.XBRLArc.PriorityOrderComparator |
ArcPriorityAndUseComparatorInstance
The Constant ArcPriorityOrderComparatorInstance.
|
static int |
OPTIONAL
The Constant OPTIONAL.
|
static int |
PROHIBITED
The Constant PROHIBITED.
|
actuate, ARC, arcrole, ETITLE, EXTENDED, from, href, label, LOCATOR, RESOURCE, role, show, SIMPLE, title, to, type, X_ACTUATE, X_ARCROLE, X_FROM, X_HREF, X_LABEL, X_ROLE, X_SHOW, X_TITLE, X_TO, X_TYPE, XLINKPREFIX
ADD_NAMESPACE_INHERIT, baseQName, CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, FACT_VALUE, HIDE_COMMON_ACCURACY, idQName, langQName, nil, NO_POSITION, OrderComparator, OrderComparator2, OrderComparatorReverse, PERIOD_BOP, PERIOD_TYPE, PERIOD_VALUE, RELATIONSHIP_TYPE, RESOURCE_TYPE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER
Constructor and Description |
---|
XBRLArc(DTSContainer dts)
Instantiates a new XBRL arc.
|
XBRLArc(XBRLExtendedLink parent,
XMLFragment node,
java.lang.Integer arcroleTypeCode)
Creates a new XBRLArc with a surrounding node and replaces surrounding node with this new XBRLArc instance.
|
XBRLArc(XMLFragment node,
java.lang.Integer arcroleTypeCode)
Creates a new XBRLArc with a surrounding node but does not replaces the
node with the new arc.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
XBRLArc |
clone()
Clone.
|
XBRLArc |
clone(DTSContainer newDTS)
Clone.
|
static boolean |
compareTwoArcs(XBRLArc arc1,
XBRLArc arc2)
Compare two arcs and returns true if both are duplicates.
|
static boolean |
compareTwoLocatorSets(java.util.List<XMLFragment> set1,
java.util.List<XMLFragment> set2)
Compare two locator sets.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XBRLArc |
generateNode()
Generate node.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers)
Gets the friendly name.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
int |
getNumberOfObjectsFrom()
Returns the number of objects in the [To] property.
|
int |
getNumberOfObjectsTo()
Returns the number of objects in the [From] property.
|
java.util.Iterator<XMLFragment> |
getObjectsFrom()
Access to the [From relationship Information Items] property
The first time the method is called the objectsFrom Vector is created
and data obtained from the DTS.
|
java.util.Iterator<XMLFragment> |
getObjectsTo()
Access to the [From relationship Information Items] property.
|
java.lang.Double |
getOrder()
Access to the [Order] property.
|
XBRLExtendedLink |
getParentXBRL()
Access to the [Parent] property.
|
int |
getPriority()
Gets the priority.
|
java.util.Iterator<XBRLRelationship> |
getRelationships()
Gets the relationships.
|
int |
getUse()
Access to the value of the use attribute on arcs.
|
boolean |
hasChildNodes() |
boolean |
isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
Must be overridden to properly compare a relationship with
an arc when the arc contains more than one surrounding
relationships and for that reason the arc has not been converted
to an XBRLRelationship.
|
void |
removeFrom(XMLFragment ref)
Removes the from.
|
void |
removeTo(XMLFragment ref)
Removes the to.
|
void |
setArcroleTypeCode(java.lang.Integer code)
This method sets the arcrole type using the arcrole code.
|
getActuate, getArcrole, getFromTxt, getHRef, getHRefDocument, getHRefDocumentResolved, getHRefResolved, getLabel, getRawHRef, getReference, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, hashCode, isHashDependsOnAtribute, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setRole, setShow, setSType, setTitle, setTo, validateXPointer
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getInScopeNamespaces, getLang, getLastChildNoComment, getNamePool, getNamespaceBinding, getNamespaceURI, getNextSiblingNoComment, getNodeName, getNthElement, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParentDocument, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, s_equal2, s_equal2, s_equal2, s_equal2, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setId, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setRawParentXBRL, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqual
addAttribute, addNamespace, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, isId, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, setLocation, setNameCode, setNamespaceList, setSystemId, setTypeAnnotation
atomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, iterate, iterateAxis, iterateAxis, newBuilder, replace
public static final com.ihr.xbrl.om.exLinks.XBRLArc.PriorityOrderComparator ArcPriorityAndUseComparatorInstance
public static final int OPTIONAL
public static final int PROHIBITED
public XBRLArc(XBRLExtendedLink parent, XMLFragment node, java.lang.Integer arcroleTypeCode)
parent
- XBRLExtendedLinknode
- NodeInfoarcroleTypeCode
- the arcrole type codepublic XBRLArc(DTSContainer dts)
dts
- the dtspublic XBRLArc(XMLFragment node, java.lang.Integer arcroleTypeCode)
node
- NodeInfoarcroleTypeCode
- the arcrole type codepublic void clear() throws java.lang.Throwable
clear
in class XLinkElement
java.lang.Throwable
- the throwablepublic XBRLArc clone()
clone
in class XMLFragment
public XBRLArc clone(DTSContainer newDTS)
clone
in class XMLFragment
newDTS
- the new DTSpublic XBRLExtendedLink getParentXBRL()
getParentXBRL
in class XMLFragment
public int getUse()
getUse
in interface XBRLGlueInterface
public int getPriority()
getPriority
in interface XBRLGlueInterface
public java.lang.Double getOrder()
public java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes
in interface XBRLGlueInterface
getAttributes
in class XLinkElement
XMLFragment.getAllAttributes()
public java.util.Iterator<XMLFragment> getObjectsFrom() throws XBRLValidationException
getObjectsFrom
in interface XBRLGlueInterface
XBRLValidationException
- the XBRL validation exceptionpublic int getNumberOfObjectsFrom() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic int getNumberOfObjectsTo() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic void removeFrom(XMLFragment ref)
ref
- the refpublic java.util.Iterator<XMLFragment> getObjectsTo() throws XBRLValidationException
getObjectsTo
in interface XBRLGlueInterface
XBRLValidationException
- the XBRL validation exceptionpublic void removeTo(XMLFragment ref)
ref
- the refpublic boolean equals(java.lang.Object obj)
equals
in interface net.sf.saxon.om.NodeInfo
equals
in class XLinkElement
obj
- the objpublic boolean isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
isSameNodeInfo
in interface net.sf.saxon.om.NodeInfo
isSameNodeInfo
in class net.sf.saxon.tree.linked.NodeImpl
other
- the otherpublic static boolean compareTwoArcs(XBRLArc arc1, XBRLArc arc2) throws XBRLValidationException
arc1
- XBRLArcarc2
- XBRLArcXBRLValidationException
- the XBRL validation exceptionpublic static boolean compareTwoLocatorSets(java.util.List<XMLFragment> set1, java.util.List<XMLFragment> set2)
set1
- the set1set2
- the set2public java.util.Iterator<XBRLRelationship> getRelationships() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic XBRLArc generateNode() throws XBRLSerializationException
generateNode
in class XLinkElement
XBRLSerializationException
- the XBRL serialization exceptionpublic java.lang.String getFriendlyName()
getFriendlyName
in class XMLFragment
public java.lang.String getFriendlyName(int modifiers)
getFriendlyName
in class XMLFragment
modifiers
- the modifierspublic void setArcroleTypeCode(java.lang.Integer code)
code
- the new arcrole type codepublic final boolean hasChildNodes()
hasChildNodes
in interface net.sf.saxon.om.NodeInfo
hasChildNodes
in class net.sf.saxon.tree.linked.NodeImpl
public final int getNumberOfChildren()
public final net.sf.saxon.tree.linked.NodeImpl getFirstChild()
getFirstChild
in interface net.sf.saxon.tree.util.SteppingNode<net.sf.saxon.tree.linked.NodeImpl>
getFirstChild
in class net.sf.saxon.tree.linked.NodeImpl
public final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild
in class net.sf.saxon.tree.linked.NodeImpl
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa