Class MinLengthValidator
- java.lang.Object
-
- net.sourceforge.jbizmo.commons.validation.util.validator.MinLengthValidator
-
- All Implemented Interfaces:
ConstraintValidator
public class MinLengthValidator extends Object implements ConstraintValidator
Min. length validator
Copyright 2010 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
-
Constructor Summary
Constructors Constructor Description MinLengthValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintViolationvalidate(Object objValue, Annotation constraint)Validate the given value against the supplied constraint
-
-
-
Method Detail
-
validate
public ConstraintViolation validate(Object objValue, Annotation constraint)
Description copied from interface:ConstraintValidatorValidate the given value against the supplied constraint- Specified by:
validatein interfaceConstraintValidator- Parameters:
objValue- the value that will be checkedconstraint- the constraint that the value will be checked against- Returns:
- a
ConstraintViolationobject if there was a violation of the constraint, or null otherwise
-
-