Package org.ametys.runtime.i18n
Class LocaleInputModule
- java.lang.Object
-
- org.ametys.runtime.i18n.LocaleInputModule
-
- All Implemented Interfaces:
Component
,ThreadSafe
,InputModule
public class LocaleInputModule extends Object implements InputModule, ThreadSafe
Input module for getting informations about currently used locale.
The search algorithm is the same asI18nUtils
.
3 variables are available : "locale", "country" and "language"
-
-
Field Summary
-
Fields inherited from interface org.apache.cocoon.components.modules.input.InputModule
ROLE
-
-
Constructor Summary
Constructors Constructor Description LocaleInputModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name, Configuration modeConf, Map objectModel)
Iterator
getAttributeNames(Configuration modeConf, Map objectModel)
Object[]
getAttributeValues(String name, Configuration modeConf, Map objectModel)
-
-
-
Constructor Detail
-
LocaleInputModule
public LocaleInputModule()
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttribute
in interfaceInputModule
- Throws:
ConfigurationException
-
getAttributeNames
public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttributeNames
in interfaceInputModule
- Throws:
ConfigurationException
-
getAttributeValues
public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttributeValues
in interfaceInputModule
- Throws:
ConfigurationException
-
-