Package kos.core.validation
Class DefaultValidation.AlwaysValid
java.lang.Object
kos.core.validation.DefaultValidation.AlwaysValid
- All Implemented Interfaces:
Validation<Object>
- Enclosing class:
- DefaultValidation
A
Validation that assume all objects are valid. It was designed
as an optimistic-validator for cases where no validation was defined by
the developer.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AlwaysValid
AlwaysValid()
-
-
Method Details
-
getTypeOfTheObjectBeingValidated
Description copied from interface:ValidationReturns a static representation of the object being validated.- Specified by:
getTypeOfTheObjectBeingValidatedin interfaceValidation<Object>
-
validate
Description copied from interface:ValidationValidates theobject. It is expected that the validated object will be returned in the successfulFutureresult.- Specified by:
validatein interfaceValidation<Object>- Parameters:
object- the object to be validated
-