XBRLAPI

A Java API for XBRL


org.xbrlapi.aspects
Class UnitAspectValue

java.lang.Object
  extended by org.xbrlapi.aspects.AspectValueImpl
      extended by org.xbrlapi.aspects.UnitAspectValue
All Implemented Interfaces:
Serializable, AspectHandler, AspectValue

public class UnitAspectValue
extends AspectValueImpl
implements AspectValue

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
UnitAspectValue()
          Missing aspect value constructor.
UnitAspectValue(Unit unit)
           
 
Method Summary
 URI getAspectId()
           
 List<Measure> getDenominators()
           
 String getId()
          The missing aspect value ID is the empty string.
 List<Measure> getNumerators()
           
 boolean hasDenominators()
           
 boolean isMissing()
          This method must be implemented by each concrete aspect value class.
 
Methods inherited from class org.xbrlapi.aspects.AspectValueImpl
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

UnitAspectValue

public UnitAspectValue()
Missing aspect value constructor.


UnitAspectValue

public UnitAspectValue(Unit unit)
                throws XBRLException
Parameters:
unit - The unit fragment.
Throws:
XBRLException
Method Detail

getNumerators

public List<Measure> getNumerators()

getDenominators

public List<Measure> getDenominators()

hasDenominators

public boolean hasDenominators()

getAspectId

public URI getAspectId()
Specified by:
getAspectId in interface AspectHandler
Returns:
the aspect itself
See Also:
AspectHandler.getAspectId()

isMissing

public boolean isMissing()
Description copied from interface: AspectValue
This method must be implemented by each concrete aspect value class.

Specified by:
isMissing in interface AspectValue
Returns:
true if this aspect value represents a missing value and false otherwise.
See Also:
AspectValue.isMissing()

getId

public String getId()
The missing aspect value ID is the empty string.

Specified by:
getId in interface AspectValue
Returns:
the string value that uniquely identifies this aspect value, for a given aspect. This value is not generally human readable. The label handler methods are more suitable for obtaining human readable representations of aspect values. A unique value for missing aspect values needs to be generated by implementations of this method.
See Also:
AspectValue.getId()

Get Java XBRL API implementation at SourceForge.net.