A - the type of annotation this rule applies topublic abstract class AbstractInclusionRule<A>
extends java.lang.Object
EserialAnnotation EserialAnnotationType.INCLUSION constraints.| Modifier and Type | Field and Description |
|---|---|
protected A |
annotation |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
evaluate(EserialElement element)
An element of an object which will be evaluated.
|
abstract boolean |
isInclusionRule()
Describes whether this rule is an inclusion or an exclusion rule.
For inclusion rules the processing should be stopped when the evaluate(hu.elte.eserial.model.EserialElement)
returns true.For exclusion rules the processing should be stopped when the evaluate(hu.elte.eserial.model.EserialElement)
returns false. |
protected A annotation
public abstract boolean evaluate(EserialElement element)
element - an element containing the getter or setter to be checked and the value of the fieldtrue if the element should be included according to the EserialAnnotationpublic abstract boolean isInclusionRule()
evaluate(hu.elte.eserial.model.EserialElement)
returns true.evaluate(hu.elte.eserial.model.EserialElement)
returns false.true if this is an inclusion rule, false if it's an exclusion rule