XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class SimpleNumericItemImpl

java.lang.Object
  extended by org.xbrlapi.impl.XMLImpl
      extended by org.xbrlapi.impl.FragmentImpl
          extended by org.xbrlapi.impl.FactImpl
              extended by org.xbrlapi.impl.ItemImpl
                  extended by org.xbrlapi.impl.NumericItemImpl
                      extended by org.xbrlapi.impl.SimpleNumericItemImpl
All Implemented Interfaces:
Serializable, Comparable<XML>, Fact, Fragment, Item, NumericItem, SimpleNumericItem, XML

public class SimpleNumericItemImpl
extends NumericItemImpl
implements SimpleNumericItem

Author:
Geoffrey Shuetrim (geoff@galexy.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xbrlapi.impl.XMLImpl
logger
 
Constructor Summary
SimpleNumericItemImpl()
           
 
Method Summary
 String getInferredPrecision()
          Get the inferred value for precision from the value for decimals and the value of the fact.
 String getPrecisionAdjustedValue()
          Get the value of the fact after adjusting for the specified precision.
 String getValue()
          Get the value of the fact as a string.
 
Methods inherited from class org.xbrlapi.impl.NumericItemImpl
getDecimals, getPrecision, getUnit, getUnitId, hasDecimals, hasPrecision
 
Methods inherited from class org.xbrlapi.impl.ItemImpl
getContext, getContextId
 
Methods inherited from class org.xbrlapi.impl.FactImpl
getConcept, getInstance, getTuple, isFraction, isNil, isNumeric, isTuple
 
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 class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.NumericItem
getDecimals, getPrecision, getUnit, getUnitId, hasDecimals, hasPrecision
 
Methods inherited from interface org.xbrlapi.Item
getContext, getContextId
 
Methods inherited from interface org.xbrlapi.Fact
getConcept, getInstance, getTuple, isFraction, isNil, isNumeric, isTuple
 
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
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

SimpleNumericItemImpl

public SimpleNumericItemImpl()
Method Detail

getValue

public String getValue()
                throws XBRLException
Get the value of the fact as a string.

Specified by:
getValue in interface SimpleNumericItem
Returns:
the value of fact as a string.
Throws:
XBRLException
See Also:
SimpleNumericItem.getValue()

getPrecisionAdjustedValue

public String getPrecisionAdjustedValue()
                                 throws XBRLException
Get the value of the fact after adjusting for the specified precision.

Specified by:
getPrecisionAdjustedValue in interface SimpleNumericItem
Returns:
the value of the fact as a string, adjusted for the specified precision.
Throws:
XBRLException
See Also:
SimpleNumericItem.getPrecisionAdjustedValue()

getInferredPrecision

public String getInferredPrecision()
                            throws XBRLException
Get the inferred value for precision from the value for decimals and the value of the fact.

Specified by:
getInferredPrecision in interface SimpleNumericItem
Returns:
inferred value for precision.
Throws:
XBRLException
See Also:
SimpleNumericItem.getInferredPrecision()

Get Java XBRL API implementation at SourceForge.net.