| org.apache.cocoon.components.modules.input.AbstractInputModule org.apache.cocoon.components.modules.input.AbstractMetaModule org.apache.cocoon.components.modules.input.SimpleMappingMetaModule
SimpleMappingMetaModule | public class SimpleMappingMetaModule extends AbstractMetaModule implements ThreadSafe(Code) | | Meta module that obtains values from an other module and by
replacing the requested attribute name with another name. This is
done first through a replacement table and may additionally prepend
or append a string. Replacement works in both ways, it is applied
to the returned attribute names as well.
Example configuration:
<prefix>cocoon.</prefix>
<suffix>.attr</suffix>
<mapping in="foo" out="bar"/>
<mapping in="yuk" out="yeeha"/>
Will map a parameter "foo" to the real one named
"cocoon.bar.attr". If parameters "coocoon.yeeha.attr" and
"shopping.cart" exist, the iterator will return
"yeeha". "shopping.cart" does not contain the pre-/ suffix and thus
is dropped.
Similarily, rm-prefix and rm-suffix will be removed from the
attribute name.
author: Christian Haul version: $Id: SimpleMappingMetaModule.java 433543 2006-08-22 06:22:54Z crossley $ |
Inner Class :protected static class Mapping | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
getAttribute | public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
getAttributeNames | public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
getAttributeValues | public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
Methods inherited from org.apache.cocoon.components.modules.input.AbstractMetaModule | public void compose(ComponentManager manager) throws ComponentException(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) public synchronized void lazy_initialize()(Code)(Java Doc) protected InputModule obtainModule(String type)(Code)(Java Doc) protected void releaseModule(InputModule module)(Code)(Java Doc)
|
|
|