public abstract class XBRLFactItem extends XBRLFact implements HasAdditionalEqualityForReassignation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
contextRef
The Constant contextRef.
|
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| Modifier and Type | Method and Description |
|---|---|
boolean |
cEqual(XBRLFactItem factTotal)
Evaluates if the two instantiation of the items are c-equal.
|
void |
clear()
Eliminates all this fact content.
|
XBRLFactItem |
clone() |
XBRLFactItem |
clone(DTSContainer newDTS)
Clone current fact but in a new DTSContainer.
|
static XBRLFactItem |
createItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
XBRLUnit unit)
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)
Creates the item instance.
|
static XBRLFactItem |
createItemInstance(XBRLFactsList container,
net.sf.saxon.s9api.XdmNode node,
XMLFragment xf,
int pos)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric
depending on the data type (derivation included) of the concept definition.
|
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object.
|
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Generates the XBRLFactItem jdom 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.
|
java.lang.String |
getStringValue()
Returns a string representation of the value of this XMLFragment
if value is null the function returns null.
|
int |
hashCode() |
boolean |
isBlank()
true if the fact item has no value assigned.
|
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 |
resolve_equal2(net.sf.saxon.s9api.XdmNode otherXdmNode)
resolves content that is added by this XMLFragment during XMLNode serialization
and may not be available to the lower levels in the hierarchy.
|
boolean |
s_equal2(java.lang.Object other)
Resolves s_equal2 comparison of this node against the other node.
|
void |
setBlank(boolean value)
Sets the indicator that this fact item is blank.
|
void |
setContext(XBRLContext c)
Sets the context of this fact.
|
void |
setValue(net.sf.saxon.value.AtomicValue value)
Sets the value.
|
void |
setValue(net.sf.saxon.s9api.XdmValue value)
Sets the value of this node.
|
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, addEvent, addEvent, createItemOrTupleInstance, createItemOrTupleInstance, generateLocatorToNode, getElements, getFriendlyName, getFriendlyName, getHistory, getHistoryAsString, getInstance, getParent, getTaxonomy, getValidationReport, getXPathToRoot, invalidate, invalidate, isDuplicate, isNil, isOnValidation, pEqual, setId, setNil, setParent, validateaddAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, 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, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolveHRef, resolveHRef, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setVariablesDefined, size, thin, toString, valueEquals, xEqualpublic static final javax.xml.namespace.QName contextRef
public void clear()
throws java.lang.Throwable
public XBRLFactItem clone()
public XBRLFactItem clone(DTSContainer newDTS)
XBRLFactpublic static XBRLFactItem createItemInstance(XBRLFactsList container, net.sf.saxon.s9api.XdmNode node, XMLFragment xf, int pos) throws XBRLValidationException
container - XBRLFactsContainer where the new fact will be addednode - NodeInfo to process while creating the fact itemxf - XBRLItem concept definitionpos - the posXBRLValidationException - the XBRL validation exceptionpublic static XBRLFactItem createItemInstance(XBRLFactsList container, XBRLContext ctx, XBRLItem xf, XBRLUnit unit)
container - XBRLFactsList container of the new factctx - XBRLContext for the new factxf - XBRLItem definitionunit - XBRLUnit may be null is item is string item typepublic static XBRLFact createItemInstance(XBRLFactsList parent, XBRLItem xf, XBRLFactItem otherFact)
parent - the parentxf - the xfotherFact - the other factpublic java.net.URI getDocumentURI()
public java.lang.String getStringValue()
throws XBRLSerializationException
XMLFragmentgetStringValue in class XMLFragmentXBRLSerializationException - the XBRL serialization exceptionpublic XBRLContext getContext()
public void setContext(XBRLContext c)
c - new XBRLContextpublic java.util.Iterator<XBRLAttribute> getAttributes()
Parent iterators already removes the id attribute if any.
getAttributes in class XMLFragmentXMLFragment.getAttributes()public XBRLItem getElementDefinition()
getElementDefinition in class XBRLFactpublic 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 isBlank()
public void setBlank(boolean value)
value - the new blankpublic void setValue(net.sf.saxon.value.AtomicValue value)
XMLFragmentpublic void setValue(net.sf.saxon.s9api.XdmValue value)
XMLFragmentpublic boolean isDescendantOrSibling(XBRLFactItem otherFact)
otherFact - XBRLFactItempublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
generateNode in class XBRLFactrelativize - the relativizebase - the baseXBRLSerializationException - the XBRL serialization exceptionpublic boolean s_equal2(java.lang.Object other)
XMLFragments_equal2 in class XMLFragmentother - The other node (preferably an XMLFragment) that contains a non null NodeInfo document.public boolean equals(java.lang.Object obj)
XMLFragmentpublic abstract boolean isDuplicate(XBRLFactItem tTarget, boolean reversePEqual)
tTarget - the t targetreversePEqual - the reverse p equalpublic boolean resolve_equal2(net.sf.saxon.s9api.XdmNode otherXdmNode)
HasAdditionalEqualityForReassignationresolve_equal2 in interface HasAdditionalEqualityForReassignationresolve_equal2 in class XMLFragmentotherXdmNode - the other xdm node