public class TypeConstraint extends AbstractConstraint
Type
.Constraint.Description
Modifier and Type | Field and Description |
---|---|
protected PrimitiveType |
type |
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
protected final PrimitiveType type
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 =
Copyright © 2018 Nuxeo. All rights reserved.