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

java.lang.Object
  extended byorg.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 1304280 2012-03-23 11:18:01Z 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-2008 The Apache Software Foundation. All Rights Reserved.