public class XBRLFactNumeric extends XBRLFactItem implements HasAdditionalEqualityForReassignation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
decimals
The Constant decimals.
|
static javax.xml.namespace.QName |
denominator
The Constant denominator.
|
static javax.xml.namespace.QName |
numerator
The Constant numerator.
|
static javax.xml.namespace.QName |
precision
The Constant precision.
|
static javax.xml.namespace.QName |
unitRef
The Constant unitRef.
|
contextRefCONCEPT_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| Constructor and Description |
|---|
XBRLFactNumeric(XBRLFactsList container,
XBRLContext context,
XBRLItem item,
XBRLUnit unit)
Creates a numeric fact item providing all required information and NIL value.
|
XBRLFactNumeric(XBRLFactsList container,
XBRLContext context,
XBRLItem item,
XBRLUnit unit,
XBRLNumber value)
Creates a numeric fact item providing all required information.
|
XBRLFactNumeric(XBRLFactsList container,
net.sf.saxon.s9api.XdmNode root,
XBRLItem item,
int pos)
Instantiates a new XBRL fact numeric.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Eliminates all this fact content.
|
XBRLFactNumeric |
clone() |
XBRLFactNumeric |
clone(DTSContainer newDTS)
Clone current fact but in a new DTSContainer.
|
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 unitRef,decimals and precision attributes from the XBRLFactNumeric
Parent iterators already removes the id attribute and the contextRef attributes.
|
int |
getFormat()
Returns the representation format of this element
XBRLNumber.DECIMALS or #XBRLNumber.PRECISION
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
XBRLNumber |
getNumericValue()
Return the double representation of the value after dealing with @precision and @decimals
This class returns either a XBRLNumericValue or an XBRLFractionValue depending on the surrounding
value is a fraction or a number.
|
XBRLUnit |
getUnit()
Obtains the unit of this fact.
|
net.sf.saxon.s9api.XdmValue |
getValue()
Returns the value of this node.
|
int |
hashCode() |
boolean |
isDuplicate(XBRLFact otherFact)
Check if two items are duplicates as defined in the XBRL 2.1 specification
|
boolean |
isDuplicate(XBRLFactItem otherFact,
boolean reversePEqual)
For internal purposes only during the calculation of isDuplicate of tuple children
elements.
|
boolean |
isFraction()
Checks if is fraction.
|
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.
|
void |
setFormat(int format)
Sets the representation of this number to DECIMALS or PRECISION.
|
void |
setUnit(XBRLUnit unit)
Sets a new unit for this fact.
|
void |
setValue(net.sf.saxon.value.AtomicValue value)
Sets the value.
|
XBRLNumber |
setValue(XBRLNumber newVal)
Sets the value of this numeric fact to a new value.
|
void |
setValue(net.sf.saxon.s9api.XdmValue value)
Sets the value of this node.
|
boolean |
uEqual(XBRLFactItem factTotal)
Evaluates it the two instantiation of the items are u-equal.
|
boolean |
vEqual(XBRLFactItem toFact)
Check if two items are value equal as defined in the XBRL 2.1 specification
|
cEqual, createItemInstance, createItemInstance, createItemInstance, getContext, getDocumentURI, getElementDefinition, getStringValue, isBlank, isDescendantOrSibling, s_equal2, setBlank, setContextaddEvent, addEvent, addEvent, createItemOrTupleInstance, createItemOrTupleInstance, generateLocatorToNode, getElements, getHistory, getHistoryAsString, getInstance, getParent, getTaxonomy, getValidationReport, getXPathToRoot, invalidate, invalidate, 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, 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 unitRef
public static final javax.xml.namespace.QName decimals
public static final javax.xml.namespace.QName precision
public static final javax.xml.namespace.QName numerator
public static final javax.xml.namespace.QName denominator
public XBRLFactNumeric(XBRLFactsList container, XBRLContext context, XBRLItem item, XBRLUnit unit, XBRLNumber value)
container - the containercontext - the contextitem - the itemunit - the unitvalue - the valuepublic XBRLFactNumeric(XBRLFactsList container, XBRLContext context, XBRLItem item, XBRLUnit unit)
container - the containercontext - the contextitem - the itemunit - the unitpublic XBRLFactNumeric(XBRLFactsList container, net.sf.saxon.s9api.XdmNode root, XBRLItem item, int pos) throws XBRLValidationException
container - the containerroot - the rootitem - the itempos - the posXBRLValidationException - if the item is not numericpublic XBRLFactNumeric clone()
clone in class XBRLFactItempublic XBRLFactNumeric clone(DTSContainer newDTS)
XBRLFactclone in class XBRLFactItemnewDTS - the new dtspublic void clear()
throws java.lang.Throwable
clear in class XBRLFactItemjava.lang.Throwable - the throwablepublic void setUnit(XBRLUnit unit)
unit - the new unitpublic XBRLUnit getUnit()
public java.util.Iterator<XBRLAttribute> getAttributes()
Parent iterators already removes the id attribute and the contextRef attributes.
getAttributes in class XBRLFactItemXMLFragment.getAttributes()public XBRLNumber setValue(XBRLNumber newVal)
newVal - the new valpublic void setValue(net.sf.saxon.value.AtomicValue value)
XMLFragmentsetValue in class XBRLFactItemvalue - the new valuepublic void setValue(net.sf.saxon.s9api.XdmValue value)
XMLFragmentsetValue in class XBRLFactItemvalue - the new valuepublic net.sf.saxon.s9api.XdmValue getValue()
XMLFragmentgetValue in class XMLFragmentpublic XBRLNumber getNumericValue()
This class returns either a XBRLNumericValue or an XBRLFractionValue depending on the surrounding value is a fraction or a number.
public boolean uEqual(XBRLFactItem factTotal)
uEqual in class XBRLFactItemfactTotal - the fact totalpublic boolean vEqual(XBRLFactItem toFact)
XBRLFactItemvEqual in class XBRLFactItemtoFact - the other XBRLFactItempublic boolean isDuplicate(XBRLFact otherFact)
XBRLFactisDuplicate in class XBRLFactotherFact - the other XBRLFactItempublic boolean isDuplicate(XBRLFactItem otherFact, boolean reversePEqual)
XBRLFactItemisDuplicate in class XBRLFactItemotherFact - the t targetreversePEqual - the reverse p equalpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLFactItemgenerateNode in class XBRLFactItemrelativize - the relativizebase - the baseXBRLSerializationException - the XBRL serialization exceptionpublic boolean isFraction()
public int getFormat()
public void setFormat(int format)
format - the new formatpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XBRLFactpublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XBRLFactgetFriendlyName in class XBRLFactmodifiers - the modifierslp - the lppublic int hashCode()
hashCode in class XBRLFactItempublic boolean equals(java.lang.Object obj)
XMLFragmentequals in class XBRLFactItemobj - the otherpublic boolean resolve_equal2(net.sf.saxon.s9api.XdmNode otherXdmNode)
HasAdditionalEqualityForReassignationresolve_equal2 in interface HasAdditionalEqualityForReassignationresolve_equal2 in class XBRLFactItemotherXdmNode - the other xdm node