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.


Method Summary
 IParameterDescription getParamDescription(java.lang.String paramName)
          Remove (first) registered parameter with given name and return it to the caller
 java.util.Enumeration getParamDescriptions()
          Returns an Enumeration of the params available.
 void validate(Property[] params)
          Validate the given request against the actual parameter configuration
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 

Method Detail

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 missing
ParameterException - 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

©   O R C A   S y s t e m s