|
JIU 0.13.0 Website | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jiu.apps.Strings
String resource for the various apps.
Each index value from StringIndexConstants has a corresponding String value
for all supported natural languages.
| Field Summary | |
static Integer |
DEFAULT_LANGUAGE
Constant of the default language, LANG_ENGLISH. |
static String |
DEFAULT_LANGUAGE_ISO_639_CODE
The ISO 639 code for the default language DEFAULT_LANGUAGE. |
static Integer |
LANG_ENGLISH
Constant int value for the natural language English. |
static Integer |
LANG_FRENCH
Constant int value for the natural language French. |
static Integer |
LANG_GERMAN
Constant int value for the natural language German. |
static Integer |
LANG_SPANISH
Constant int value for the natural language Spanish. |
| Constructor Summary | |
Strings(Integer languageConstant,
String[] stringValues)
Create a new String object for the given language and fill it with the String array. |
|
| Method Summary | |
static String |
determineIsoCodeFromDefaultLocale()
|
static String |
determineSuitableIsoCode()
Determines an ISO 639 code of a language suitable for the environment in which the JVM is currently running. |
static Integer |
findLanguageCode(String iso639LanguageCode)
|
String |
get(int index)
Gets the String denoted by the argument index. |
static String |
getFileName(int languageCode)
|
Integer |
getLanguage()
Returns the language of this object as one of the LANG_xyz constants of this class. |
void |
set(Integer languageConstant,
String[] values)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Integer LANG_ENGLISH
public static final Integer LANG_GERMAN
public static final Integer LANG_SPANISH
public static final Integer LANG_FRENCH
public static final Integer DEFAULT_LANGUAGE
LANG_ENGLISH.
public static final String DEFAULT_LANGUAGE_ISO_639_CODE
DEFAULT_LANGUAGE.
| Constructor Detail |
public Strings(Integer languageConstant,
String[] stringValues)
| Method Detail |
public static String determineSuitableIsoCode()
determineIsoCodeFromDefaultLocale().
If that yields null, the ISO code for DEFAULT_LANGUAGE is returned.
So different from determineIsoCodeFromDefaultLocale()
this method always returns a non-null value.
public static String determineIsoCodeFromDefaultLocale()
public static Integer findLanguageCode(String iso639LanguageCode)
public String get(int index)
StringIndexConstants.
IllegalArgumentException - is not a valid index from StringIndexConstantspublic Integer getLanguage()
public static String getFileName(int languageCode)
public void set(Integer languageConstant,
String[] values)
|
JIU 0.13.0 Website | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||