public class LocationLabeller extends LabellerImpl implements Labeller
A labeller for the location aspect based upon generic XBRL labels. The label for a location aspect value is the XBRL 2.1 or XBRL generic label for the concept underpinning the fact that is at the location associated with the location aspect value.
This labeller does not make use of label caching systems. XBRL 2.1 and generic XBRL labels are used where possible. Otherwise, the fact's namespace and local name are used.
Constructor and Description |
---|
LocationLabeller(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) |
duplicate, getAspect, getAspectLabel, getAspectLabelGivenLists, getAspectValueLabel, getAspectValueLabelGivenLists, getDomain, getStore
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
duplicate, getAspect, getAspectLabel, getAspectLabelGivenLists, getAspectValueLabel, getAspectValueLabelGivenLists, getDomain, getStore
public LocationLabeller(Aspect aspect) throws XBRLException
aspect
- The aspect to be a labeller for.XBRLException
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)
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.LabellerImpl.getAspectValueLabelWithoutFallback(AspectValue, String, String, String)