|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Validator
Basic validation interface which defines the contract for event based validation. Event values are defined in LifeCycleEvent.
Method Summary | ||
---|---|---|
|
validate(T arg0,
int event)
Validates a given instance |
|
|
validateProperty(T arg0,
java.lang.String property,
int event)
Validates a property of a given instance |
|
|
validateValue(java.lang.Class<T> arg0,
java.lang.String arg1,
java.lang.Object arg2,
int event)
Validates a value based upon the constraints applied to a given class attribute. |
|
|
validating(T arg0,
int event)
Method for determining whether validation is active for the given type and event. |
Method Detail |
---|
<T> ValidationException validate(T arg0, int event)
T
- The instance to validatearg0
- The class, of type T to validateevent
- The event id
<T> ValidationException validateProperty(T arg0, java.lang.String property, int event)
T
- The instance to validatearg0
- The class, of type T to validateproperty
- The property to validateevent
- The event id
<T> ValidationException validateValue(java.lang.Class<T> arg0, java.lang.String arg1, java.lang.Object arg2, int event)
T
- The instance type to base validation uponarg0
- The class of type T to validatearg1
- The property to validatearg2
- The property value to validateevent
- The event id
<T> boolean validating(T arg0, int event)
T
- arg0
- Type being validatedevent
- event type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |