org.drools.rule
Class MutableTypeConstraint

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

public abstract class MutableTypeConstraint
extends Object
implements AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Externalizable

A base class for constraints

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  Object clone()
          Clones the constraint
 Constraint.ConstraintType getType()
          Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
 void readExternal(ObjectInput in)
           
 void setType(Constraint.ConstraintType type)
           
 void writeExternal(ObjectOutput out)
           
 
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, isTemporal, 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:

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

clone

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

Specified by:
clone in interface Constraint
Overrides:
clone in class Object
Returns:


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.