public class NumericItemImpl extends ItemImpl implements NumericItem
Constructor and Description |
---|
NumericItemImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDecimals()
Get the decimals attribute for this item.
|
java.lang.String |
getPrecision()
Get the precision attribute for this item.
|
Unit |
getUnit()
Presumes that there is at most one XBRL instance in each document in the data store.
|
java.lang.String |
getUnitId() |
boolean |
hasDecimals()
Returns true if the fact has a decimals attribute.
|
boolean |
hasPrecision()
Returns true if the fact has a precision attribute.
|
getContext, getContextId
getConcept, getInstance, getTuple, isFraction, isNil, isNumeric, isTuple
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
appendMetadataElement, compareTo, equals, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
getClass, notify, notifyAll, toString, wait, wait, wait
getContext, getContextId
getConcept, getInstance, getTuple, isFraction, isNil, isNumeric, isTuple
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
appendMetadataElement, equals, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
public Unit getUnit() throws XBRLException
NumericItem
getUnit
in interface NumericItem
XBRLException
NumericItem.getUnit()
public java.lang.String getUnitId() throws XBRLException
getUnitId
in interface NumericItem
XBRLException
- if the unit reference is missing.NumericItem.getUnitId()
public java.lang.String getDecimals() throws XBRLException
getDecimals
in interface NumericItem
XBRLException
NumericItem.getDecimals()
public java.lang.String getPrecision() throws XBRLException
getPrecision
in interface NumericItem
XBRLException
NumericItem.getPrecision()
public boolean hasPrecision() throws XBRLException
hasPrecision
in interface NumericItem
XBRLException
NumericItem.hasPrecision()
public boolean hasDecimals() throws XBRLException
hasDecimals
in interface NumericItem
XBRLException
NumericItem.hasDecimals()