## Uses of Interface
com.opensymphony.xwork2.validator.Validator

- Packages that use Validator
  Package | Description
  --- | ---
  com.opensymphony.xwork2 | Main XWork interfaces and classes.
  com.opensymphony.xwork2.factory |
  com.opensymphony.xwork2.validator | XWork validation subsystem.
  com.opensymphony.xwork2.validator.validators | XWork default validator classes.
  org.apache.struts2.components |

- - ### Uses of Validator in com.opensymphony.xwork2

    Methods in com.opensymphony.xwork2 that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `Validator` | ObjectFactory.`buildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext)` Build a Validator of the given type and set the parameters on it

  - ### Uses of Validator in com.opensymphony.xwork2.factory

    Methods in com.opensymphony.xwork2.factory that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `Validator` | DefaultValidatorFactory.`buildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext)`
    `Validator` | ValidatorFactory.`buildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext)` Build a Validator of the given type and set the parameters on it

  - ### Uses of Validator in com.opensymphony.xwork2.validator

    Subinterfaces of Validator in com.opensymphony.xwork2.validator
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `FieldValidator` The FieldValidator interface defines the methods to be implemented by FieldValidators.

    Methods in com.opensymphony.xwork2.validator that return Validator
    Modifier and Type | Method and Description
    --- | ---
    `Validator` | DefaultValidatorFactory.`getValidator(ValidatorConfig cfg)`
    `Validator` | ValidatorFactory.`getValidator(ValidatorConfig cfg)` Get a Validator that matches the given configuration.
    `protected Validator` | DefaultActionValidatorManager.`getValidatorFromValidatorConfig(ValidatorConfig config, ValueStack stack)`

    Methods in com.opensymphony.xwork2.validator that return types with arguments of type Validator
    Modifier and Type | Method and Description
    --- | ---
    `List<Validator>` | DefaultActionValidatorManager.`getValidators(Class<?> clazz, String context)`
    `List<Validator>` | ActionValidatorManager.`getValidators(Class<?> clazz, String context)` Returns a list of validators for the given class and context.
    `List<Validator>` | DefaultActionValidatorManager.`getValidators(Class<?> clazz, String context, String method)`
    `List<Validator>` | ActionValidatorManager.`getValidators(Class<?> clazz, String context, String method)` Returns a list of validators for the given class, context, and method.

  - ### Uses of Validator in com.opensymphony.xwork2.validator.validators

    Classes in com.opensymphony.xwork2.validator.validators that implement Validator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ConditionalVisitorFieldValidator` The ConditionalVisitorFieldValidator will forward validation to the VisitorFieldValidator only if the expression will evaluate to true.
    `class` | `ConversionErrorFieldValidator` Field Validator that checks if a conversion error occurred for this field.
    `class` | `CreditCardValidator` CreditCardFieldValidator checks that a given String/Array/Collection field, if not empty, is a valid credit card number.
    `class` | `DateRangeFieldValidator` Field Validator that checks if the date supplied is within a specific range.
    `class` | `DoubleRangeFieldValidator` Field Validator that checks if the double specified is within a certain range.
    `class` | `EmailValidator` EmailValidator checks that a given String field, if not empty, is a valid email address.
    `class` | `ExpressionValidator` A Non-Field Level validator that validates based on regular expression supplied.
    `class` | `FieldExpressionValidator` Validates a field using an OGNL expression.
    `class` | `FieldValidatorSupport` Base class for field validators.
    `class` | `IntRangeFieldValidator` Field Validator that checks if the integer specified is within a certain range.
    `class` | `LongRangeFieldValidator` Field Validator that checks if the long specified is within a certain range.
    `class` | `RangeValidatorSupport<T extends Comparable>` Base class for range based validators.
    `class` | `RegexFieldValidator` Validates a string field using a regular expression.
    `class` | `RepopulateConversionErrorFieldValidatorSupport` An abstract base class that adds in the capability to populate the stack with a fake parameter map when a conversion error has occurred and the 'repopulateField' property is set to "true".
    `class` | `RequiredFieldValidator` RequiredFieldValidator checks if the specified field is not null.
    `class` | `RequiredStringValidator` RequiredStringValidator checks that a String field is non-null and has a length > 0.
    `class` | `ShortRangeFieldValidator` Field Validator that checks if the short specified is within a certain range.
    `class` | `StringLengthFieldValidator` StringLengthFieldValidator checks that a String field is of a certain length.
    `class` | `URLValidator` URLValidator checks that a given field is a String and a valid URL
    `class` | `ValidatorSupport` Abstract implementation of the Validator interface suitable for subclassing.
    `class` | `VisitorFieldValidator`

  - ### Uses of Validator in org.apache.struts2.components

    Classes in org.apache.struts2.components that implement Validator
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Form.FieldVisitorValidatorWrapper` Wrap field validator, add visitor's field prefix to the field name.

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.