Annotation Type ActiveIf
@Repeatable(ActiveIfs.class)
@Target({FIELD,PARAMETER})
@Retention(RUNTIME)
public @interface ActiveIf
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static @interface
Allows to pass custom options to the evaluation strategy. -
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Should 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 aPredicate
and 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:
- {}
-