|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionValidatorManager
ActionValidatorManager is the main interface for validation managers (regular and annotation based).
Method Summary | |
---|---|
java.util.List<Validator> |
getValidators(java.lang.Class clazz,
java.lang.String context)
Returns a list of validators for the given class and context. |
java.util.List<Validator> |
getValidators(java.lang.Class clazz,
java.lang.String context,
java.lang.String method)
Returns a list of validators for the given class, context, and method. |
void |
validate(java.lang.Object object,
java.lang.String context)
Validates the given object using action and its context. |
void |
validate(java.lang.Object object,
java.lang.String context,
java.lang.String method)
Validates the given object using an action, its context, and the name of the method being invoked on the action. |
void |
validate(java.lang.Object object,
java.lang.String context,
ValidatorContext validatorContext)
Validates an action give its context and a validation context. |
void |
validate(java.lang.Object object,
java.lang.String context,
ValidatorContext validatorContext,
java.lang.String method)
Validates an action give its context and a validation context. |
Method Detail |
---|
java.util.List<Validator> getValidators(java.lang.Class clazz, java.lang.String context, java.lang.String method)
clazz
- the class to lookup.context
- the context of the action class - can be null.method
- the name of the method being invoked on the action - can be null.
java.util.List<Validator> getValidators(java.lang.Class clazz, java.lang.String context)
clazz
- the class to lookup.context
- the context of the action class - can be null.
void validate(java.lang.Object object, java.lang.String context) throws ValidationException
object
- the action to validate.context
- the action's context.
ValidationException
- if an error happens when validating the action.void validate(java.lang.Object object, java.lang.String context, ValidatorContext validatorContext) throws ValidationException
object
- the action to validate.context
- the action's context.validatorContext
- the validation context to use
ValidationException
- if an error happens when validating the action.void validate(java.lang.Object object, java.lang.String context, java.lang.String method) throws ValidationException
object
- the action to validate.context
- the action's context.method
- the name of the method being invoked on the action - can be null.
ValidationException
- if an error happens when validating the action.void validate(java.lang.Object object, java.lang.String context, ValidatorContext validatorContext, java.lang.String method) throws ValidationException
object
- the action to validate.context
- the action's context.validatorContext
- the validation context to usemethod
- the name of the method being invoked on the action - can be null.
ValidationException
- if an error happens when validating the action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |