de.smartics.validation.constraints.impl
Class NotBlankValidator

java.lang.Object
  extended by de.smartics.validation.constraints.impl.NotBlankValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator< NotBlank, String>

public class NotBlankValidator
     
     
extends Object
implements javax.validation.ConstraintValidator< NotBlank, String>

Checks that a String value is not null, empty or contains only whitespaces.


Constructor Summary
NotBlankValidator()
           
 
Method Summary
 void initialize(NotBlank constraintAnnotation)
           
 boolean isValid(String 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

NotBlankValidator

public NotBlankValidator()
Method Detail

initialize

public void initialize(NotBlank constraintAnnotation)
Specified by:
initialize in interface javax.validation.ConstraintValidator<NotBlank,String>

isValid

public boolean isValid(String value,
                       javax.validation.ConstraintValidatorContext constraintValidatorContext)
Specified by:
isValid in interface javax.validation.ConstraintValidator<NotBlank,String>


Copyright © 2009-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.