| java.lang.Object com.opensymphony.xwork.validator.DefaultActionValidatorManager
DefaultActionValidatorManager | public class DefaultActionValidatorManager implements ActionValidatorManager(Code) | | 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 author: Mark Woon author: James House author: Rainer Hermanns author: tmjee |
VALIDATION_CONFIG_SUFFIX | final protected static String VALIDATION_CONFIG_SUFFIX(Code) | | The file suffix for any validation file.
|
buildValidatorKey | protected static String buildValidatorKey(Class clazz, String context)(Code) | | Builds a key for validators - used when caching validators.
Parameters: clazz - the action. Parameters: context - the action's context. a validator key which is the class name plus context. |
getValidators | public synchronized List getValidators(Class clazz, String context)(Code) | | 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. Parameters: context - the context of the action class - can be null. a list of all validators for the given class and context. |
validate | public void validate(Object object, String context) throws ValidationException(Code) | | Validates the given object using action and its context.
Parameters: object - the action to validate. Parameters: context - the action's context. throws: ValidationException - if an error happens when validating the action. |
validate | public void validate(Object object, String context, ValidatorContext validatorContext) throws ValidationException(Code) | | Validates an action give its context and a validation context.
Parameters: object - the action to validate. Parameters: context - the action's context. Parameters: validatorContext - throws: ValidationException - if an error happens when validating the action. |
|
|