|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.validation.AbstractValidator
public abstract class AbstractValidator
Abstract validation class which provides base validation methods.
| Constructor Summary | |
|---|---|
AbstractValidator()
|
|
| Method Summary | ||
|---|---|---|
abstract
|
validate(T arg0,
int event)
Validates a given instance |
|
abstract
|
validateProperty(T arg0,
String property,
int event)
Validates a property of a given instance |
|
abstract
|
validateValue(Class<T> arg0,
String arg1,
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractValidator()
| Method Detail |
|---|
public abstract <T> ValidationException validate(T arg0,
int event)
Validator
validate in interface ValidatorT - The instance to validatearg0 - The class, of type T to validateevent - The event id
public abstract <T> ValidationException validateProperty(T arg0,
String property,
int event)
Validator
validateProperty in interface ValidatorT - The instance to validatearg0 - The class, of type T to validateproperty - The property to validateevent - The event id
public abstract <T> ValidationException validateValue(Class<T> arg0,
String arg1,
Object arg2,
int event)
Validator
validateValue in interface ValidatorT - 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
public <T> boolean validating(T arg0,
int event)
Validator
validating in interface Validatorarg0 - Type being validatedevent - event type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||