public class LocalisedStringCollection extends java.lang.Object implements LocalisedString
LocalisedStrings. These are localised one
by one but the localisation are used as one resulting localised string, similar to an array of
strings.| Modifier and Type | Field and Description |
|---|---|
protected LocalisedString[] |
ls
The strings needing localisation.
|
| Constructor and Description |
|---|
LocalisedStringCollection(LocalisedString[] ls)
Creates a new collection of
LocalisedString. |
| Modifier and Type | Method and Description |
|---|---|
static LocalisedString |
loc(java.util.Collection<? extends LocalisedString> ls)
Creates a new collection of
LocalisedString. |
static LocalisedString |
loc(LocalisedString[] ls)
Creates a new collection of
LocalisedString. |
java.lang.String |
toLocalisedString(LocalisationFactory locFac,
java.util.Locale loc)
Gets the localised representation of the implementing object.
|
java.lang.String |
toString() |
protected final LocalisedString[] ls
public LocalisedStringCollection(LocalisedString[] ls)
LocalisedString.ls - The strings needing localisation.public static LocalisedString loc(LocalisedString[] ls)
LocalisedString.ls - The strings needing localisation.LocalisedString representing a collection of
LocalisedStrings.public static LocalisedString loc(java.util.Collection<? extends LocalisedString> ls)
LocalisedString.ls - The strings needing localisation.LocalisedString representing a collection of
LocalisedStrings.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toLocalisedString(LocalisationFactory locFac, java.util.Locale loc)
LocalisedStringLocalised should use the designated
localisation factory for automatic localisation.toLocalisedString in interface LocalisedStringlocFac - 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.