XBRLAPI

A Java API for XBRL


org.xbrlapi.xdt.aspects
Class TypedDimensionLabeller

java.lang.Object
  extended by org.xbrlapi.aspects.LabellerImpl
      extended by org.xbrlapi.aspects.BaseLabeller
          extended by org.xbrlapi.xdt.aspects.TypedDimensionLabeller
All Implemented Interfaces:
Serializable, Labeller

public class TypedDimensionLabeller
extends BaseLabeller
implements Labeller

A labeller for the typed dimension aspect based upon XBRL labels and generic XBRL labels.

This labeller does not make use of label caching systems. Instead labels are obtained from the XLink relationships from typed dimensions to XBRL 2.1 and generic labels.

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

Field Summary
 
Fields inherited from class org.xbrlapi.aspects.BaseLabeller
logger
 
Constructor Summary
TypedDimensionLabeller(Aspect aspect)
           
 
Method Summary
 String getAspectLabel(String locale, URI resourceRole, URI linkRole)
           
 String getAspectLabelWithoutFallback(String locale, URI resourceRole, URI linkRole)
           
 
Methods inherited from class org.xbrlapi.aspects.BaseLabeller
getAspectValueLabel
 
Methods inherited from class org.xbrlapi.aspects.LabellerImpl
duplicate, getAspect, getAspectValueLabel, getAspectValueLabelWithoutFallback, getDomain, getStore
 
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.Labeller
duplicate, getAspect, getAspectValueLabel, getAspectValueLabel, getAspectValueLabelWithoutFallback, getDomain, getStore
 

Constructor Detail

TypedDimensionLabeller

public TypedDimensionLabeller(Aspect aspect)
                       throws XBRLException
Parameters:
aspect - The aspect to be a labeller for.
Throws:
XBRLException
Method Detail

getAspectLabelWithoutFallback

public String getAspectLabelWithoutFallback(String locale,
                                            URI resourceRole,
                                            URI linkRole)
Specified by:
getAspectLabelWithoutFallback in interface Labeller
Overrides:
getAspectLabelWithoutFallback in class LabellerImpl
Parameters:
locale - The locale (language code etc) of the label. Set to null if the label is not locale dependent.
resourceRole - The resource role of the XLink resource providing the label. Set to null if the label does not depend on the resource role.
linkRole - The link role of the extended link network that is to be analysed to obtain the label. Set to null if the label does not depend on the link role.
Returns:
the label for the aspect based upon the given parameters or null if no such label exists.
See Also:
Labeller.getAspectLabelWithoutFallback(String, URI, URI)

getAspectLabel

public String getAspectLabel(String locale,
                             URI resourceRole,
                             URI linkRole)
Specified by:
getAspectLabel in interface Labeller
Overrides:
getAspectLabel in class LabellerImpl
Parameters:
locale - The locale (language code etc) of the label. Set to null if the label is not locale dependent.
resourceRole - The resource role of the XLink resource providing the label. Set to null if the label does not depend on the resource role.
linkRole - The link role of the extended link network that is to be analysed to obtain the label. Set to null if the label does not depend on the link role.
Returns:
the label for the aspect based upon the given parameters, falling back to labels generated by superclass labellers where necessary, eventually using just the aspect ID if that is all that is available.
See Also:
Labeller.getAspectLabel(String, URI, URI)

Get Java XBRL API implementation at SourceForge.net.