org.hibernate.validator
Class NotEmptyValidator
java.lang.Object
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
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotEmptyValidator
public NotEmptyValidator()
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