XBRLAPI

A Java API for XBRL


org.xbrlapi
Interface FractionItem

All Superinterfaces:
Comparable<XML>, Fact, Fragment, Item, NumericItem, Serializable, XML
All Known Implementing Classes:
FractionItemImpl

public interface FractionItem
extends NumericItem

Author:
Geoffrey Shuetrim (geoff@galexy.net)

Method Summary
 double getDenominator()
          Get the fraction denominator.
 double getNumerator()
          Get the fraction numerator.
 
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
 

Method Detail

getNumerator

double getNumerator()
                    throws XBRLException
Get the fraction numerator.

Returns:
the decimal value of the fraction numerator with leading and trailing spaces removed.
Throws:
XBRLException - if the numerator is missing.

getDenominator

double getDenominator()
                      throws XBRLException
Get the fraction denominator.

Returns:
the decimal value of the fraction denominator with leading and trailing spaces removed.
Throws:
XBRLException - if the denominator is missing.

Get Java XBRL API implementation at SourceForge.net.