@Override public boolean evaluate(Rewrite event, EvaluationContext context) { return Or.any(self, Not.any(condition)).evaluate(event, context); }
/** * Evaluates all provided {@link Condition} instances. If all provided conditions return <code>true</code>, this * condition returns <code>false</code>. If any provided conditions return <code>false</code>, this condition returns * <code>true</code>. */ public static Not any(final Condition condition) { return new Not(condition); }
@Override public boolean evaluate(Rewrite event, EvaluationContext context) { return And.all(self, Not.any(condition)).evaluate(event, context); }
/** * Evaluates all provided {@link Condition} instances. If all provided conditions return <code>true</code>, this * condition returns <code>false</code>. If any provided conditions return <code>false</code>, this condition returns * <code>true</code>. */ public static Not any(final Condition condition) { return new Not(condition); }
@Override public boolean evaluate(Rewrite event, EvaluationContext context) { return And.all(self, Not.any(condition)).evaluate(event, context); }
@Override public boolean evaluate(Rewrite event, EvaluationContext context) { return Or.any(self, Not.any(condition)).evaluate(event, context); }
@Override public ConfigurationRuleBuilderOtherwise otherwise(Operation operation, Operation... operations) { List<Operation> list = new LinkedList<Operation>(); list.add(operation); list.addAll(Arrays.asList(operations)); for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { list = interceptor.otherwise(list); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(Perform.all(list.toArray(new Operation[list.size()]))); return this; }
@Override public ConfigurationRuleBuilderOtherwise otherwise(Operation operation, Operation... operations) { List<Operation> list = new LinkedList<Operation>(); list.add(operation); list.addAll(Arrays.asList(operations)); for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { list = interceptor.otherwise(list); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(Perform.all(list.toArray(new Operation[list.size()]))); return this; }
@Override public Not processElement(ParserContext handlerManager, Element element) { Element child = $(element).children().get().get(0); Condition condition = handlerManager.processElement(child); return Not.any(condition); }
@Override public Not processElement(ParserContext handlerManager, Element element) { Element child = $(element).children().get().get(0); Condition condition = handlerManager.processElement(child); return Not.any(condition); }
@Override public Not processElement(ParserContext handlerManager, Element element) { Element child = $(element).children().get().get(0); Condition condition = handlerManager.processElement(child); return Not.any(condition); }
@Override public ConfigurationRuleBuilder otherwise(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.otherwise(operation); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(operation); return this; }
@Override public ConfigurationRuleBuilder otherwise(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.otherwise(operation); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(operation); return this; }
.addRule() .when( Not.any(WindupConfigurationQuery.hasOption(WindupConfigurationModel.KEEP_WORKING_DIRECTORIES, true).as("discard")), Query.fromType(ArchiveModel.class).withProperty(ArchiveModel.UNZIPPED_DIRECTORY).as("archives")
.addRule() .when( Not.any(WindupConfigurationQuery.hasOption(WindupConfigurationModel.KEEP_WORKING_DIRECTORIES, true).as("discard")), Query.fromType(ArchiveModel.class).withProperty(ArchiveModel.UNZIPPED_DIRECTORY).as("archives")