|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface Validator
Defines an interface for form validation.
| Method Summary | |
|---|---|
java.util.List |
getFields(java.lang.String form)
Return the List of Field instances supported by this Validator for the given "form" grouping. |
java.util.ResourceBundle |
getResource(java.util.Locale locale)
Return the ResourceBundle that contains the error messages for this validator. |
void |
init(java.lang.String name,
XMLProperties xmlProps)
Validator initialisation must be performed here. |
java.util.Map |
validate(java.lang.String formName,
javax.servlet.ServletRequest request)
Validates the given request and returns a map of validated values. |
| Method Detail |
|---|
void init(java.lang.String name,
XMLProperties xmlProps)
throws ValidationException
name - Name of this validator.xmlProps - XML configuration properties.
ValidationException - if the validator could not be initialised.
java.util.Map validate(java.lang.String formName,
javax.servlet.ServletRequest request)
throws ValidationException
formName - Name of the form to validate.request - Serlvet request containing form data.
ValidationException - if the request could not be validated.
java.util.ResourceBundle getResource(java.util.Locale locale)
throws ValidationException
locale - Locale to use. May be null.
ValidationException - if the resource cannot be obtained.java.util.List getFields(java.lang.String form)
form - String containing form grouping name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||