Package org.drools.base.rule
Class MutableTypeConstraint
- java.lang.Object
-
- org.drools.base.rule.MutableTypeConstraint
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,java.lang.Cloneable,AlphaNodeFieldConstraint,BetaNodeFieldConstraint,Constraint,RuleComponent
- Direct Known Subclasses:
PredicateConstraint,XpathConstraint
public abstract class MutableTypeConstraint extends java.lang.Object implements AlphaNodeFieldConstraint, BetaNodeFieldConstraint, java.io.Externalizable
A base class for constraints- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.base.rule.constraint.Constraint
Constraint.ConstraintType
-
-
Constructor Summary
Constructors Constructor Description MutableTypeConstraint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MutableTypeConstraintclone()Clones the constraintMutableTypeConstraintcloneIfInUse()Clone this constraints only if it is already used by a different node, otherwise returns thisConstraint.ConstraintTypegetType()Returns the type of the constraint, either ALPHA, BETA or UNKNOWNvoidreadExternal(java.io.ObjectInput in)booleansetInUse()voidsetType(Constraint.ConstraintType type)voidwriteExternal(java.io.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.base.rule.constraint.AlphaNodeFieldConstraint
isAllowed
-
Methods inherited from interface org.drools.base.rule.constraint.BetaNodeFieldConstraint
createContextEntry, isAllowedCachedLeft, isAllowedCachedRight
-
Methods inherited from interface org.drools.base.rule.constraint.Constraint
addPackageNames, equals, getListenedPropertyMask, getListenedPropertyMask, getPackageNames, getRequiredDeclarations, isTemporal, mergeEvaluationContext, registerEvaluationContext, replaceDeclaration
-
-
-
-
Method Detail
-
setType
public void setType(Constraint.ConstraintType type)
-
getType
public Constraint.ConstraintType getType()
Description copied from interface:ConstraintReturns the type of the constraint, either ALPHA, BETA or UNKNOWN- Specified by:
getTypein interfaceConstraint- Returns:
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
clone
public abstract MutableTypeConstraint clone()
Description copied from interface:ConstraintClones the constraint- Specified by:
clonein interfaceConstraint- Overrides:
clonein classjava.lang.Object- Returns:
-
cloneIfInUse
public MutableTypeConstraint cloneIfInUse()
Description copied from interface:AlphaNodeFieldConstraintClone this constraints only if it is already used by a different node, otherwise returns this- Specified by:
cloneIfInUsein interfaceAlphaNodeFieldConstraint- Specified by:
cloneIfInUsein interfaceBetaNodeFieldConstraint
-
setInUse
public boolean setInUse()
-
-