Example usage for Java org.apache.commons.validator Validator fields, constructors, methods, implement or subclass
The text is from its open source code.
String | BEAN_PARAM Resources key the JavaBean is stored to perform validation on. |
String | LOCALE_PARAM Resources key the Locale is stored. |
Validator(ValidatorResources resources, String formName) Construct a Validator that will use the ValidatorResources passed in to retrieve pluggable validators the different sets of validation rules. | |
Validator(ValidatorResources resources) Construct a Validator that will use the ValidatorResources passed in to retrieve pluggable validators the different sets of validation rules. |
String | getFormName() Gets the form name which is the key to a set of validation rules. |
Object | getParameterValue(String parameterClassName) Returns the value of the specified parameter that will be used during the processing of validations. |
void | setFieldName(String fieldName) Sets the name of the field to validate in a form (optional) |
void | setOnlyReturnErrors(boolean onlyReturnErrors) Configures which Fields the Validator returns from the validate() method. |
void | setPage(int page) Sets the page. |
void | setParameter(String parameterClassName, Object parameterValue) Set a parameter of a pluggable validation method. |
void | setUseContextClassLoader(boolean use) Determine whether to use the Context ClassLoader (the one found by calling Thread.currentThread().getContextClassLoader() ) to resolve/load classes that are defined in various rules. |
ValidatorResults | validate() Performs validations based on the configured resources. |