|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Labeller
Classes implementing the Labeller interface are intended to provide access to labels for aspects and their values.
The implementation of a labeller will be specific to one or more particular types of aspect. The constructor for the labeller MUST throw an exception if the labeller is initialised with an aspect that is not of the right type.
| Method Summary | |
|---|---|
Labeller |
duplicate()
|
Aspect |
getAspect()
|
String |
getAspectLabel(String locale,
URI resourceRole,
URI linkRole)
|
String |
getAspectLabelWithoutFallback(String locale,
URI resourceRole,
URI linkRole)
|
String |
getAspectValueLabel(AspectValue value,
List<String> locales,
List<URI> resourceRoles,
List<URI> linkRoles)
|
String |
getAspectValueLabel(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
|
String |
getAspectValueLabelWithoutFallback(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
|
Domain |
getDomain()
|
Store |
getStore()
|
| Method Detail |
|---|
Aspect getAspect()
Domain getDomain()
Store getStore()
throws XBRLException
XBRLException
String getAspectLabel(String locale,
URI resourceRole,
URI linkRole)
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.
String getAspectLabelWithoutFallback(String locale,
URI resourceRole,
URI linkRole)
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.
String getAspectValueLabel(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
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.
String getAspectValueLabel(AspectValue value,
List<String> locales,
List<URI> resourceRoles,
List<URI> linkRoles)
value - The aspect value to get the label for.locales - The list of locales, from first (most preferred) to last
(least preferred) or null if locale is not a selection
criterion.resourceRoles - The list of label resource roles, from first (most preferred)
to last (least preferred) or null if resource role is not a
selection criterion.linkRoles - The list of extended link roles, from first (most preferred)
to last (least preferred) or null if link role is not a
selection criterion.
The selection criteria are prioritised as follows: try hardest to match locale. After that, try hardest to match resource role. Try least hard to match the extended link role.
String getAspectValueLabelWithoutFallback(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
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 duplicate()
throws XBRLException
XBRLException - if the labeller does not support duplication.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||