org.xbrlapi.aspects
Interface Aspect
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- AspectImpl, ConceptAspect, DimensionAspect, EntityAspect, ExplicitDimensionAspect, LocationAspect, PeriodAspect, ScenarioAspect, ScenarioRemainderAspect, SegmentAspect, SegmentRemainderAspect, TupleAspect, TypedDimensionAspect, UnitAspect
public interface Aspect
- extends Serializable
Aspect explanation.
An aspect is a characteristic of XBRL facts. Not all XBRL facts need to
define a value for an aspect. For example, non-numeric facts do not define
values for the aspect that captures measurement units.
Aspects have the following characteristics:
- Each aspect has a unique identifier. This is expressed
by an absolute URI and is accessed via the static ID field that is
made public by each concrete aspect class.
- Where an aspect does not have a value for a fact, the aspect value for
that aspect/fact combination is identified as a "missing" aspect value.
- Aspects can be associated with a set of values for that aspect.
- Aspects can be used in isolation but can also be combined with other
aspects to form an aspect model.
- Aspects can have multiple human-readable labels, one per language.
- Aspects define a mapping from a fact to an aspect value. Thus, given a
fact, the aspect can produce its aspect value (sometimes that is the missing
aspect value).
- All aspects only have constructors with no arguments.
- All aspects define a default domain for themselves.
- Author:
- Geoff Shuetrim (geoff@galexy.net)
getValue
AspectValue getValue(Fact fact)
throws XBRLException
- Parameters:
fact - The fact to get the aspect value for.
- Returns:
- a value for this aspect for the given fact.
- Throws:
XBRLException
getValue
AspectValue getValue(Context context)
throws XBRLException
- Parameters:
context - The context to get the aspect value from.
- Returns:
- the aspect value for the context or the missing aspect value if
the context does not define a value for the aspect.
- Throws:
XBRLException
getValue
AspectValue getValue(Unit unit)
throws XBRLException
- Parameters:
unit - The unit to get the aspect value from.
- Returns:
- the aspect value for the context or the missing aspect value if
the unit does not define a value for the aspect.
- Throws:
XBRLException
getDomain
Domain getDomain()
- Returns:
- The domain of valid values for this aspect.
getId
URI getId()
- Returns:
- the URI that identifies this aspect.
getMissingValue
AspectValue getMissingValue()
- Returns:
- the missing aspect value for this aspect.
isExtensible
boolean isExtensible()
- Returns:
- true if the aspect can be defined by DTS augmentations
and false otherwise. True for XDT dimensions, for example, and false
for concept and location aspects, for example.