org.outerj.daisy.repository.commonimpl.schema
Class LocaleMap

java.lang.Object
  extended byorg.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).


Constructor Summary
LocaleMap()
           
 
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)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleMap

public LocaleMap()
Method Detail

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()

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 © -2005 . All Rights Reserved.