org.outerj.daisy.repository.commonimpl.schema
Class LocaleMap
java.lang.Object
org.outerj.daisy.repository.commonimpl.schema.LocaleMap
public class LocaleMap
- extends java.lang.Object
Map using Locale objects as keys.
This class is based on code from Apache Cocoon.
This map should be filled once using calls to put(java.util.Locale, java.lang.Object)
, before any calls
are made to get(java.util.Locale)
.
Method Summary |
void |
clear()
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.util.Locale locale)
Gets an object based on the given locale. |
org.outerx.daisy.x10.DescriptionsDocument.Descriptions |
getAsDescriptionsXml()
|
org.outerx.daisy.x10.LabelsDocument.Labels |
getAsLabelsXml()
|
java.lang.Object |
getExact(java.util.Locale locale)
|
java.util.Locale[] |
getLocales()
|
boolean |
isEmpty()
|
void |
put(java.util.Locale locale,
java.lang.Object object)
|
void |
readFromDescriptionsXml(org.outerx.daisy.x10.DescriptionsDocument.Descriptions descriptionsAsXml)
|
void |
readFromLabelsXml(org.outerx.daisy.x10.LabelsDocument.Labels labelsXml)
|
void |
remove(java.util.Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleMap
public LocaleMap()
get
public java.lang.Object get(java.util.Locale locale)
- Gets an object based on the given locale. An automatic fallback mechanism is used:
if nothing is found for language-COUNTRY-variant, then language-COUNTRY is searched,
the language, and finally "" (empty string). If nothing is found null is returned.
getExact
public java.lang.Object getExact(java.util.Locale locale)
clear
public void clear()
remove
public void remove(java.util.Locale locale)
getLocales
public java.util.Locale[] getLocales()
entrySet
public java.util.Set entrySet()
put
public void put(java.util.Locale locale,
java.lang.Object object)
getAsLabelsXml
public org.outerx.daisy.x10.LabelsDocument.Labels getAsLabelsXml()
getAsDescriptionsXml
public org.outerx.daisy.x10.DescriptionsDocument.Descriptions getAsDescriptionsXml()
readFromLabelsXml
public void readFromLabelsXml(org.outerx.daisy.x10.LabelsDocument.Labels labelsXml)
readFromDescriptionsXml
public void readFromDescriptionsXml(org.outerx.daisy.x10.DescriptionsDocument.Descriptions descriptionsAsXml)
isEmpty
public boolean isEmpty()
Copyright © -2012 . All Rights Reserved.