de.smartics.properties.tutorial.property.constraints
Class RealHappinessValidator
java.lang.Object
de.smartics.properties.tutorial.property.constraints.RealHappinessValidator
-
All Implemented Interfaces:
-
javax.validation.ConstraintValidator<
RealHappiness,
Integer>
-
public class RealHappinessValidator
-
extends
Object
-
implements javax.validation.ConstraintValidator<
RealHappiness,
Integer>
Checks that the happiness value is within its constraints.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RealHappinessValidator
public RealHappinessValidator()
initialize
public void initialize(RealHappiness constraintAnnotation)
-
No operation.
-
-
Specified by:
-
initialize
in interface
javax.validation.ConstraintValidator<RealHappiness,Integer>
-
isValid
public boolean isValid(Integer value,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
-
-
-
Specified by:
-
isValid
in interface
javax.validation.ConstraintValidator<RealHappiness,Integer>
-
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.