Class MultipleConditionCheck
- java.lang.Object
-
- de.xima.fc.workflow.processor.processing.MultipleConditionCheck
-
- All Implemented Interfaces:
Predicate<MultipleConditionCheck.MultipleConditionData>
@Deprecated public final class MultipleConditionCheck extends Object implements Predicate<MultipleConditionCheck.MultipleConditionData>
Deprecated.Predicate that combines multiple single conditions via aEMultipleConditionCombinationType.- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultipleConditionCheck.MultipleConditionDataDeprecated.ImplementICompoundConditionDatayourself, or just pass the single arguments toCompoundConditionEvaluator.test(EMultipleConditionCombinationType, String, Map).
-
Constructor Summary
Constructors Constructor Description MultipleConditionCheck(Locale locale)Deprecated.Creates a new multiple condition check that combines the results of individual checks.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> booleantest(EMultipleConditionCombinationType combinationType, String customExpression, Iterable<T> items, Function<T,Map.Entry<String,Boolean>> singleEvaluator)Deprecated.Combines the given conditions via the combination type.booleantest(EMultipleConditionCombinationType combinationType, String customExpression, Map<String,Boolean> singleResults)Deprecated.Combines the given conditions via the combination type.booleantest(MultipleConditionCheck.MultipleConditionData data)Deprecated.
-
-
-
Constructor Detail
-
MultipleConditionCheck
public MultipleConditionCheck(Locale locale)
Deprecated.Creates a new multiple condition check that combines the results of individual checks.- Parameters:
locale- Locale to use for error message.
-
-
Method Detail
-
test
public <T> boolean test(EMultipleConditionCombinationType combinationType, String customExpression, Iterable<T> items, Function<T,Map.Entry<String,Boolean>> singleEvaluator)
Deprecated.Combines the given conditions via the combination type.- Type Parameters:
T- Type of the items.- Parameters:
combinationType- How to combine the individual results.customExpression- Custom combination expression forEMultipleConditionCombinationType.CUSTOM.items- A list of items representing the individual conditions.singleEvaluator- Takes a single condition and evaluates it. The key must be the name of the condition forEMultipleConditionCombinationType.CUSTOM.- Returns:
- The result of combining the individual results via the given combination type.
-
test
public boolean test(EMultipleConditionCombinationType combinationType, String customExpression, Map<String,Boolean> singleResults)
Deprecated.Combines the given conditions via the combination type.- Parameters:
combinationType- How to combine the individual results.singleResults- Outcomes of the individual tests. The key is the variable name of the test forEMultipleConditionCombinationType.CUSTOM.customExpression- Custom combination expression forEMultipleConditionCombinationType.CUSTOM.- Returns:
- The result of combining the individual results via the given combination type.
-
test
public boolean test(MultipleConditionCheck.MultipleConditionData data)
Deprecated.- Specified by:
testin interfacePredicate<MultipleConditionCheck.MultipleConditionData>
-
-