ValidationFunction<T>
public class UnknownPackageElementValidationFunction<T extends TreeNodeWithChangeSupport> extends java.lang.Object implements ValidationFunction<T>
Constructor | Description |
---|---|
UnknownPackageElementValidationFunction(java.lang.String packageLabel) |
Creates a new instance of
UnknownPackageElementValidationFunction |
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 UnknownPackageElementValidationFunction(java.lang.String packageLabel)
UnknownPackageElementValidationFunction
public 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