| org.apache.cocoon.components.modules.input.AbstractInputModule org.apache.cocoon.components.modules.input.AbstractMetaModule org.apache.cocoon.components.modules.input.XMLMetaModule
XMLMetaModule | public class XMLMetaModule extends AbstractMetaModule implements ThreadSafe(Code) | | Meta module that obtains values from other module and returns all
parameters as XML.
Config
<!-- in cocoon.xconf -->
<ignore>do-</ignore>
<strip>user.</strip>
<input-module name="request-param"/>
<!-- e.g. in database.xml -->
<mode type="all" name="xmlmeta"/>
<ignore>foo.</ignore>
<strip>f</strip>
<use>foo</use>
<root>my-root</root>
<input-module name="request-param"/>
</mode>
If present, "ignore" gives a prefix of parameters to ignore,
ignore has precedence over the "use" attribute, "strip" a prefix
that will be removed from the final parameter names in the produced
XML, "use" is a prefix for parameters to include in the XML, and
"root" is the name of the root element in the created XML.
Input
foo.one = ['abc']
foo.two = ['def']
foo1 = ['bar']
foo2 = ['one','two','three']
bar = ['rubber duck']
Output
<my-root>
<item name="oo1">bar</item>
<item name="oo2">
<value>one</value>
<value>two</value>
<value>three</value>
</item>
</my-root>
Produces Objects of type
org.apache.cocoon.xml.dom.DocumentWrapper DocumentWrapper
author: Christian Haul version: $Id: XMLMetaModule.java 433543 2006-08-22 06:22:54Z crossley $ |
CACHE_OBJECT_NAME | final protected static String CACHE_OBJECT_NAME(Code) | | |
xpathProcessor | protected XPathProcessor xpathProcessor(Code) | | |
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
dispose | public void dispose()(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)
|
|
|