org.nuxeo.ecm.core.schema.types.constraints
Class StringLengthConstraint
java.lang.Object
org.nuxeo.ecm.core.schema.types.constraints.StringLengthConstraint
- All Implemented Interfaces:
- java.io.Serializable, Constraint
public class StringLengthConstraint
- extends java.lang.Object
- implements Constraint
String length constraint.
The length constraint is not strict (i.e. >= and <=).
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Method Summary |
boolean |
validate(java.lang.Object object)
Validates the given object against this constraint. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringLengthConstraint
public StringLengthConstraint(int min,
int max)
validate
public boolean validate(java.lang.Object object)
- Description copied from interface:
Constraint
- Validates the given object against this constraint.
- Specified by:
validate
in interface Constraint
- Parameters:
object
- the object to validate
- Returns:
- true if the object was successfully validated, false otherwise
Copyright © 2010 Nuxeo SAS. All Rights Reserved.