org.hibernate.validator
Class NotEmptyValidator

java.lang.Object
  extended by org.hibernate.validator.NotEmptyValidator
All Implemented Interfaces:
Serializable, PropertyConstraint, Validator<NotEmpty>

public class NotEmptyValidator
extends Object
implements Validator<NotEmpty>, PropertyConstraint, Serializable

Check the non emptyness of the element

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
NotEmptyValidator()
           
 
Method Summary
 void apply(org.hibernate.mapping.Property property)
           
 void initialize(NotEmpty parameters)
          Take the annotations values
 boolean isValid(Object value)
          does the object/element pass the constraints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotEmptyValidator

public NotEmptyValidator()
Method Detail

initialize

public void initialize(NotEmpty parameters)
Description copied from interface: Validator
Take the annotations values

Specified by:
initialize in interface Validator<NotEmpty>

isValid

public boolean isValid(Object value)
Description copied from interface: Validator
does the object/element pass the constraints

Specified by:
isValid in interface Validator<NotEmpty>

apply

public void apply(org.hibernate.mapping.Property property)
Specified by:
apply in interface PropertyConstraint


Copyright © 2009. All Rights Reserved.