Package org.ocpsoft.rewrite.config
Class And
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.config.And
- All Implemented Interfaces:
CompositeCondition,Condition,ConditionBuilder
Evaluates all provided
Condition instances. If all provided conditions return true, this
condition returns true. If any provided conditions return false, this condition returns
false.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic AndCreates a newAndcondition.booleanevaluate(Rewrite event, EvaluationContext context) Evaluate this condition against the givenRewriteevent.Returns allConditionobjects contained within thisCompositeCondition; otherwise, returns an emptyList.toString()Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
all
Creates a newAndcondition. If all providedConditioninstances returntrue, this condition returnstrue. If any provided conditions returnfalse, this condition returnsfalse.- Parameters:
conditions- the array of conditions to be evaluated
-
evaluate
Description copied from interface:ConditionEvaluate 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. -
getConditions
Description copied from interface:CompositeConditionReturns allConditionobjects contained within thisCompositeCondition; otherwise, returns an emptyList.- Specified by:
getConditionsin interfaceCompositeCondition
-
toString
-