Class Language
- java.lang.Object
-
- com.aquima.interactions.project.impl.Language
-
- All Implemented Interfaces:
ILanguage
,Serializable
public class Language extends Object implements ILanguage
This class holds the static information of a language defined in the meta model.- Since:
- 5.0
- Author:
- O. Kerpershoek, F. van der Meer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCode()
Get the standardized language internationalization code.IValueFormatter
getDefaultFormatter()
This method returns the default value formatter of this language.Locale
getLocale()
This method retrieves the locale for this language.String
getName()
Get the language name in a human readable format.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Language
public Language(String code, String languageName, Locale locale, IValueFormatter formatter)
Create a new Language based on a code and language name. Usually the code will be an ISO code, whereas the name contains a more readable language identification.
For example: new Language( "nl-NL", "Dutch" )- Parameters:
code
- The code of the language (mandatory).languageName
- The name of the language (mandatory).locale
- The locale for the language.formatter
- The default value formatter used to display values for this language.
-
Language
protected Language(ILanguage other)
-
-
Method Detail
-
getCode
public String getCode()
Description copied from interface:ILanguage
Get the standardized language internationalization code.
-
getName
public String getName()
Description copied from interface:ILanguage
Get the language name in a human readable format.
-
getDefaultFormatter
public IValueFormatter getDefaultFormatter()
Description copied from interface:ILanguage
This method returns the default value formatter of this language. The formatter is used to determine the display value of primitive values and during TSL expansion when no specific format is specified.- Specified by:
getDefaultFormatter
in interfaceILanguage
- Returns:
- The default value formatter for this language.
-
getLocale
public Locale getLocale()
Description copied from interface:ILanguage
This method retrieves the locale for this language.
-
-