public abstract class XBRLFactItem extends XBRLFact
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
XBRLValidation.Direction
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
contextRef
The Constant contextRef.
|
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
Modifier and Type | Method and Description |
---|---|
boolean |
cEqual(XBRLFactItem factTotal)
Evaluates if the two instantiation of the items are c-equal.
|
XBRLFactItem |
clone()
Clone.
|
XBRLFactItem |
clone(DTSContainer newDTS)
Clone.
|
static XBRLFactNumeric |
createFractionItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
XBRLUnit unit,
java.lang.Number numerator,
java.lang.Number denominator,
boolean addToParentNow)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric
depending on the information provided in extra parameters.
|
static XBRLFact |
createItemInstance(XBRLFactsList parent,
XBRLItem xf,
XBRLFactItem otherFact,
boolean addToParentNow)
Creates the item instance.
|
static XBRLFactItem |
createItemInstance(XBRLFactsList container,
XMLFragment node,
XMLFragment xf)
Creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric
depending on the data type (derivation included) of the concept definition.
|
static XBRLFactNonNumeric |
createNonNumericItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
java.lang.String value,
boolean bAddToParentNow)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric
depending on the information provided in extra parameters.
|
static XBRLFactNumeric |
createNumericItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
XBRLUnit unit,
java.lang.Number value,
XBRLNumber.ExactitudeMode format,
int formatValue,
boolean addToParentNow)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric
depending on the information provided in extra parameters.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XBRLFactItem |
generateNode()
Generates the XBRLFactItem node.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Removes the contextRef attribute from the FactItem
Parent iterators already removes the id attribute if any.
|
XBRLContext |
getContext()
Access to the context object.
|
java.net.URI |
getDocumentURI()
Access to the URI property of the instance document for this fact item.
|
XBRLItem |
getElementDefinition()
Access to the surrounding item declaration for this item.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
java.lang.String |
getStringValue()
Gets the string value.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
boolean |
isDescendantOrSibling(XBRLFactItem otherFact)
Returns true if otherFact is a descendant or sibling of this fact.
|
abstract boolean |
isDuplicate(XBRLFactItem tTarget,
boolean reversePEqual)
For internal purposes only during the calculation of isDuplicate of tuple children
elements.
|
boolean |
isHashDependsOnAtribute(javax.xml.namespace.QName attributeName)
Checks if is hash depends on atribute.
|
boolean |
s_equal2(java.lang.Object other)
S equal 2.
|
void |
setContext(XBRLContext newContext)
Sets the context of this fact.
|
abstract boolean |
uEqual(XBRLFactItem toFact)
Check if two items are unit equal as defined in the XBRL 2.1 specification
|
abstract boolean |
vEqual(XBRLFactItem toFact)
Check if two items are value equal as defined in the XBRL 2.1 specification
|
addEvent, clear, createFractionItemInstance, createItemOrTupleInstance, createNonNumericItemInstance, createNumericItemInstance, createTupleInstance, delete, getCode, getElements, getFriendlyName, getFriendlyName, getHistory, getHistoryAsHTMLString, getHistoryAsString, getInstance, getParentXBRL, getParentXBRLFactsList, getTaxonomy, getValidationReport, getValue, getXPathToRoot, invalidate, invalidate, isBlank, isDuplicate, isOnValidation, pEqual, setBlank, setCode, setId, setInstance, setNil, setParent, setValue, setValue, setValue, setValue, setValue, setValue, setValue, validate
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, 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, 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, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getXPath, getXPathFromXPointer, getXPathNamespaceContext, 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, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNodeName, setRawParentXBRL, 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, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replace
public static final javax.xml.namespace.QName contextRef
public XBRLFactItem clone()
public XBRLFactItem clone(DTSContainer newDTS)
public static XBRLFactItem createItemInstance(XBRLFactsList container, XMLFragment node, XMLFragment xf) throws XBRLValidationException
container
- XBRLFactsContainer where the new fact will be addednode
- NodeInfo to process while creating the fact itemxf
- XBRLItem concept definitionXBRLValidationException
- the XBRL validation exceptionpublic static XBRLFactNonNumeric createNonNumericItemInstance(XBRLFactsList container, XBRLContext ctx, XBRLItem xf, java.lang.String value, boolean bAddToParentNow)
container
- XBRLFactsList container of the new factctx
- XBRLContext for the new factxf
- XBRLItem definitionvalue
- the valuebAddToParentNow
- the b add to parent nowpublic static XBRLFactNumeric createNumericItemInstance(XBRLFactsList container, XBRLContext ctx, XBRLItem xf, XBRLUnit unit, java.lang.Number value, XBRLNumber.ExactitudeMode format, int formatValue, boolean addToParentNow)
container
- XBRLFactsList container of the new factctx
- XBRLContext for the new factxf
- XBRLItem definitionunit
- XBRLUnit may be null is item is string item typevalue
- the valueformat
- the formatformatValue
- the format valueaddToParentNow
- if this is true, the new fact will be added to the instance. If this is false, call container.add(...)
laterpublic static XBRLFactNumeric createFractionItemInstance(XBRLFactsList container, XBRLContext ctx, XBRLItem xf, XBRLUnit unit, java.lang.Number numerator, java.lang.Number denominator, boolean addToParentNow)
container
- XBRLFactsList container of the new factctx
- XBRLContext for the new factxf
- XBRLItem definitionunit
- XBRLUnit may be null is item is string item typenumerator
- the numeratordenominator
- the denominatoraddToParentNow
- if this is true, the new fact will be added to the instance. If this is false, call container.add(...)
laterpublic static XBRLFact createItemInstance(XBRLFactsList parent, XBRLItem xf, XBRLFactItem otherFact, boolean addToParentNow)
parent
- the parentxf
- the xfotherFact
- the other factaddToParentNow
- if this is true, the new fact will be added to the instance. If this is false, call container.add(...)
laterpublic java.net.URI getDocumentURI()
public java.lang.String getStringValue()
getStringValue
in interface net.sf.saxon.om.Item
getStringValue
in interface net.sf.saxon.om.NodeInfo
getStringValue
in class XMLFragment
public XBRLContext getContext()
public void setContext(XBRLContext newContext)
newContext
- the new contextpublic java.util.Iterator<XBRLAttribute> getAttributes()
Parent iterators already removes the id attribute if any.
getAttributes
in class XMLFragment
XMLFragment.getAttributes()
public boolean isHashDependsOnAtribute(javax.xml.namespace.QName attributeName)
isHashDependsOnAtribute
in class XMLFragment
attributeName
- the attribute namepublic XBRLItem getElementDefinition()
getElementDefinition
in class XBRLFact
public boolean cEqual(XBRLFactItem factTotal)
factTotal
- XBRLFactItem other factpublic abstract boolean vEqual(XBRLFactItem toFact)
toFact
- the other XBRLFactItempublic abstract boolean uEqual(XBRLFactItem toFact)
toFact
- the other XBRLFactItempublic boolean isDescendantOrSibling(XBRLFactItem otherFact)
otherFact
- XBRLFactItempublic XBRLFactItem generateNode() throws XBRLSerializationException
generateNode
in class XBRLFact
XBRLSerializationException
- the XBRL serialization exceptionpublic int hashCode()
public boolean s_equal2(java.lang.Object other)
s_equal2
in class XMLFragment
other
- the otherpublic boolean equals(java.lang.Object obj)
public abstract boolean isDuplicate(XBRLFactItem tTarget, boolean reversePEqual)
tTarget
- the t targetreversePEqual
- the reverse p equalpublic 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