public class ElementOrderValidationFunction<T extends SBase> extends java.lang.Object implements ValidationFunction<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
elementsOrder
an arrays holding the expected order of the (XML) elements
|
private static org.apache.log4j.Logger |
logger
Log4j logger
|
Constructor and Description |
---|
ElementOrderValidationFunction(java.lang.String[] elementsOrder) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(ValidationContext ctx,
T t)
Returns
true if the constraint is valid and false
if it's broken. |
private static final transient org.apache.log4j.Logger logger
private java.lang.String[] elementsOrder
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>
false
if the constraint is broken