public class StringLengthConstraint extends Object implements Constraint
The length constraint is not strict (i.e. >= and <=).
Constructor and Description |
---|
StringLengthConstraint(int min,
int max) |
public boolean validate(Object object)
Constraint
validate
in interface Constraint
object
- the object to validatepublic int getMin()
public int getMax()
Copyright © 2013 Nuxeo SA. All Rights Reserved.