Package org.ametys.runtime.i18n
Class LocaleInputModule
java.lang.Object
org.ametys.runtime.i18n.LocaleInputModule
- All Implemented Interfaces:
Component,ThreadSafe,InputModule
Input module for getting informations about currently used locale.
The search algorithm is the same as
3 variables are available : "locale", "country" and "language"
The search algorithm is the same as
I18nUtils.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 -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name, Configuration modeConf, Map objectModel) getAttributeNames(Configuration modeConf, Map objectModel) Object[]getAttributeValues(String name, Configuration modeConf, Map objectModel)
-
Constructor Details
-
LocaleInputModule
public LocaleInputModule()
-
-
Method Details
-
getAttribute
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributein interfaceInputModule- Throws:
ConfigurationException
-
getAttributeNames
public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributeNamesin interfaceInputModule- Throws:
ConfigurationException
-
getAttributeValues
public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributeValuesin interfaceInputModule- Throws:
ConfigurationException
-