| 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 | 
| 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 | 
| 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 | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | FieldValidatorThe FieldValidator interface defines the methods to be implemented by FieldValidators. | 
| 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) | 
| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ConditionalVisitorFieldValidatorThe ConditionalVisitorFieldValidator will forward validation to the VisitorFieldValidator
 only if the expression will evaluate to true. | 
| class  | ConversionErrorFieldValidatorField Validator that checks if a conversion error occurred for this field. | 
| class  | CreditCardValidatorCreditCardFieldValidator checks that a given String/Array/Collection field,
 if not empty, is a valid credit card number. | 
| class  | DateRangeFieldValidatorField Validator that checks if the date supplied is within a specific range. | 
| class  | DoubleRangeFieldValidatorField Validator that checks if the double specified is within a certain range. | 
| class  | EmailValidatorEmailValidator checks that a given String field, if not empty, is a valid email address. | 
| class  | ExpressionValidatorA Non-Field Level validator that validates based on regular expression supplied. | 
| class  | FieldExpressionValidatorValidates a field using an OGNL expression. | 
| class  | FieldValidatorSupportBase class for field validators. | 
| class  | IntRangeFieldValidatorField Validator that checks if the integer specified is within a certain range. | 
| class  | LongRangeFieldValidatorField Validator that checks if the long specified is within a certain range. | 
| class  | RangeValidatorSupport<T extends Comparable>Base class for range based validators. | 
| class  | RegexFieldValidatorValidates 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  | RequiredFieldValidatorRequiredFieldValidator checks if the specified field is not null. | 
| class  | RequiredStringValidatorRequiredStringValidator checks that a String field is non-null and has a length > 0. | 
| class  | ShortRangeFieldValidatorField Validator that checks if the short specified is within a certain range. | 
| class  | StringLengthFieldValidatorStringLengthFieldValidator checks that a String field is of a certain length. | 
| class  | URLValidatorURLValidator checks that a given field is a String and a valid URL | 
| class  | ValidatorSupportAbstract implementation of the Validator interface suitable for subclassing. | 
| class  | VisitorFieldValidator | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Form.FieldVisitorValidatorWrapperWrap field validator, add visitor's field prefix to the field name. | 
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.