Class ModelLocale
java.lang.Object
net.ssehub.easy.basics.modelManagement.ModelLocale
Provides internationalization support, i.e., which locale is valid for loading models.
Instances of this class cannot be created directly rather than being obtained from
ModelManagement.- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
locale
-
-
Constructor Details
-
ModelLocale
ModelLocale()Prevents object creation from outside this package.
-
-
Method Details
-
setLocale
Defines the preferredlocalefor descriptive texts.- Parameters:
locale- the preferred locale, may be null
-
getLocale
Returns the preferredlocalefor descriptive texts.- Returns:
- the preferred locale as defined previously via
setLocale(Locale), may be null, in particular whensetLocale(Locale)has not been called before
-
getActualLocale
Locale getActualLocale()Returns the actual locale.- Returns:
- the preferred locale if defined, the default system locale else
-