Annotation Type ActiveIf
@Repeatable(ActiveIfs.class)
@Target({FIELD,PARAMETER})
@Retention(RUNTIME)
public @interface ActiveIf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic @interfaceAllows to pass custom options to the evaluation strategy. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanShould the condition deduced from the target comparison to the value(s) be compared to true or false.
-
Element Details
-
target
- Returns:
- the path to evaluate.
-
value
- Returns:
- the value to compare with the evaluated path.
-
-
-
negate
boolean negateShould the condition deduced from the target comparison to the value(s) be compared to true or false. It is equivalent to see target and value defining aPredicateand this toggle callingPredicate.negate().- Returns:
- if set to true it will be compared to false (reversed), otherwise it is compared to true.
- Default:
- false
-
evaluationStrategy
- Returns:
- the strategy to use to evaluate the value compared to value array.
- Default:
- DEFAULT
-
evaluationStrategyOptions
- Default:
- {}
-