XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class FractionItemImpl

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.FractionItemImpl
All Implemented Interfaces:
Serializable, Comparable<XML>, Fact, FractionItem, Fragment, Item, NumericItem, XML

public class FractionItemImpl
extends NumericItemImpl
implements FractionItem

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

Field Summary
 
Fields inherited from class org.xbrlapi.impl.XMLImpl
logger
 
Constructor Summary
FractionItemImpl()
           
 
Method Summary
 double getDenominator()
          Get the fraction denominator.
 double getNumerator()
          Get the fraction numerator.
 
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

FractionItemImpl

public FractionItemImpl()
Method Detail

getNumerator

public double getNumerator()
                    throws XBRLException
Description copied from interface: FractionItem
Get the fraction numerator.

Specified by:
getNumerator in interface FractionItem
Returns:
the decimal value of the fraction numerator with leading and trailing spaces removed.
Throws:
XBRLException - if the numerator is missing.
See Also:
FractionItem.getNumerator()

getDenominator

public double getDenominator()
                      throws XBRLException
Description copied from interface: FractionItem
Get the fraction denominator.

Specified by:
getDenominator in interface FractionItem
Returns:
the decimal value of the fraction denominator with leading and trailing spaces removed.
Throws:
XBRLException - if the denominator is missing.
See Also:
FractionItem.getDenominator()

Get Java XBRL API implementation at SourceForge.net.