Constraint is an Interface needed to perform a Validation.
User can define a new type of Validation by implementing this
Interface.
Method match defines the Validation logic.
InConstraint is a
Constraint to validate an Enumeration value.
It implements Constraint interface and extends
ConstraintUtils class.
match method of this object returns empty
Collection if the value being validated belongs to the
enumeration represented by this object; else it returns a
Collection with a
ConstraintFailure object in it.
IntegerGreaterThanConstraint is a
Constraint to validate numbers
between the given value and Integer.MAX_VALUE.
It implements Constraint interface and extends
ConstraintUtils class.
match method of this object returns empty
Collection if the value being validated is a number between
the given value and Integer.MAX_VALUE; else it returns a
Collection with a
ConstraintFailure object in it.
MandatoryConstraint is a
Constraint to validate non-null objects.
It implements Constraint interface and extends
ConstraintUtils class.
match method of this object returns empty
Collection if the value/object being validated is non
null; else it returns a Collection with a
ConstraintFailure object in it.
NumberConstraint is a
Constraint to validate numbers.
It implements Constraint interface and extends
ConstraintUtils class.
match method of this object returns empty
Collection if the value being validated is a number; else it
returns a Collection with a
ConstraintFailure object in
it.
ZeroToMaxIntegerConstraint is a
Constraint to validate numbers between
Zero to Integer.MAX_VALUE.
It implements Constraint interface and extends
ConstraintUtils class.
match method of this object returns empty
Collection if the value being validated is a number between Zero
to Integer.MAX_VALUE; else it returns a Collection with a
ConstraintFailure object in it.