Interface LocalisedString
- All Known Subinterfaces:
Activity,ATParameter,ChangeableInstance,ChangeableTemplate,DataElement,DecisionActivity,EmbeddedProcess,ExecutableBusinessProcess,ExecutableInstance,Instance,InstanceDeltaLayer,LightWeightProcess,Node,Parameter,ProcessModelParameter,ReferencedProcess,Template,VariableParallelismEBP
- All Known Implementing Classes:
AbstractWrappingTemplate,IDWrappingTemplate,IOParameterRef,LocalisedStringCollection,NonLocalisedString,ParameterRef,SystemDataProducer
public interface LocalisedString
This interface allows implementors to provide a (string) representation which is localised. Model
objects using
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.
-
Method Summary
Modifier and TypeMethodDescriptiontoLocalisedString(LocalisationFactory locFac, Locale loc) Gets the localised representation of the implementing object.
-
Method Details
-
toLocalisedString
Gets 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.- 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.
-