|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.cocoon.components.modules.input.InputModuleParameters
public class InputModuleParameters
Input module parameter class. Parses input module parameters and offers accessors for the parameters. The parameters are expected to be separated by ":".
Field Summary | |
---|---|
protected static char |
PARAM_SEPARATOR
|
protected java.lang.String[] |
paramList
|
protected org.apache.avalon.framework.parameters.Parameters |
params
|
Constructor Summary | |
---|---|
InputModuleParameters(java.lang.String parameters,
java.lang.String[] paramList,
int minParams)
Parse input module parameters. |
Method Summary | |
---|---|
java.lang.String |
getParameter(java.lang.String param)
Get a parameter. |
boolean |
isParameter(java.lang.String param)
Does a parameter with given name exists? |
protected org.apache.avalon.framework.parameters.Parameters |
parseParameters(java.lang.String parameters,
int minParams)
Parse parameters according to the parameter list passed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final char PARAM_SEPARATOR
protected org.apache.avalon.framework.parameters.Parameters params
protected final java.lang.String[] paramList
Constructor Detail |
---|
public InputModuleParameters(java.lang.String parameters, java.lang.String[] paramList, int minParams) throws org.apache.avalon.framework.configuration.ConfigurationException
parameters
- Parameter to be parsed.paramList
- List of expected parameters.minParams
- Minimum number of parameters expected.
org.apache.avalon.framework.configuration.ConfigurationException
- if there is an error parsing the parameters.Method Detail |
---|
protected org.apache.avalon.framework.parameters.Parameters parseParameters(java.lang.String parameters, int minParams) throws org.apache.avalon.framework.configuration.ConfigurationException
parameters
- minParams
- Minimum number of parameters.
org.apache.avalon.framework.configuration.ConfigurationException
public java.lang.String getParameter(java.lang.String param) throws org.apache.avalon.framework.parameters.ParameterException
param
- Name of requested parameter.
org.apache.avalon.framework.parameters.ParameterException
- if the specified parameter cannot be foundpublic boolean isParameter(java.lang.String param)
param
- Parameter name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |