ValidationFunction<T>
public class ElementOrderValidationFunction<T extends SBase> extends java.lang.Object implements ValidationFunction<T>
Constructor | Description |
---|---|
ElementOrderValidationFunction(java.lang.String[] elementsOrder) |
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 ElementOrderValidationFunction(java.lang.String[] elementsOrder)
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 SBase>
ctx
- the context in which the validation is performedt
- the object to checkfalse
if the constraint is broken