XBRLAPI

A Java API for XBRL


org.xbrlapi.xdt.aspects
Class ExplicitDimensionDomain

java.lang.Object
  extended by org.xbrlapi.aspects.DomainImpl
      extended by org.xbrlapi.xdt.aspects.DimensionDomainImpl
          extended by org.xbrlapi.xdt.aspects.ExplicitDimensionDomain
All Implemented Interfaces:
Serializable, Comparator<AspectValue>, Domain, StoreHandler

public class ExplicitDimensionDomain
extends DimensionDomainImpl
implements Domain

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
ExplicitDimensionDomain(Store store, URI dimensionNamespace, String dimensionLocalname)
           
 
Method Summary
 int compare(AspectValue first, AspectValue second)
           
 boolean isInDomain(AspectValue candidate)
           
 
Methods inherited from class org.xbrlapi.xdt.aspects.DimensionDomainImpl
getAspectId, getDimensionLocalname, getDimensionNamespace
 
Methods inherited from class org.xbrlapi.aspects.DomainImpl
allowsMissingValues, getAllAspectValues, getChildren, getDepth, getParent, getSize, getStore, hasChildren, hasParent, isFinite, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.aspects.Domain
allowsMissingValues, getAllAspectValues, getAspectId, getChildren, getDepth, getParent, getSize, hasChildren, hasParent, isFinite, isRoot
 
Methods inherited from interface org.xbrlapi.aspects.StoreHandler
getStore
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

logger

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

ExplicitDimensionDomain

public ExplicitDimensionDomain(Store store,
                               URI dimensionNamespace,
                               String dimensionLocalname)
                        throws XBRLException
Throws:
XBRLException
Method Detail

isInDomain

public boolean isInDomain(AspectValue candidate)
                   throws XBRLException
Specified by:
isInDomain in interface Domain
Parameters:
candidate - The candidate aspect value.
Returns:
true if the aspect value is in the domain and false otherwise.
Throws:
XBRLException
See Also:
Domain.isInDomain(AspectValue)

compare

public int compare(AspectValue first,
                   AspectValue second)
Specified by:
compare in interface Comparator<AspectValue>
Parameters:
first - The first aspect value
second - The second aspect value
Returns:
-1 if the first aspect value is less than the second, 0 if they are equal and 1 if the first aspect value is greater than the second. Any aspect values that are not in this domain are placed last in the aspect value ordering. Otherwise, the comparison is based upon the natural ordering of the aspect value IDs. Missing values are ranked last among aspect values of the same type.

Get Java XBRL API implementation at SourceForge.net.