Package org.ocpsoft.rewrite.config
Interface Condition
- All Known Subinterfaces:
CompositeCondition,CompositeRule,ConditionBuilder,ParameterizedRule,RelocatableRule,Rule
- All Known Implementing Classes:
And,ConfigurationRuleBuilder,DefaultConditionBuilder,Direction,False,Filesystem,Not,Or,RuleBuilder,True
public interface Condition
A condition that must be met in order for evaluation to return true. You may create custom
Condition
implementations. If creating custom implementations, you should likely extend DefaultConditionBuilder, which
adds logical operators to any class extending it.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(Rewrite event, EvaluationContext context) Evaluate this condition against the givenRewriteevent.
-
Method Details
-
evaluate
Evaluate this condition against the givenRewriteevent. If this condition does not apply to the given event, it must return false. If the condition applies and is satisfied, return true.
-