Drools :: Core 6.1.0.Beta1

org.drools.core.rule
Class MutableTypeConstraint

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

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.core.spi.Constraint
Constraint.ConstraintType
 
Constructor Summary
MutableTypeConstraint()
           
 
Method Summary
abstract  MutableTypeConstraint clone()
          Clones the constraint
 MutableTypeConstraint cloneIfInUse()
          Clone this constraints only if it is already used by a different node, otherwise returns this
 Constraint.ConstraintType getType()
          Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
 void readExternal(ObjectInput in)
           
 boolean setInUse()
           
 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.core.spi.AlphaNodeFieldConstraint
createContextEntry, isAllowed
 
Methods inherited from interface org.drools.core.spi.BetaNodeFieldConstraint
createContextEntry, isAllowedCachedLeft, isAllowedCachedRight
 
Methods inherited from interface org.drools.core.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 MutableTypeConstraint clone()
Description copied from interface: Constraint
Clones the constraint

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

cloneIfInUse

public MutableTypeConstraint cloneIfInUse()
Description copied from interface: AlphaNodeFieldConstraint
Clone this constraints only if it is already used by a different node, otherwise returns this

Specified by:
cloneIfInUse in interface AlphaNodeFieldConstraint
Specified by:
cloneIfInUse in interface BetaNodeFieldConstraint

setInUse

public boolean setInUse()

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.