| java.lang.Object org.apache.lenya.cms.cocoon.components.modules.input.InputModuleParameters
InputModuleParameters | public class InputModuleParameters (Code) | | Input module parameter class.
Parses input module parameters and offers accessors for the parameters.
The parameters are expected to be separated by ":".
|
Method Summary | |
public String | getParameter(String param) Get a parameter.
Parameters: param - Name of requested parameter. | public boolean | isParameter(String param) Does a parameter with given name exists?
Parameters: param - Parameter name. | protected Parameters | parseParameters(String parameters, int minParams) Parse parameters according to the parameter list passed.
Parameters: parameters - Parameters: minParams - Minimum number of parameters. |
PARAM_SEPARATOR | final protected static char PARAM_SEPARATOR(Code) | | |
params | protected Parameters params(Code) | | |
InputModuleParameters | public InputModuleParameters(String parameters, String[] paramList, int minParams) throws ConfigurationException(Code) | | Parse input module parameters.
Parameters: parameters - Parameter to be parsed. Parameters: paramList - List of expected parameters. Parameters: minParams - Minimum number of parameters expected. throws: ConfigurationException - if there is an error parsing the parameters. |
getParameter | public String getParameter(String param) throws ParameterException(Code) | | Get a parameter.
Parameters: param - Name of requested parameter. Requested parameter. throws: ParameterException - if the specified parameter cannot be found |
isParameter | public boolean isParameter(String param)(Code) | | Does a parameter with given name exists?
Parameters: param - Parameter name. True if parameters exists, otherwise false. |
parseParameters | protected Parameters parseParameters(String parameters, int minParams) throws ConfigurationException(Code) | | Parse parameters according to the parameter list passed.
Parameters: parameters - Parameters: minParams - Minimum number of parameters. Parameters object initialized with parsed parameters. throws: ConfigurationException - |
|
|