Class ValidationCaller<T>
java.lang.Object
io.dropwizard.validation.selfvalidating.ValidationCaller<T>
- Type Parameters:
T
- the object type that contains the validation method
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
This method is intended to call a validation methods on the validation object.@Nullable T
Gets the validation object.void
setValidationObject
(T obj) Sets the validation object variable.
-
Field Details
-
validationObject
The object to call validation methods on.
-
-
Constructor Details
-
ValidationCaller
public ValidationCaller()
-
-
Method Details
-
setValidationObject
Sets the validation object variable.- Parameters:
obj
- the new validation object
-
getValidationObject
Gets the validation object.- Returns:
- the validation object
-
call
This method is intended to call a validation methods on the validation object.- Parameters:
vc
- theViolationCollector
to collect violations
-