| java.lang.Object org.apache.cocoon.components.modules.input.InputModuleHelper
All known Subclasses: org.apache.cocoon.components.language.markup.xsp.XSPModuleHelper,
InputModuleHelper | public class InputModuleHelper (Code) | | author: Christian Haul version: $Id: InputModuleHelper.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public Object | getAttribute(Map objectModel, Configuration conf, String module, String name, Object deflt) Get a single attribute value from a module. | public Object | getAttribute(Map objectModel, String module, String name, Object deflt) Get a single attribute value from a module. | public Iterator | getAttributeNames(Map objectModel, Configuration conf, String module) Get an iterator to a collection of attribute names from a
module. | public Iterator | getAttributeNames(Map objectModel, String module) Get an iterator to a collection of attribute names from a module. | public Object[] | getAttributeValues(Map objectModel, Configuration conf, String module, String name, Object[] deflt) Get an array of values from a module. | public Object[] | getAttributeValues(Map objectModel, String module, String name, Object[] deflt) Get an array of values from a module. | public void | releaseAll() Releases all obtained module references. | public void | setup(ComponentManager manager) Initializes the instance for first use. | public void | setup(ServiceManager manager) Initializes the instance for first use. |
INPUT_MODULE_SELECTOR | final protected static String INPUT_MODULE_SELECTOR(Code) | | |
getAttribute | public Object getAttribute(Map objectModel, Configuration conf, String module, String name, Object deflt) throws RuntimeException(Code) | | Get a single attribute value from a module. Uses cached
reference if existing.
Parameters: objectModel - a Map value Parameters: conf - a Configuration containing the module dynamic configuration (aka modeConf) Parameters: module - a String value holding the module name Parameters: name - a String value holding the attribute name Parameters: deflt - an Object value holding a default value an Object value exception: RuntimeException - if an error occurs |
getAttributeNames | public Iterator getAttributeNames(Map objectModel, Configuration conf, String module) throws RuntimeException(Code) | | Get an iterator to a collection of attribute names from a
module.
Parameters: objectModel - a Map value Parameters: module - the module's name an Iterator value exception: RuntimeException - if an error occurs |
getAttributeValues | public Object[] getAttributeValues(Map objectModel, Configuration conf, String module, String name, Object[] deflt) throws RuntimeException(Code) | | Get an array of values from a module. Uses cached reference if
existing.
Parameters: objectModel - a Map value Parameters: conf - a Configuration containing the module dynamic configuration (aka modeConf) Parameters: module - a String value holding the module name Parameters: name - a String value holding the attribute name Parameters: deflt - an Object[] value holding a default value an Object[] value exception: RuntimeException - if an error occurs |
setup | public void setup(ServiceManager manager) throws RuntimeException(Code) | | Initializes the instance for first use. Stores references to
service manager and service selector in instance
Parameters: manager - a ServiceManager value exception: RuntimeException - if an error occurs |
|
|