|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
info.informatica.util.locale.LocalProperties
public final class LocalProperties
Adds the notion of localization to the Properties class.
Allows property files to be loaded according to Locale information, and
provides a getLocale method to retrieve the Locale
corresponding to this LocalProperties object.
| Constructor Summary | |
|---|---|
LocalProperties(Locale locale)
Creates a LocalProperties for the given locale. |
|
LocalProperties(Locale locale,
Properties p)
Creates a LocalProperties. |
|
| Method Summary | |
|---|---|
static boolean |
check(String baseFileName,
String ext)
Checks if the default locale file with baseFileName exists an can be read. |
Locale |
getLocale()
Gets the locale. |
static LocalProperties |
loadBestLocalProperties(String baseName,
String ext,
Locale locale)
Load the appropriate LocalProperties. |
static LocalProperties |
loadLocalProperties(String baseName,
String ext)
Load the appropriate LocalProperties for the given basename and extension. |
static LocalProperties |
loadLocalProperties(String baseName,
String ext,
Locale locale)
Load the appropriate LocalProperties. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalProperties(Locale locale)
locale - the locale
public LocalProperties(Locale locale,
Properties p)
p - properties| Method Detail |
|---|
public Locale getLocale()
public static LocalProperties loadLocalProperties(String baseName,
String ext)
throws LocaleNotFoundException
baseName - the base name for the properties
LocaleNotFoundException
public static LocalProperties loadBestLocalProperties(String baseName,
String ext,
Locale locale)
throws LocaleNotFoundException
First tries to return the LocalProperties for the given locale, and if not possible, returns the default.
baseName - see class description.ext - the file extensionlocale - see class description.
LocaleNotFoundException
public static LocalProperties loadLocalProperties(String baseName,
String ext,
Locale locale)
throws LocaleNotFoundException
baseName - see class description.ext - the file extensionlocale - see class description.
LocaleNotFoundException
public static boolean check(String baseFileName,
String ext)
baseFileName - see class description.ext - the file extension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||