Package org.ocpsoft.rewrite.config
Class DefaultConditionBuilder
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
- All Implemented Interfaces:
Condition,ConditionBuilder
Used as a base class to create fluent relationships between
Condition objects; this class adds logical
operators to any class extending it.- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultConditionBuilder
public DefaultConditionBuilder()
-
-
Method Details
-
and
Description copied from interface:ConditionBuilderAppend a newConditionto this builder, which must evaluate to true in order for this compositeConditionto evaluate to true.- Specified by:
andin interfaceConditionBuilder
-
andNot
Description copied from interface:ConditionBuilderAppend a newConditionto this builder, which must not evaluate to true in order for this compositeConditionto evaluate to true.- Specified by:
andNotin interfaceConditionBuilder
-
or
Description copied from interface:ConditionBuilderAppend a newConditionto this builder. If either this or the givenConditionevaluate to true, the compositeConditionwill evaluate to true.- Specified by:
orin interfaceConditionBuilder
-
orNot
Description copied from interface:ConditionBuilderAppend a newConditionto this builder. If either this evaluates to true or the givenConditionevaluates to false, the compositeConditionwill evaluate to true.- Specified by:
orNotin interfaceConditionBuilder
-