org.drools.rule
Class MutableTypeConstraint

java.lang.Object
  extended by org.drools.rule.MutableTypeConstraint
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Constraint, RuleComponent
Direct Known Subclasses:
AbstractCompositeConstraint, MultiRestrictionFieldConstraint, PredicateConstraint, ReturnValueConstraint, VariableConstraint

public abstract class MutableTypeConstraint
extends java.lang.Object
implements AlphaNodeFieldConstraint, BetaNodeFieldConstraint

A base class for constraints

Author:
etirelli
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.drools.spi.Constraint
Constraint.ConstraintType
 
Constructor Summary
MutableTypeConstraint()
           
 
Method Summary
abstract  java.lang.Object clone()
          Clones the constraint
 Constraint.ConstraintType getType()
          Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
 void setType(Constraint.ConstraintType type)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.spi.AlphaNodeFieldConstraint
createContextEntry, isAllowed
 
Methods inherited from interface org.drools.spi.BetaNodeFieldConstraint
createContextEntry, isAllowedCachedLeft, isAllowedCachedRight
 
Methods inherited from interface org.drools.spi.Constraint
getRequiredDeclarations, replaceDeclaration
 

Constructor Detail

MutableTypeConstraint

public MutableTypeConstraint()
Method Detail

setType

public void setType(Constraint.ConstraintType type)

getType

public Constraint.ConstraintType getType()
Description copied from interface: Constraint
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN

Specified by:
getType in interface Constraint
Returns:

clone

public abstract java.lang.Object clone()
Description copied from interface: Constraint
Clones the constraint

Specified by:
clone in interface Constraint
Overrides:
clone in class java.lang.Object
Returns: