de.smartics.properties.tutorial.property.constraints
Class RealHappinessValidator

Package class diagram package RealHappinessValidator
java.lang.Object
  extended by 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.


Constructor Summary
RealHappinessValidator()
           
 
Method Summary
 void initialize(RealHappiness constraintAnnotation)
           No operation.
 boolean isValid(Integer value, javax.validation.ConstraintValidatorContext constraintValidatorContext)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealHappinessValidator

public RealHappinessValidator()
Method Detail

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.