public class XBRLEntity extends XMLFragment implements java.lang.Cloneable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | XBRLEntity.EntityComparatorThe Class EntityComparator. | 
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>| Modifier and Type | Field and Description | 
|---|---|
| static javax.xml.namespace.QName | entityThe Constant entityNode. | 
| static XBRLEntity.EntityComparator | EntityComparatorInstanceThe Entity comparator instance. | 
| static net.sf.saxon.om.StructuredQName | sqnEntityThe Constant sqnEntity. | 
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 | 
|---|
| XBRLEntity(DTSContainer dts,
          java.lang.String scheme,
          java.lang.String identifier,
          XBRLSegment segment)Creates a new Entity to be added to a context later. | 
| XBRLEntity(XMLFragment node)Instantiates a new XBRL entity. | 
| Modifier and Type | Method and Description | 
|---|---|
| XBRLEntity | clone()Clone. | 
| XBRLEntity | clone(DTSContainer newDTS)Clone. | 
| boolean | equals(java.lang.Object other)Equals. | 
| XBRLEntity | generateNode()Generate node. | 
| net.sf.saxon.tree.linked.NodeImpl | getFirstChild() | 
| java.lang.String | getIdentifier()Access to the identifier string on this entity. | 
| XBRLIdentifier | getIdentifierNode()In principle this is used only within the formula processor. | 
| net.sf.saxon.tree.linked.NodeImpl | getLastChild() | 
| int | getNumberOfChildren() | 
| XBRLIdentifier | getOrCreateIdentifierNode()Gets the or create identifier node. | 
| XBRLSegment | getOrCreateSegment()Access to the segment object of this entity or a new empty segment that will not be
 linked to the parent element. | 
| java.lang.String | getScheme()Access to the value of the Scheme on this entity. | 
| XBRLSegment | getSegment()Access to the segment object of this entity. | 
| net.sf.saxon.s9api.XdmValue | getValue()Gets the value. | 
| boolean | hasChildNodes() | 
| int | hashCode()Hash code. | 
| static XBRLEntity | make(DTSContainer dts)Make. | 
| boolean | s_equal2(java.lang.Object other)S equal 2. | 
| void | setIdentifier(java.lang.String identifier)Sets the identifier. | 
| void | setScheme(java.lang.String scheme)Sets the scheme. | 
| void | setSegment(XBRLSegment segment)Sets the segment. | 
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, clear, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributes, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFriendlyName, getFriendlyName, 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, getParentXBRL, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isHashDependsOnAtribute, 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, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setId, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setRawParentXBRL, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqualaddAttribute, 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, setTypeAnnotationatomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replacepublic static final javax.xml.namespace.QName entity
public static final net.sf.saxon.om.StructuredQName sqnEntity
public static XBRLEntity.EntityComparator EntityComparatorInstance
public XBRLEntity(XMLFragment node)
node - the node to replacepublic XBRLEntity(DTSContainer dts, java.lang.String scheme, java.lang.String identifier, XBRLSegment segment)
dts - - DTSContainer the DTS objectscheme - - String the scheme URI string, may be nullidentifier - - String the company name token, may be nullsegment - - XBRLSegment the content of the segment, may be nullpublic static XBRLEntity make(DTSContainer dts)
dts - the dtspublic XBRLEntity clone()
clone in class XMLFragmentpublic XBRLEntity clone(DTSContainer newDTS)
clone in class XMLFragmentnewDTS - the new DTSpublic void setScheme(java.lang.String scheme)
scheme - the new schemepublic void setIdentifier(java.lang.String identifier)
identifier - the new identifierpublic void setSegment(XBRLSegment segment)
segment - the new segmentpublic java.lang.String getScheme()
public java.lang.String getIdentifier()
Note this method returns the identifier after removing leading and trailing spaces and never returns null. If the surrounding identifier node contains no string value or contains null, this method will return the empty string instead.
 If you want to obtain the real value of the identifier node and deal with
 null and leading and trailing spaces then obtain a reference to the
 identifier node via call to getOrCreateIdentifierNode() and
 continue from there.
public XBRLIdentifier getOrCreateIdentifierNode()
getIdentifierNode()public XBRLIdentifier getIdentifierNode()
getIdentifier()public XBRLSegment getSegment()
getOrCreateSegment()public XBRLSegment getOrCreateSegment()
setSegment(XBRLSegment)public boolean equals(java.lang.Object other)
equals in interface net.sf.saxon.om.NodeInfoequals in class XMLFragmentother - the otherpublic boolean s_equal2(java.lang.Object other)
s_equal2 in class XMLFragmentother - the otherpublic int hashCode()
hashCode in interface net.sf.saxon.om.NodeInfohashCode in class XMLFragmentpublic XBRLEntity generateNode() throws XBRLSerializationException
generateNode in class XMLFragmentXBRLSerializationException - the XBRL serialization exceptionpublic net.sf.saxon.s9api.XdmValue getValue()
getValue in class XMLFragmentpublic final boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfohasChildNodes in class net.sf.saxon.tree.linked.NodeImplpublic 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.NodeImplpublic final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild in class net.sf.saxon.tree.linked.NodeImplCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa