| java.lang.Object org.iscreen.impl.BaseValidationService
All known Subclasses: org.iscreen.impl.MockValidationService, org.iscreen.impl.DefaultValidationService,
BaseValidationService | abstract public class BaseValidationService implements ValidationService(Code) | | This is the base class implementation of the ValidationService interface.
author: Shellman, Dan |
BaseValidationService | public BaseValidationService(String uniqueId, Locale locale)(Code) | | Constructor taking unique id. The unique id is required. In addition,
the default locale is provided.
Parameters: uniqueId - The unique id for this service. Parameters: locale - The default locale for this service. |
constructContext | protected DefaultValidatorContext constructContext(ContextBean root, Locale locale)(Code) | | This can be over-written by sub-classes, but it's not really necessary,
since this service requires a particular implementation of the
ValidatorContext.
Parameters: root - The ContextBean that the context needs. Parameters: locale - The locale to use in generating error messages. Returns a constructed and configured DefaultValidatorContext. |
constructContextBean | protected ContextBean constructContextBean(Object objToValidate)(Code) | | This can be over-written by sub-classes, but it's not really necessary,
since this service requires an OGNL root object.
Returns an instance of ContextBean fully configured. |
getDocumentation | public DocumentationIterator getDocumentation()(Code) | | Retrieves an iterator of String values representing the documentation
configured for this validation service (the underlying validation set).
Returns an iterator of Strings representing documentation. |
getNextValidator | abstract protected ValidatorWrapper getNextValidator()(Code) | | Retrieves the "next" Validator in the set of Validators that this
validation service is configured to use. If there are no more
Validators, then this method should return null. It should return
the first Validator after a call to resetValidatorIteration().
Returns the next ValidatorWrapper in the set of validators. |
resetValidatorIteration | abstract protected void resetValidatorIteration()(Code) | | Resets the iteration of Validators using the getNextValidator() method.
|
|
|