public interface Language extends Comparable<Language>
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation()
Get the abbreviation used for this language, for example "DE" for "German".
|
String |
getDisplayName(Language language)
Gets display name of the Language for the given language.
|
String |
getHTMLEncoding()
Gets the HTMLEncoding of this language
|
Locale |
getLocale()
Return Locale corresponding to this language
|
String |
getName()
Get the name of this language
|
boolean |
isMasterLanguage()
Returns
true if this language is the master language
of the belonging project, false otherwise |
void |
setDisplayName(Language language,
String displayName)
Sets the display name of the Language for the given language
|
void |
setGenerate(boolean shouldGenerate)
Activates/deactivates the generation of this language.
|
void |
setHTMLEncoding(String encoding)
Set the HTMLEncoding
|
void |
setLocale(Locale locale)
Sets the locale for this language
|
void |
setMasterLanguage(boolean status)
Sets this language as master language
|
void |
setName(String name)
Sets the name
|
boolean |
shouldGenerate()
Should this language be generated?
|
compareTo
String getAbbreviation()
String getName()
void setName(String name)
name
- the new name@Nullable String getDisplayName(Language language)
language
- null
if not definedvoid setDisplayName(Language language, String displayName)
displayName
- the new displaynamelanguage
- the language to set the display name forString getHTMLEncoding()
void setHTMLEncoding(String encoding)
encoding
- the new HTMLEncoding valueboolean shouldGenerate()
void setGenerate(boolean shouldGenerate)
Locale getLocale()
void setLocale(Locale locale)
locale
- boolean isMasterLanguage()
true
if this language is the master language
of the belonging project, false
otherwisetrue
if this language is master language, false
otherwisevoid setMasterLanguage(boolean status)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500