public abstract class XBRLFact extends XMLFragment implements XBRLValidation, StoreHistoryInterface
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
XBRLValidation.Direction
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 |
---|---|
void |
addEvent(HistoricalEventInterface event)
Adds the event.
|
void |
clear()
Eliminates all this fact content.
|
XBRLFact |
clone()
Clone.
|
XBRLFact |
clone(DTSContainer newDTS)
Clone current fact but in a new DTSContainer.
|
static XBRLFactNumeric |
createFractionItemInstance(XBRLFactsList facts,
XBRLItem el,
XBRLContext ctx,
XBRLUnit unit,
java.lang.Number numerator,
java.lang.Number denominator,
boolean addToParentNow)
Creates a tupleInstance of a itemInstance depending on the data type of the el parameter and extra information
provided in other parameters.
|
static XBRLFact |
createItemOrTupleInstance(DTSContainer dts,
XBRLFactsList facts,
XMLFragment node)
Creates a tupleInstance or a itemInstance depending on the node content.
|
static XBRLFactNonNumeric |
createNonNumericItemInstance(XBRLFactsList facts,
XBRLItem el,
XBRLContext ctx,
java.lang.String value,
boolean addToParentNow)
Creates a tupleInstance of a itemInstance depending on the data type of the el parameter and extra information
provided in other parameters.
|
static XBRLFactNumeric |
createNumericItemInstance(XBRLFactsList facts,
XBRLItem el,
XBRLContext ctx,
XBRLUnit unit,
java.lang.Number value,
XBRLNumber.ExactitudeMode format,
int formatValue,
boolean addToParentNow)
Creates a tupleInstance of a itemInstance depending on the data type of the el parameter and extra information
provided in other parameters.
|
static XBRLFactTuple |
createTupleInstance(XBRLFactsList facts,
XBRLTuple el,
boolean addToParentNow)
Creates a tupleInstance of a itemInstance depending on the data type of the el parameter and extra information
provided in other parameters.
|
void |
delete()
Delete.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XBRLFact |
generateNode()
Generates the XBRLFact jdom node.
|
int |
getCode()
Gets the code.
|
XMLElementDefinition |
getElementDefinition()
Access to the element definition behind this fact.
|
java.util.Iterator<XMLFragment> |
getElements()
Gets the elements.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
java.util.Collection<HistoricalEventInterface> |
getHistory()
Gets the history.
|
java.lang.String |
getHistoryAsHTMLString()
Gets the history as HTML string.
|
java.lang.String |
getHistoryAsString()
Gets the history as string.
|
XBRLInstance |
getInstance()
The instance document where this fact exists.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
XMLFragment |
getParentXBRL()
The parent of a fact is always a facts container.
|
XBRLFactsList |
getParentXBRLFactsList()
Gets the parent XBRL facts list.
|
XBRLTaxonomy |
getTaxonomy()
The XBRLTaxonomy in which this fact is defined.
|
XBRLValidationReport |
getValidationReport()
Gets the validation report.
|
net.sf.saxon.s9api.XdmValue |
getValue()
Gets the value.
|
java.lang.String |
getXPathToRoot()
Gets the x path to root.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
void |
invalidate()
Invalidate.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidate.
|
boolean |
isBlank()
true if the fact item has no value assigned.
|
abstract boolean |
isDuplicate(XBRLFact otherFact)
Check if two items are duplicates as defined in the XBRL 2.1 specification
|
boolean |
isOnValidation()
Checks if is on validation.
|
boolean |
pEqual(XBRLFact toFact)
Implementation of the p-equality as defined in the XBRL 2.1 specification.
|
void |
setBlank(boolean value)
Sets the indicator that this fact item is blank.
|
void |
setCode(int newCode)
Sets the code.
|
void |
setId(java.lang.String id)
Sets the id.
|
void |
setInstance(XBRLInstance instance)
Sets the instance.
|
boolean |
setNil(boolean newValue)
Sets the nil attribute to true or false according to the param value.
|
void |
setParent(XBRLFactsList parent)
Sets the parent of this XBRLFact to be the XBRLFactsList object used as a parameter.
|
void |
setValue(net.sf.saxon.value.AtomicValue value)
Sets the value.
|
void |
setValue(net.sf.saxon.s9api.QName value)
Sets the value.
|
void |
setValue(javax.xml.namespace.QName value)
Sets the value.
|
void |
setValue(java.lang.String value)
Sets the value.
|
void |
setValue(java.lang.String value,
net.sf.saxon.type.BuiltInAtomicType type)
Sets the value.
|
void |
setValue(net.sf.saxon.s9api.XdmAtomicValue value)
Sets the value.
|
void |
setValue(net.sf.saxon.s9api.XdmValue value)
Sets the value.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
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, getAttributes, 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, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getXPath, getXPathFromXPointer, getXPathNamespaceContext, 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, 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 XBRLFact clone()
clone
in class XMLFragment
public int getCode()
public void setCode(int newCode)
newCode
- the new codepublic XBRLFact clone(DTSContainer newDTS)
clone
in class XMLFragment
newDTS
- the new dtspublic boolean isBlank()
public void setBlank(boolean value)
value
- the new blankpublic void setParent(XBRLFactsList parent)
Setting the parent does not adds the fact as child of the parent element. This function do the following steps:
parent
- the new parentpublic void setId(java.lang.String id) throws XBRLInconsistentDTSException
setId
in class XMLFragment
id
- the new idXBRLInconsistentDTSException
- the XBRL inconsistent DTS exceptionpublic XMLFragment getParentXBRL()
getParentXBRL
in class XMLFragment
public XBRLFactsList getParentXBRLFactsList()
public java.lang.String getXPathToRoot()
getXPathToRoot
in class XMLFragment
public void delete()
delete
in interface net.sf.saxon.om.MutableNodeInfo
delete
in class XMLFragment
public XMLElementDefinition getElementDefinition()
public XBRLInstance getInstance()
public void setInstance(XBRLInstance instance)
instance
- the new instancepublic XBRLTaxonomy getTaxonomy()
public boolean pEqual(XBRLFact toFact)
p-equality means parent-equality. two facts are p-equal if they have the same parent node
toFact
- the other fact to compare this fact topublic static XBRLFact createItemOrTupleInstance(DTSContainer dts, XBRLFactsList facts, XMLFragment node) throws XBRLValidationException
dts
- DTSContainerfacts
- XBRLFactsListnode
- XMLFragmentXBRLValidationException
- the XBRL validation exceptionpublic static XBRLFactNumeric createNumericItemInstance(XBRLFactsList facts, XBRLItem el, XBRLContext ctx, XBRLUnit unit, java.lang.Number value, XBRLNumber.ExactitudeMode format, int formatValue, boolean addToParentNow)
facts
- XBRLFactsContainer if null, the fact will not be part of any factsListel
- XBRLElementDefinition must be either XBRLTuple or XBRLItem, Cannot be nullctx
- XBRLContext, if element is a tuple this parameter can be nullunit
- XBRLUnit, if element is not numeric or is a tuple this parameter can be nullvalue
- 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 XBRLFactNonNumeric createNonNumericItemInstance(XBRLFactsList facts, XBRLItem el, XBRLContext ctx, java.lang.String value, boolean addToParentNow)
facts
- XBRLFactsContainer if null, the fact will not be part of any factsListel
- XBRLElementDefinition must be either XBRLTuple or XBRLItem, Cannot be nullctx
- XBRLContext, if element is a tuple this parameter can be nullvalue
- the valueaddToParentNow
- if this is true, the new fact will be added to the instance. If this is false, call container.add(...)
laterpublic static XBRLFactTuple createTupleInstance(XBRLFactsList facts, XBRLTuple el, boolean addToParentNow)
facts
- XBRLFactsContainer if null, the fact will not be part of any factsListel
- XBRLElementDefinition must be either XBRLTuple or XBRLItem, Cannot be nulladdToParentNow
- 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 facts, XBRLItem el, XBRLContext ctx, XBRLUnit unit, java.lang.Number numerator, java.lang.Number denominator, boolean addToParentNow)
facts
- XBRLFactsContainer if null, the fact will not be part of any factsListel
- XBRLElementDefinition must be either XBRLTuple or XBRLItem, Cannot be nullctx
- XBRLContext, if element is a tuple this parameter can be nullunit
- XBRLUnit, if element is not numeric or is a tuple this parameter can be nullnumerator
- 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 XBRLValidationReport validate(XBRLPlugInProcessor proc)
validate
in interface XBRLValidation
proc
- the procpublic void invalidate()
invalidate
in interface XBRLValidation
public boolean invalidate(XBRLValidation.Direction dir)
invalidate
in interface XBRLValidation
dir
- the dirpublic XBRLValidationReport getValidationReport()
getValidationReport
in interface XBRLValidation
public boolean isOnValidation()
isOnValidation
in interface XBRLValidation
public abstract boolean isDuplicate(XBRLFact otherFact)
otherFact
- the other XBRLFactItempublic boolean setNil(boolean newValue)
setNil
in class XMLFragment
newValue
- the new nilpublic void setValue(net.sf.saxon.value.AtomicValue value)
setValue
in class XMLFragment
value
- the new valuepublic void setValue(net.sf.saxon.s9api.XdmValue value)
setValue
in class XMLFragment
value
- the new valuepublic void setValue(net.sf.saxon.s9api.XdmAtomicValue value)
setValue
in class XMLFragment
value
- the new valuepublic void setValue(java.lang.String value)
setValue
in class XMLFragment
value
- the new valuepublic void setValue(java.lang.String value, net.sf.saxon.type.BuiltInAtomicType type)
setValue
in class XMLFragment
value
- the valuetype
- the typepublic void setValue(net.sf.saxon.s9api.QName value)
setValue
in class XMLFragment
value
- the new valuepublic void setValue(javax.xml.namespace.QName value)
setValue
in class XMLFragment
value
- the new valuepublic XBRLFact generateNode() throws XBRLSerializationException
generateNode
in class XMLFragment
XBRLSerializationException
- the XBRL serialization exceptionpublic java.util.Iterator<XMLFragment> getElements()
getElements
in class XMLFragment
public java.lang.String getFriendlyName()
getFriendlyName
in class XMLFragment
public java.lang.String getFriendlyName(int modifiers, LabelsProvider lp)
getFriendlyName
in class XMLFragment
modifiers
- the modifierslp
- the lppublic void addEvent(HistoricalEventInterface event)
addEvent
in interface StoreHistoryInterface
event
- the eventpublic java.util.Collection<HistoricalEventInterface> getHistory()
getHistory
in interface ObtainHistoryInterface
public java.lang.String getHistoryAsString()
getHistoryAsString
in interface ObtainHistoryInterface
public java.lang.String getHistoryAsHTMLString()
getHistoryAsHTMLString
in interface ObtainHistoryInterface
public void clear() throws java.lang.Throwable
clear
in class XMLFragment
java.lang.Throwable
- the throwablepublic int hashCode()
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public net.sf.saxon.s9api.XdmValue getValue()
getValue
in class XMLFragment
public boolean equals(java.lang.Object obj)
equals
in interface net.sf.saxon.om.NodeInfo
equals
in class XMLFragment
obj
- the objpublic 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