public class IlrDefaultLabelBuilder extends java.lang.Object implements IlrLabelBuilder
IlrLabelBuilder.
This class returns the label stored on the verbalizable element, and computes a
plural by calling verbalizer.
This implementation can be used directly; it is not necessary to subclass it.
| Constructor and Description |
|---|
IlrDefaultLabelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayLabel(IlrVerbalizable verbalizable,
IlrVerbalizer verbalizer,
IlrVerbalizationContext context)
Returns the singular label of a
verbalizable element. |
java.lang.String |
getDisplayPluralLabel(IlrVerbalizable verbalizable,
IlrVerbalizer verbalizer,
IlrVerbalizationContext context)
Computes the plural label of a
verbalizable element using the plural
builder provided by the verbalizer. |
public java.lang.String getDisplayLabel(IlrVerbalizable verbalizable, IlrVerbalizer verbalizer, IlrVerbalizationContext context) throws IlrVerbalizationException
verbalizable element.getDisplayLabel in interface IlrLabelBuilderIlrVerbalizationExceptionverbalizable - The verbalizable element instance.verbalizer - The verbalizer calling this method.context - The verbalization context.verbalizable.public java.lang.String getDisplayPluralLabel(IlrVerbalizable verbalizable, IlrVerbalizer verbalizer, IlrVerbalizationContext context) throws IlrVerbalizationException
verbalizable element using the plural
builder provided by the verbalizer.getDisplayPluralLabel in interface IlrLabelBuilderIlrVerbalizationExceptionverbalizable - The verbalizable element instance.verbalizer - The verbalizer calling this method.context - The verbalization context.verbalizable.© Copyright IBM Corp. 1987, 2017