org.xbrlapi.impl
Class NumericItemImpl
java.lang.Object
org.xbrlapi.impl.XMLImpl
org.xbrlapi.impl.FragmentImpl
org.xbrlapi.impl.FactImpl
org.xbrlapi.impl.ItemImpl
org.xbrlapi.impl.NumericItemImpl
- All Implemented Interfaces:
- Serializable, Comparable<XML>, Fact, Fragment, Item, NumericItem, XML
- Direct Known Subclasses:
- FractionItemImpl, SimpleNumericItemImpl
public class NumericItemImpl
- extends ItemImpl
- implements NumericItem
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
- See Also:
- Serialized Form
| Methods inherited from class org.xbrlapi.impl.FragmentImpl |
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 |
| Methods inherited from class org.xbrlapi.impl.XMLImpl |
appendMetadataElement, compareTo, equals, finalize, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore |
| Methods inherited from interface org.xbrlapi.Fragment |
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 |
| Methods inherited from interface org.xbrlapi.XML |
appendMetadataElement, equals, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore |
NumericItemImpl
public NumericItemImpl()
getUnit
public Unit getUnit()
throws XBRLException
- Description copied from interface:
NumericItem
- Presumes that there is at most one XBRL instance in each document in the data store.
- Specified by:
getUnit in interface NumericItem
- Returns:
- the units fragment referenced by this numeric item.
- Throws:
XBRLException- See Also:
NumericItem.getUnit()
getUnitId
public String getUnitId()
throws XBRLException
- Specified by:
getUnitId in interface NumericItem
- Returns:
- the ID of the unit referenced by this item.
- Throws:
XBRLException - if the unit reference is missing.- See Also:
NumericItem.getUnitId()
getDecimals
public String getDecimals()
throws XBRLException
- Get the decimals attribute for this item.
- Specified by:
getDecimals in interface NumericItem
- Returns:
- the value of the decimals attribute
- Throws:
XBRLException- See Also:
NumericItem.getDecimals()
getPrecision
public String getPrecision()
throws XBRLException
- Get the precision attribute for this item.
- Specified by:
getPrecision in interface NumericItem
- Returns:
- the value of the precision attribute
- Throws:
XBRLException- See Also:
NumericItem.getPrecision()
hasPrecision
public boolean hasPrecision()
throws XBRLException
- Returns true if the fact has a precision attribute.
- Specified by:
hasPrecision in interface NumericItem
- Returns:
- true if the fact has a precision attribute and false otherwise.
- Throws:
XBRLException- See Also:
NumericItem.hasPrecision()
hasDecimals
public boolean hasDecimals()
throws XBRLException
- Returns true if the fact has a decimals attribute.
- Specified by:
hasDecimals in interface NumericItem
- Returns:
- true if the fact has a decimals attribute and false otherwise.
- Throws:
XBRLException- See Also:
NumericItem.hasDecimals()