Class TypeConstraint
java.lang.Object
org.nuxeo.ecm.core.schema.types.constraints.AbstractConstraint
org.nuxeo.ecm.core.schema.types.constraints.TypeConstraint
- All Implemented Interfaces:
Serializable
,Constraint
This constraint ensures some object's is supported by some
Type
.- Since:
- 7.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.schema.types.constraints.Constraint
Constraint.Description
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.core.schema.types.constraints.Constraint
MESSAGES_BUNDLE, MESSAGES_DEFAULT_LANG, MESSAGES_KEY
-
Constructor Summary
-
Method Summary
Methods inherited from class org.nuxeo.ecm.core.schema.types.constraints.AbstractConstraint
getErrorMessage, getMessageKey, getMessageString, toString
-
Field Details
-
type
-
-
Constructor Details
-
TypeConstraint
-
-
Method Details
-
validate
Description copied from interface:Constraint
Validates the given object against this constraint.If some object is null. Constraint should return true while validating unless the constraint deals with nullable state.
- Parameters:
object
- the object to validate- Returns:
- true if the object was successfully validated, false otherwise
-
getDescription
- Returns:
- The constraint description.
-
getType
- Returns:
- The type used by this constraint to validate.
- Since:
- 7.1
-
hashCode
public int hashCode() -
equals
-