Package org.drools.model.constraints
Class OrConstraints
- java.lang.Object
-
- org.drools.model.constraints.AbstractConstraint
-
- org.drools.model.constraints.OrConstraints
-
- All Implemented Interfaces:
Constraint,ModelComponent
public class OrConstraints extends AbstractConstraint implements ModelComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.Constraint
Constraint.Type
-
-
Constructor Summary
Constructors Constructor Description OrConstraints(java.util.List<Constraint> constraints)OrConstraints(Constraint... constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Constraint>getChildren()Constraint.TypegetType()booleanisEqualTo(ModelComponent o)Constraintnegate()OrConstraintsor(Constraint constraint)OrConstraintsreplaceVariable(Variable oldVar, Variable newVar)java.lang.StringtoString()-
Methods inherited from class org.drools.model.constraints.AbstractConstraint
and, cloneConstraint, with
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.model.Constraint
predicateInformation
-
-
-
-
Constructor Detail
-
OrConstraints
public OrConstraints(java.util.List<Constraint> constraints)
-
OrConstraints
public OrConstraints(Constraint... constraints)
-
-
Method Detail
-
or
public OrConstraints or(Constraint constraint)
- Overrides:
orin classAbstractConstraint
-
getChildren
public java.util.List<Constraint> getChildren()
- Specified by:
getChildrenin interfaceConstraint
-
getType
public Constraint.Type getType()
- Specified by:
getTypein interfaceConstraint
-
isEqualTo
public boolean isEqualTo(ModelComponent o)
- Specified by:
isEqualToin interfaceModelComponent
-
negate
public Constraint negate()
- Specified by:
negatein interfaceConstraint
-
replaceVariable
public OrConstraints replaceVariable(Variable oldVar, Variable newVar)
- Specified by:
replaceVariablein interfaceConstraint
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-