Java org.apache.commons.validator Validator fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.validator Validator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.validator Validator.

The text is from its open source code.

Subclass

org.apache.commons.validator.Validator has subclasses.
Click this link to see all its subclasses.

Field

StringBEAN_PARAM
Resources key the JavaBean is stored to perform validation on.
StringLOCALE_PARAM
Resources key the Locale is stored.

Constructor

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.

Method

StringgetFormName()
Gets the form name which is the key to a set of validation rules.
ObjectgetParameterValue(String parameterClassName)
Returns the value of the specified parameter that will be used during the processing of validations.
voidsetFieldName(String fieldName)
Sets the name of the field to validate in a form (optional)
voidsetOnlyReturnErrors(boolean onlyReturnErrors)
Configures which Fields the Validator returns from the validate() method.
voidsetPage(int page)
Sets the page.
voidsetParameter(String parameterClassName, Object parameterValue)
Set a parameter of a pluggable validation method.
voidsetUseContextClassLoader(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.
ValidatorResultsvalidate()
Performs validations based on the configured resources.