| org.iscreen.impl.ValidatorWrapper
All known Subclasses: org.iscreen.impl.BaseConfiguredValidator, org.iscreen.impl.MockValidatorWrapper, org.iscreen.impl.ValidationServiceValidator,
ValidatorWrapper | public interface ValidatorWrapper (Code) | | This interface represents a wrapper around a validator. The wrapper
class acts as the bridge to calling the validator.
author: Shellman, Dan |
getDoc | DocumentationIterator getDoc()(Code) | | Called to retrieve the documentation for the validator.
Returns the documentation for the validator. |
getName | String getName()(Code) | | Called to retrieve the "name" of the validator. The name represents
some form of identification, though it does not have to be unique in
any way. The name is merely associated with the configured validator,
and is referenced when reporting failures.
Returns the name of this validator. |
validate | boolean validate(InternalValidatorContext context, ContextBean root, Object obj)(Code) | | Called to have the wrapper validate the passed object. It is expected
that the wrapper will update the root object as appropriate. The
context already has access to the root that is being passed in.
Parameters: context - The validation context to pass on to the containedvalidator. Parameters: root - The OGNL root, to be updated as appropriate. Parameters: obj - The object to be validated. |
|
|