Class LengthValidator
- java.lang.Object
-
- org.nuxeo.ecm.webengine.forms.validation.LengthValidator
-
- All Implemented Interfaces:
FieldValidator
public class LengthValidator extends Object implements FieldValidator
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description LengthValidator(int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(String value, Object decoded)
protected boolean
validateLength(int len)
-
-
-
Method Detail
-
validate
public void validate(String value, Object decoded) throws ValidationException
- Specified by:
validate
in interfaceFieldValidator
- Throws:
ValidationException
-
validateLength
protected boolean validateLength(int len)
-
-