org.apache.cocoon.forms.datatype.convertor
Class LocaleMap

java.lang.Object
  extended by org.apache.cocoon.forms.datatype.convertor.LocaleMap

public class LocaleMap
extends Object

Map using Locale objects as keys.

This map should be filled once using calls to put(Locale, Object), before any calls are made to get(Locale).

Version:
$Id: LocaleMap.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
LocaleMap()
           
 
Method Summary
 Object get(Locale locale)
          Gets an object based on the given locale.
 void put(Locale locale, Object object)
           
 
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 Object get(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.


put

public void put(Locale locale,
                Object object)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.