| java.lang.Object org.iscreen.impl.ValidationServiceValidator
All known Subclasses: org.iscreen.ognl.OgnlValidationServiceValidator, org.iscreen.mvel.MvelValidationServiceValidator,
ValidationServiceValidator | abstract public class ValidationServiceValidator implements ValidatorWrapper(Code) | | This is a special ValidatorWrapper that forwards validation to
a different Validation Set.
author: Shellman, Dan |
Method Summary | |
protected InternalValidatorContext | createNewContext(ContextBean newContextBean, Locale newLocale, InternalValidatorContext oldContext) Constructs a new context for the validation set being called. | public DocumentationIterator | getDoc() Called to retrieve the documentation for the validator. | public String | getIfExpression() | public String | getIterateExpression() | public String | getMapExpression() | public String | getName() | public boolean | isFailFast() | abstract protected Object | mapObject(InternalValidatorContext context, ContextBean contextBean, Object obj) Handle the mapping of the object being validated to the property
that will be validated (may be the object, itself).
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. | public void | setFailFast(boolean flag) | public void | setIfExpression(String exp) | public void | setIterateExpression(String exp) | public void | setMapExpression(String exp) | public void | setName(String theName) | abstract protected boolean | shouldExecute(InternalValidatorContext context, ContextBean contextBean, Object obj) Determines whether the inclusion/call to the validation set
should occur.
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. | abstract protected boolean | shouldIterate(InternalValidatorContext context, ContextBean contextBean, Object obj) Determines whether we're iterating over the mapped object.
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. | public boolean | validate(InternalValidatorContext context, ContextBean contextBean, Object obj) |
failFastFlag | protected boolean failFastFlag(Code) | | |
createNewContext | protected InternalValidatorContext createNewContext(ContextBean newContextBean, Locale newLocale, InternalValidatorContext oldContext)(Code) | | Constructs a new context for the validation set being called.
Parameters: newContextBean - The new ContextBean created for the validation set. Parameters: newLocale - The new Locale for the validation set. Parameters: oldContext - The old ValidatorContext from the current validation set. |
getDoc | public DocumentationIterator getDoc()(Code) | | Called to retrieve the documentation for the validator.
Returns the documentation for the validator. |
getIterateExpression | public String getIterateExpression()(Code) | | |
isFailFast | public boolean isFailFast()(Code) | | |
mapObject | abstract protected Object mapObject(InternalValidatorContext context, ContextBean contextBean, Object obj)(Code) | | Handle the mapping of the object being validated to the property
that will be validated (may be the object, itself).
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. Returns the object that will be forwarded to the calledvalidation set. |
setFailFast | public void setFailFast(boolean flag)(Code) | | |
setIfExpression | public void setIfExpression(String exp)(Code) | | |
setIterateExpression | public void setIterateExpression(String exp)(Code) | | |
setMapExpression | public void setMapExpression(String exp)(Code) | | |
shouldExecute | abstract protected boolean shouldExecute(InternalValidatorContext context, ContextBean contextBean, Object obj)(Code) | | Determines whether the inclusion/call to the validation set
should occur.
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. Returns true if the validation set should be called/executed. |
shouldIterate | abstract protected boolean shouldIterate(InternalValidatorContext context, ContextBean contextBean, Object obj)(Code) | | Determines whether we're iterating over the mapped object.
Parameters: context - The ValidatorContext Parameters: contextBean - The ContextBean Parameters: obj - The object being validated. Returns true if we should iterate. |
|
|