Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

All Superinterfaces:
Serializable
All Known Implementing Classes:
StringLengthConstraint

public interface Constraint
extends Serializable

A constraint object defines a constraint on a custom type.

Author:
Bogdan Stefanescu

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

Method Detail

validate

boolean validate(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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.