Class LocalisedStringCollection
java.lang.Object
de.aristaflow.adept2.model.common.i18n.LocalisedStringCollection
- All Implemented Interfaces:
LocalisedString
Implementation to provide a collection of
LocalisedStrings. These are localised one
by one but the localisation are used as one resulting localised string, similar to an array of
strings.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LocalisedString[]The strings needing localisation. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new collection ofLocalisedString. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalisedStringloc(LocalisedString[] ls) Creates a new collection ofLocalisedString.static LocalisedStringloc(Collection<? extends LocalisedString> ls) Creates a new collection ofLocalisedString.toLocalisedString(LocalisationFactory locFac, Locale loc) Gets the localised representation of the implementing object.toString()
-
Field Details
-
ls
The strings needing localisation.
-
-
Constructor Details
-
LocalisedStringCollection
Creates a new collection ofLocalisedString.- Parameters:
ls- The strings needing localisation.
-
-
Method Details
-
loc
Creates a new collection ofLocalisedString.- Parameters:
ls- The strings needing localisation.- Returns:
- A
LocalisedStringrepresenting a collection ofLocalisedStrings.
-
loc
Creates a new collection ofLocalisedString.- Parameters:
ls- The strings needing localisation.- Returns:
- A
LocalisedStringrepresenting a collection ofLocalisedStrings.
-
toString
-
toLocalisedString
Description copied from interface:LocalisedStringGets the localised representation of the implementing object. The localisation should be for the designated locale, model objects beingLocalisedshould use the designated localisation factory for automatic localisation.- Specified by:
toLocalisedStringin interfaceLocalisedString- Parameters:
locFac- The localisation factory to be used byLocalisedmodel objects. If this isnull, do not localise the usedLocalisedattributes.loc- The locale for which to get the localised string. If this isnull, treat it likeLocale.ROOThas been requested.- Returns:
- The localised (string) representation of the implementing object for the designated locale using the designated localisation factory if appropriate.
-