public class NotNullConstraint extends AbstractConstraint
This class is a singleton. Use get()
to get the singleton.
Constraint.Description
MESSAGES_BUNDLE, MESSAGES_DEFAULT_LANG, MESSAGES_KEY
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static NotNullConstraint |
get() |
Constraint.Description |
getDescription()
Here, value is :
name = . |
int |
hashCode() |
boolean |
validate(Object object)
Validates the given object against this constraint.
|
getErrorMessage, getMessageString, toString
public static NotNullConstraint get()
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()
Copyright © 2015 Nuxeo SA. All rights reserved.