public abstract class AbstractValidator extends Object implements Validator
Constructor and Description |
---|
AbstractValidator() |
Modifier and Type | Method and Description |
---|---|
abstract <T> ValidationException |
validate(T arg0,
int event)
Validates a given instance
|
abstract <T> ValidationException |
validateProperty(T arg0,
String property,
int event)
Validates a property of a given instance
|
abstract <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.
|
public abstract <T> ValidationException validate(T arg0, int event)
Validator
public abstract <T> ValidationException validateProperty(T arg0, String property, int event)
Validator
validateProperty
in interface Validator
T
- The instance to validatearg0
- The class, of type T to validateproperty
- The property to validateevent
- The event idpublic abstract <T> ValidationException validateValue(Class<T> arg0, String arg1, Object arg2, int event)
Validator
validateValue
in interface Validator
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 idpublic <T> boolean validating(T arg0, int event)
Validator
validating
in interface Validator
arg0
- Type being validatedevent
- event typeCopyright © 2006–2018 Apache Software Foundation. All rights reserved.