Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.schema.types
Interface Constraint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
StringLengthConstraint

public interface Constraint
extends java.io.Serializable

A constraint object defines a constraint on a custom type.

Author:
Bogdan Stefanescu

Method Summary
 boolean validate(java.lang.Object object)
          Validates the given object against this constraint.
 

Method Detail

validate

boolean validate(java.lang.Object object)
Validates the given object against this constraint.

Parameters:
object - the object to validate
Returns:
true if the object was successfully validated, false otherwise

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.