public class PeriodLabellerNaive extends BaseLabeller implements Labeller
A labeller for the period aspect. This labeller just reproduces the lexical representation of the period start and end or the period instant, as given in the XML. It does not attempt to transform the period values based on the rules for handling cases where the time component is omitted.
Constructor and Description |
---|
PeriodLabellerNaive(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 PeriodLabellerNaive(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.getAspectLabel(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.Labeller.getAspectValueLabelWithoutFallback(AspectValue, String, String, String)