Class ValidationCaller<T>
- java.lang.Object
-
- io.dropwizard.validation.selfvalidating.ValidationCaller<T>
-
- Type Parameters:
T
- the object type that contains the validation method
public abstract class ValidationCaller<T> extends Object
This class represents a wrapper for calling validation methods annotated with@SelfValidation
. It is used as a base class for the code generation.
-
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable T
validationObject
-
Constructor Summary
Constructors Constructor Description ValidationCaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
call(ViolationCollector vc)
@Nullable T
getValidationObject()
void
setValidationObject(T obj)
-
-
-
Field Detail
-
validationObject
protected @Nullable T validationObject
-
-
Method Detail
-
setValidationObject
public void setValidationObject(T obj)
-
getValidationObject
public @Nullable T getValidationObject()
-
call
public abstract void call(ViolationCollector vc)
-
-