| java.lang.Object dinamica.AbstractModule dinamica.GenericTransaction dinamica.AbstractValidator
All known Subclasses: dinamica.validators.NoRecordsFound, dinamica.validators.DoubleRangeValidator, dinamica.validators.IntegerRangeValidator, dinamica.security.PasswordNotUsed, dinamica.validators.DateRangeValidator, dinamica.validators.MatchEqualValidator, dinamica.validators.UpperCaseTransformer, dinamica.validators.CanDeleteRecord, dinamica.validators.DuplicatedKeyValidator, dinamica.validators.NotEmpty, dinamica.validators.ArrayNotEmptyValidator, dinamica.security.PasswordEncryptor, dinamica.validators.SQLPatternTransformer, dinamica.validators.TimeValidator,
AbstractValidator | abstract public class AbstractValidator extends GenericTransaction (Code) | | Base class to create reusable Validator services.
All Validators must subclass this class.
Creation date: 29/10/2003
Last Update: 29/10/2003
(c) 2003 Martin Cordova
This code is released under the LGPL license
author: Martin Cordova |
Method Summary | |
public String | getErrorMessage() Error Message to be displayed by the"invalid form" action. | abstract public boolean | isValid(HttpServletRequest req, Recordset inputParams, HashMap<String, String> attribs) Executes business specific validation rule for a request
Parameters: req - Servlet Request Parameters: inputParams - Recordset with pre-validated request parameters in its native data types Parameters: attribs - Attributes defined in validator.xml for the custom-validator element - these are validator-specific, so the samevalitador can receive a different set of attributes in different Actions, making it more reusable. |
getErrorMessage | public String getErrorMessage()(Code) | | Error Message to be displayed by the"invalid form" action. If this method returns null thenthe Controller will use the on-error-label attribute definedfor the validator in the validator.xml file. |
isValid | abstract public boolean isValid(HttpServletRequest req, Recordset inputParams, HashMap<String, String> attribs) throws Throwable(Code) | | Executes business specific validation rule for a request
Parameters: req - Servlet Request Parameters: inputParams - Recordset with pre-validated request parameters in its native data types Parameters: attribs - Attributes defined in validator.xml for the custom-validator element - these are validator-specific, so the samevalitador can receive a different set of attributes in different Actions, making it more reusable. TRUE if the validation passed OK. throws: Throwable - |
|
|