public interface LocalisedString
Localised can be automatically localised using the provided localisation
factory. The returned object will be provided used as argument to
String.format(String, Object...) applied to the message from the corresponding resource
bundle.
Do not use this for simple localisations like "input parameter" or "output parameter". These are part of the message body and therefore should be localised within the resource bundle. You recognise such simple localisations by the implementation of this interface providing simple constant strings based on the locale.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
toLocalisedString(LocalisationFactory locFac,
java.util.Locale loc)
Gets the localised representation of the implementing object.
|
java.lang.Object toLocalisedString(LocalisationFactory locFac, java.util.Locale loc)
Localised should use the designated
localisation factory for automatic localisation.locFac - The localisation factory to be used by Localised model objects. If this
is null, do not localise the used Localised attributes.loc - The locale for which to get the localised string. If this is null,
treat it like Locale.ROOT has been requested.