|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.instance.XBRLFact
com.ihr.xbrl.om.instance.XBRLFactItem
com.ihr.xbrl.om.instance.XBRLFactNumeric
public class XBRLFactNumeric
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
decimals
|
static javax.xml.namespace.QName |
denominator
|
static javax.xml.namespace.QName |
numerator
|
static javax.xml.namespace.QName |
precision
|
static javax.xml.namespace.QName |
unitRef
|
| Fields inherited from class com.ihr.xbrl.om.instance.XBRLFactItem |
|---|
contextRef |
| Fields inherited from class com.ihr.xbrl.om.instance.XBRLFact |
|---|
nil |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 XBRLNumericValue.DECIMALS or XBRLNumericValue.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)
Returns a string description that represents the element content in a form that users can understand. |
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()
|
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)
|
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 |
XBRLValidationReport |
validate(XBRLCoreProcessor proc)
Validates the item or tuple |
boolean |
vEqual(XBRLFactItem toFact)
Check if two items are value equal as defined in the XBRL 2.1 specification |
| Methods inherited from class com.ihr.xbrl.om.instance.XBRLFactItem |
|---|
cEqual, createItemInstance, createItemInstance, createItemInstance, getContext, getDocumentURI, getElementDefinition, getStringValue, isBlank, isDescendantOrSibling, s_equal2, setBlank, setContext |
| Methods inherited from class com.ihr.xbrl.om.instance.XBRLFact |
|---|
createItemOrTupleInstance, createItemOrTupleInstance, generateLocatorToNode, getElements, getInstance, getParent, getTaxonomy, getXPathToRoot, invalidate, isNil, pEqual, setId, setNil, setParent |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public XBRLFactNumeric(XBRLFactsList container,
XBRLContext context,
XBRLItem item,
XBRLUnit unit,
XBRLNumber value)
container - context - item - unit - value -
XBRLRuntimeException - encapsulating an XBRLValidationException if the item type is not numeric
public XBRLFactNumeric(XBRLFactsList container,
XBRLContext context,
XBRLItem item,
XBRLUnit unit)
container - context - item - unit -
XBRLRuntimeException - encapsulating an XBRLValidationException if the item type is not numeric
public XBRLFactNumeric(XBRLFactsList container,
net.sf.saxon.s9api.XdmNode root,
XBRLItem item)
throws XBRLValidationException
container - root - item -
XBRLValidationException - if the item is not numeric| Method Detail |
|---|
public XBRLFactNumeric clone()
clone in class XBRLFactItempublic XBRLFactNumeric clone(DTSContainer newDTS)
XBRLFact
clone in class XBRLFactItem
public void clear()
throws java.lang.Throwable
clear in class XBRLFactItemjava.lang.Throwablepublic void setUnit(XBRLUnit unit)
unit - public XBRLUnit getUnit()
XBRLValidationExceptionpublic 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 -
public void setValue(net.sf.saxon.value.AtomicValue value)
setValue in class XBRLFactItempublic void setValue(net.sf.saxon.s9api.XdmValue value)
XMLFragment
setValue in class XBRLFactItempublic net.sf.saxon.s9api.XdmValue getValue()
XMLFragment
getValue 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
XBRLRuntimeException - encapsulating an XBRLValidationExceptionpublic boolean uEqual(XBRLFactItem factTotal)
uEqual in class XBRLFactItemfactTotal -
XBRLValidationExceptionpublic boolean vEqual(XBRLFactItem toFact)
XBRLFactItem
vEqual in class XBRLFactItemtoFact - the other XBRLFactItem
public boolean isDuplicate(XBRLFact otherFact)
XBRLFact
isDuplicate in class XBRLFactotherFact - the other XBRLFactItem
public boolean isDuplicate(XBRLFactItem otherFact,
boolean reversePEqual)
XBRLFactItem
isDuplicate in class XBRLFactItempublic XBRLValidationReport validate(XBRLCoreProcessor proc)
XBRLFact
validate in class XBRLFactItem
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLFactItem
generateNode in class XBRLFactItemrelativize - boolean indicating if URIs should be relativized to the base URI (see next argument)base - the URI to which some attributes of this object should be relativided
XBRLSerializationExceptionpublic boolean isFraction()
public int getFormat()
public void setFormat(int format)
format - public java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XBRLFact
public java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XMLFragmentThis function accepts flags that are defined as constants in XMLFragment in order to modify the output.
getFriendlyName in class XBRLFactmodifiers - integer
public int hashCode()
hashCode in class XBRLFactItempublic boolean equals(java.lang.Object obj)
XMLFragment
equals in class XBRLFactItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||