|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.util.locale.ObjectBundle
public class ObjectBundle
Map of localized objects.
The objects have been initialized with the contents of the files following the schema:
baseName.ext, baseName.locale.ext
| Constructor Summary | |
|---|---|
ObjectBundle(String path,
ResourceFactory rf)
All subclasses constructors MUST call loadDefaultFile(). |
|
ObjectBundle(String baseName,
String ext,
ResourceFactory rf)
|
|
| Method Summary | |
|---|---|
Object |
get()
|
Object |
get(Locale locale)
|
String |
getBaseName()
|
Object |
getBest(Locale locale)
|
Locale |
getBestLocale(Enumeration<Locale> locales)
|
Locale |
getBestLocale(Locale[] loc)
Gets the best locale for loc |
Locale |
getDefaultLocale()
|
String |
getExtension()
|
long |
getLastModified()
|
void |
setDefaultLocale(Locale locale)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectBundle(String path,
ResourceFactory rf)
throws IOException
path - Path to default file, optionally including an extension.
Separates the extension assuming a '.' as separator.
IOException
public ObjectBundle(String baseName,
String ext,
ResourceFactory rf)
throws IOException
baseName - Path to default file, without the extension.ext - the extension (can be null if none)
IOException| Method Detail |
|---|
public String getExtension()
public long getLastModified()
public Object get()
public Object getBest(Locale locale)
public Object get(Locale locale)
public Locale getBestLocale(Locale[] loc)
loc
public Locale getBestLocale(Enumeration<Locale> locales)
public Locale getDefaultLocale()
public void setDefaultLocale(Locale locale)
public String getBaseName()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||