Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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.java 587759 2007-10-24 03:00:37Z vgritsenko $

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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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