com.opensymphony.xwork.validator
Class DefaultActionValidatorManager

java.lang.Object
  extended by com.opensymphony.xwork.validator.AbstractActionValidatorManager
      extended by com.opensymphony.xwork.validator.DefaultActionValidatorManager
All Implemented Interfaces:
ActionValidatorManager

public class DefaultActionValidatorManager
extends AbstractActionValidatorManager

This is the entry point into XWork's rule-based validation framework. Validation rules are specified in XML configuration files named "className-contextName-validation.xml" where className is the name of the class the configuration is for and -contextName is optional (contextName is an arbitrary key that is used to look up additional validation rules for a specific context).

Author:
Jason Carreira, Mark Woon, James House, Rainer Hermanns, tmjee

Nested Class Summary
 
Nested classes/interfaces inherited from class com.opensymphony.xwork.validator.AbstractActionValidatorManager
AbstractActionValidatorManager.InternalValidatorContextWrapper
 
Field Summary
protected static String VALIDATION_CONFIG_SUFFIX
          The file suffix for any validation file.
 
Constructor Summary
DefaultActionValidatorManager()
           
 
Method Summary
 List getValidators(Class clazz, String context)
          Returns a list of validators for the given class and context.
 
Methods inherited from class com.opensymphony.xwork.validator.AbstractActionValidatorManager
buildValidatorKey, buildValidatorsFromValidatorConfig, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATION_CONFIG_SUFFIX

protected static final String VALIDATION_CONFIG_SUFFIX
The file suffix for any validation file.

See Also:
Constant Field Values
Constructor Detail

DefaultActionValidatorManager

public DefaultActionValidatorManager()
Method Detail

getValidators

public List getValidators(Class clazz,
                          String context)
Returns a list of validators for the given class and context. This is the primary lookup method for validators.

Parameters:
clazz - the class to lookup.
context - the context of the action class - can be null.
Returns:
a list of all validators for the given class and context.

WebWork Project Page