use of org.grails.validation.NotEqualConstraint in project grails-core by grails.
the class ConstrainedProperty method setNotEqual.
/**
* @param notEqual The notEqual to set.
*/
public void setNotEqual(Object notEqual) {
if (notEqual == null) {
appliedConstraints.remove(NOT_EQUAL_CONSTRAINT);
} else {
Constraint c = new NotEqualConstraint();
c.setOwningClass(owningClass);
c.setPropertyName(propertyName);
c.setParameter(notEqual);
appliedConstraints.put(NOT_EQUAL_CONSTRAINT, c);
}
}
Aggregations