public class TypeConstraint extends AbstractConstraint
Type
.Constraint.Description
MESSAGES_BUNDLE, MESSAGES_DEFAULT_LANG, MESSAGES_KEY
Constructor and Description |
---|
TypeConstraint(PrimitiveType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Constraint.Description |
getDescription()
Here, value is :
name = parameters = : org.nuxeo.ecm.core.schema.types.primitives.IntegerType |
Type |
getType() |
int |
hashCode() |
boolean |
validate(Object object)
Validates the given object against this constraint.
|
getErrorMessage, getMessageString, toString
public TypeConstraint(PrimitiveType type)
public boolean validate(Object object)
Constraint
If some object is null. Constraint should return true while validating unless the constraint deals with nullable state.
object
- the object to validatepublic Constraint.Description getDescription()
Here, value is :
name =
parameters =
public Type getType()
Copyright © 2015 Nuxeo SA. All rights reserved.