org.jwarp.service.param
Interface IValidation
- All Superinterfaces:
- IConfigurable
- public interface IValidation
- extends IConfigurable
The validation interface determines what a parameter validation instance must implement.
Basically it just has one method validate that takes a parameter list which is to
be validated. If the validation failes a corresponding exception must be raised.
validate
public void validate(Property[] params)
throws ParameterNotFoundException,
ParameterException
- Validate the given request against the actual parameter configuration
- Parameters:
params - The properties to be validated.- Throws:
ParameterNotFoundException - if a parameter is missingParameterException - if a parameter is erroneous
getParamDescription
public IParameterDescription getParamDescription(java.lang.String paramName)
- Remove (first) registered parameter with given name and return it to the caller
- Parameters:
paramName - The name of the parameter to be removed- Returns:
- the removed parameter
getParamDescriptions
public java.util.Enumeration getParamDescriptions()
- Returns an Enumeration of the params available.
- Returns:
- Enumeration of all registered parameters