org.outerj.xreporter.datatype.type
Class LocaleMap
java.lang.Object
org.outerj.xreporter.datatype.type.LocaleMap
- public class LocaleMap
- extends java.lang.Object
A map containing object hashed on Locale's. The keys in the internally used
map are in the format described in RFC 1766, e.g. "nl-BE". Alternatively, a
"default" can be specified by using the key "*-*". If such a default is present
in the map, and a get(java.util.Locale)
is done for a Locale which isn't in the map, then
the default will be returned.
Method Summary |
java.lang.Object |
get(java.util.Locale locale)
|
protected java.lang.String |
getLocaleString(java.util.Locale locale)
|
void |
put(java.lang.String localeSpec,
java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultObject
protected java.lang.Object defaultObject
LocaleMap
public LocaleMap()
get
public java.lang.Object get(java.util.Locale locale)
put
public void put(java.lang.String localeSpec,
java.lang.Object object)
getLocaleString
protected java.lang.String getLocaleString(java.util.Locale locale)