|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.param.ParameterDescription
Class implementing a parameters meta data information such as name, validation, requirement and amptiness of its value.
IParameterDescription| Field Summary | |
(package private) java.lang.String |
description
The parameters desxcription |
(package private) java.lang.String |
name
The parameters name |
(package private) BasicValidator |
validator
The validator for this parameter type |
| Constructor Summary | |
ParameterDescription()
|
|
ParameterDescription(java.lang.String name)
Constructor: The description will be set to "N/A". |
|
ParameterDescription(java.lang.String name,
java.lang.String type)
Constructor: The description will be set to "N/A". |
|
ParameterDescription(java.lang.String name,
java.lang.String type,
boolean required,
boolean maybeEmpty)
Constructor: The description will be set to "N/A". |
|
ParameterDescription(java.lang.String name,
java.lang.String description,
java.lang.String type,
boolean required,
boolean mayBeEmpty)
Constructor: The description will be set to "N/A" if no description is provided. |
|
| Method Summary | |
void |
configure(org.jdom.Element config)
Pass the Configuration to the Configurable
class. |
java.lang.String |
getDescription()
Returns the parameter's description. |
boolean |
getMaybeEmpty()
This method returns if the parameter may be empty. |
java.lang.String |
getName()
Returns the parameters name |
boolean |
getRequired()
This method returns if the parameter is required. |
java.lang.String |
getType()
Returns the parameter's type. |
IValidator |
getValidator()
Get a validator that validates this kind of parameter. |
void |
setContentValidator(IValidator nvalidator)
|
void |
setMaybeEmpty(boolean empty)
Resets the maybeEmpty setting. |
void |
setRequired(boolean required)
Resets the required setting. |
void |
setType(java.lang.String type)
Resets the required setting. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String name
java.lang.String description
transient BasicValidator validator
| Constructor Detail |
public ParameterDescription()
public ParameterDescription(java.lang.String name,
java.lang.String type,
boolean required,
boolean maybeEmpty)
name - The parameters nametype - The parameters class typerequired - Required parameter?maybeEmpty - Can the value be empty
public ParameterDescription(java.lang.String name,
java.lang.String type)
name - The parameters nametype - The parameters class typerequired - Required parameter?maybeEmpty - Can the value be emptypublic ParameterDescription(java.lang.String name)
name - The parameters nametype - The parameters class typerequired - Required parameter?maybeEmpty - Can the value be empty
public ParameterDescription(java.lang.String name,
java.lang.String description,
java.lang.String type,
boolean required,
boolean mayBeEmpty)
name - The parameters nametype - The parameters class typerequired - Required parameter?maybeEmpty - Can the value be empty| Method Detail |
public void configure(org.jdom.Element config)
throws ConfigurationException
IConfigurableConfiguration to the Configurable
class. This method must always be called after the constructor and before any other method.configure in interface IConfigurableorg.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.public void setContentValidator(IValidator nvalidator)
public java.lang.String getName()
getName in interface IParameterDescriptionpublic java.lang.String getDescription()
getDescription in interface IParameterDescriptionpublic java.lang.String getType()
public void setType(java.lang.String type)
required - true if required should be set.public boolean getRequired()
getRequired in interface IParameterDescriptionorg.jwarp.service.param.IParameterDescriptionpublic boolean getMaybeEmpty()
getMaybeEmpty in interface IParameterDescriptionorg.jwarp.service.param.IParameterDescriptionpublic void setRequired(boolean required)
required - true if required should be set.public void setMaybeEmpty(boolean empty)
empty - true if maybeEmpty should be set.public IValidator getValidator()
getValidator in interface IParameterDescription
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||