public interface Validator
Modifier and Type | Method and Description |
---|---|
<T> ValidationException |
validate(T arg0,
int event)
Validates a given instance
|
<T> ValidationException |
validateProperty(T arg0,
String property,
int event)
Validates a property of a given instance
|
<T> ValidationException |
validateValue(Class<T> arg0,
String arg1,
Object arg2,
int event)
Validates a value based upon the constraints applied to a given class
attribute.
|
<T> boolean |
validating(T arg0,
int event)
Method for determining whether validation is active for the given
type and event.
|
<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, 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(Class<T> arg0, String arg1, 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 typeCopyright © 2006–2018 Apache Software Foundation. All rights reserved.