ValidationFunction<T>
public class InvalidAttributeValidationFunction<T extends TreeNodeWithChangeSupport> extends java.lang.Object implements ValidationFunction<T>
Constructor | Description |
---|---|
InvalidAttributeValidationFunction(java.lang.String attributeName) |
Creates a new
InvalidAttributeValidationFunction instance. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
check(ValidationContext ctx,
T t) |
Returns
true if the constraint is valid and false
if it's broken. |
public InvalidAttributeValidationFunction(java.lang.String attributeName)
InvalidAttributeValidationFunction
instance.attributeName
- the attribute name to checkpublic boolean check(ValidationContext ctx, T t)
ValidationFunction
true
if the constraint is valid and false
if it's broken.check
in interface ValidationFunction<T extends TreeNodeWithChangeSupport>
ctx
- the context in which the validation is performedt
- the object to checkfalse
if the constraint is broken