org.drools.rule
Class MutableTypeConstraint
java.lang.Object
org.drools.rule.MutableTypeConstraint
- All Implemented Interfaces:
- Externalizable, Serializable, Cloneable, AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Constraint, RuleComponent
- Direct Known Subclasses:
- AbstractCompositeConstraint, PredicateConstraint, ReturnValueConstraint, VariableConstraint
public abstract class MutableTypeConstraint
- extends Object
- implements AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Externalizable
A base class for constraints
- See Also:
- Serialized Form
MutableTypeConstraint
public MutableTypeConstraint()
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-2012 JBoss by Red Hat. All Rights Reserved.