Package kos.api
Interface Validation<T>
- All Known Implementing Classes:
DefaultValidation,DefaultValidation.AlwaysValid
public interface Validation<T>
A validation rule for the given type.
-
Method Summary
-
Method Details
-
getTypeOfTheObjectBeingValidated
Returns a static representation of the object being validated. -
validate
Validates theobject. It is expected that the validated object will be returned in the successfulFutureresult.- Parameters:
object- the object to be validatedtargetClass-
-