public class IncludeElementsInclusionRule extends AbstractInclusionRule<IncludeElements>
IncludeElements annotations.AbstractInclusionRuleannotation| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(EserialElement element)
The field name is extracted from the
element's accessor method (even if it doesn't exist)
and used to decide whether the value should be included. |
boolean |
isInclusionRule()
Describes whether this rule is an inclusion or an exclusion rule.
For inclusion rules the processing should be stopped when the AbstractInclusionRule.evaluate(hu.elte.eserial.model.EserialElement)
returns true.For exclusion rules the processing should be stopped when the AbstractInclusionRule.evaluate(hu.elte.eserial.model.EserialElement)
returns false. |
public boolean evaluate(EserialElement element)
element's accessor method (even if it doesn't exist)
and used to decide whether the value should be included.evaluate in class AbstractInclusionRule<IncludeElements>element - an element containing the getter or setter to be checked and the value of the fieldtrue if the (virtual) field name is in the annotation's property listpublic boolean isInclusionRule()
AbstractInclusionRuleAbstractInclusionRule.evaluate(hu.elte.eserial.model.EserialElement)
returns true.AbstractInclusionRule.evaluate(hu.elte.eserial.model.EserialElement)
returns false.isInclusionRule in class AbstractInclusionRule<IncludeElements>true if this is an inclusion rule, false if it's an exclusion rule