public class DuplicatedElementValidationFunction<T extends SBase> extends java.lang.Object implements ValidationFunction<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
elementName
an (XML) element name that should not be present more than once
|
private static org.apache.log4j.Logger |
logger
Log4j logger
|
Constructor and Description |
---|
DuplicatedElementValidationFunction(java.lang.String elementName) |
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 elementName
public DuplicatedElementValidationFunction(java.lang.String elementName)
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