public class UnitLabeller extends BaseLabeller implements Labeller
A labeller for the unit aspect. This labeller attempts to use generic labels for XLink Unit resources.
Constructor and Description |
---|
UnitLabeller(Aspect aspect) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAspectLabelWithoutFallback(java.lang.String locale,
java.lang.String resourceRole,
java.lang.String linkRole) |
java.lang.String |
getAspectValueLabelWithoutFallback(AspectValue value,
java.lang.String locale,
java.lang.String resourceRole,
java.lang.String linkRole) |
getAspectValueLabel
duplicate, getAspect, getAspectLabel, getAspectLabelGivenLists, getAspectValueLabelGivenLists, getDomain, getStore
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
duplicate, getAspect, getAspectLabel, getAspectLabelGivenLists, getAspectValueLabel, getAspectValueLabelGivenLists, getDomain, getStore
public UnitLabeller(Aspect aspect) throws XBRLException
aspect
- The aspect to be a labeller for.XBRLException
public java.lang.String getAspectValueLabelWithoutFallback(AspectValue value, java.lang.String locale, java.lang.String resourceRole, java.lang.String linkRole)
getAspectValueLabelWithoutFallback
in interface Labeller
getAspectValueLabelWithoutFallback
in class LabellerImpl
value
- The aspect value to get a label for.locale
- The locale (language code) of the label. This can be set to
null if the label is not locale dependent.resourceRole
- The resource role of the XLink resource providing the label.
This can be 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. This can be set to null if the
label does not depend on the link role.Labeller.getAspectValueLabelWithoutFallback(AspectValue, String, String, String)
public java.lang.String getAspectLabelWithoutFallback(java.lang.String locale, java.lang.String resourceRole, java.lang.String linkRole)
getAspectLabelWithoutFallback
in interface Labeller
getAspectLabelWithoutFallback
in class LabellerImpl
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.Labeller.getAspectLabelWithoutFallback(String, String, String)