## Uses of Interface
javax.faces.validator.Validator

- Packages that use Validator
  Package | Description
  --- | ---
  javax.faces.application | APIs that are used to link an application's business logic objects to JavaServer Faces, as well as convenient pluggable mechanisms to manage the execution of an application that is based on JavaServer Faces.
  javax.faces.component | Fundamental APIs for user interface components.
  javax.faces.validator | Interface defining the validator model, and concrete validator implementation classes.
  javax.faces.webapp | Classes required for integration of JavaServer Faces into web applications, including a standard servlet, base classes for JSP custom component tags, and concrete tag implementations for core tags.

- - ### Uses of Validator in javax.faces.application

    Methods in javax.faces.application that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `Validator` | ApplicationWrapper.`createValidator(String validatorId)` The default behavior of this method is to call `Application.createValidator(String)` on the wrapped `Application` object.
    `abstract Validator` | Application.`createValidator(String validatorId)` Instantiate and return a new `Validator` instance of the class specified by a previous call to `addValidator()` for the specified validator id.

  - ### Uses of Validator in javax.faces.component

    Methods in javax.faces.component that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `Validator[]` | UIInput.`getValidators()` Return the set of registered `Validator`s for this `UIInput` instance.
    `Validator[]` | EditableValueHolder.`getValidators()` Return the set of registered `Validator`s for this component instance.

    Methods in javax.faces.component with parameters of type Validator
    Modifier and Type | Method and Description
    --- | ---
    `void` | UIInput.`addValidator(Validator validator)` Add a `Validator` instance to the set associated with this `UIInput`.
    `void` | EditableValueHolder.`addValidator(Validator validator)` Add a `Validator` instance to the set associated with this component.
    `void` | UIInput.`removeValidator(Validator validator)` Remove a `Validator` instance from the set associated with this `UIInput`, if it was previously associated.
    `void` | EditableValueHolder.`removeValidator(Validator validator)` Remove a `Validator` instance from the set associated with this component, if it was previously associated.

  - ### Uses of Validator in javax.faces.validator

    Classes in javax.faces.validator that implement Validator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BeanValidator` A Validator that delegates validation of the bean property to the Bean Validation API.
    `class` | `DoubleRangeValidator` DoubleRangeValidator is a `Validator` that checks the value of the corresponding component against specified minimum and maximum values.
    `class` | `LengthValidator` LengthValidator is a `Validator` that checks the number of characters in the String representation of the value of the associated component.
    `class` | `LongRangeValidator` LongRangeValidator is a `Validator` that checks the value of the corresponding component against specified minimum and maximum values.
    `class` | `MethodExpressionValidator` MethodExpressionValidator is a `Validator` that wraps a `MethodExpression`, and it performs validation by executing a method on an object identified by the `MethodExpression`.
    `class` | `RegexValidator` A Validator that checks against a Regular Expression (which is the pattern property).
    `class` | `RequiredValidator` A Validator that checks for an empty value in the same way that UIInput checks for a value.

  - ### Uses of Validator in javax.faces.webapp

    Methods in javax.faces.webapp that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `protected Validator` | ValidatorTag.`createValidator()` Deprecated. Create and return a new `Validator` to be registered on our surrounding `UIComponent`.
    `protected abstract Validator` | ValidatorELTag.`createValidator()` Create and return a new `Validator` to be registered on our surrounding `UIComponent`.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.