org.drools.ruleflow.core.impl
Class ConstraintImpl

java.lang.Object
  extended by org.drools.ruleflow.core.impl.ConstraintImpl
All Implemented Interfaces:
java.io.Serializable, Constraint

public class ConstraintImpl
extends java.lang.Object
implements Constraint, java.io.Serializable

Default implementation of a constraint.

Author:
Kris Verlaenen
See Also:
Serialized Form

Constructor Summary
ConstraintImpl()
           
 
Method Summary
 java.lang.String getConstraint()
          Typically this method returns the constraint
 java.lang.String getName()
          Returns the name of the constraint
 int getPriority()
          Returns the priority of the constriant
 void setConstraint(java.lang.String constraint)
          Method for setting the constraint
 void setName(java.lang.String name)
          Sets the name of the constraint
 void setPriority(int priority)
          Method for setting the priority of the constraint
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintImpl

public ConstraintImpl()
Method Detail

getConstraint

public java.lang.String getConstraint()
Description copied from interface: Constraint
Typically this method returns the constraint

Specified by:
getConstraint in interface Constraint
Returns:
the constraint

setConstraint

public void setConstraint(java.lang.String constraint)
Description copied from interface: Constraint
Method for setting the constraint

Specified by:
setConstraint in interface Constraint
Parameters:
constraint - the constraint

getName

public java.lang.String getName()
Description copied from interface: Constraint
Returns the name of the constraint

Specified by:
getName in interface Constraint
Returns:
the name of the constraint

setName

public void setName(java.lang.String name)
Description copied from interface: Constraint
Sets the name of the constraint

Specified by:
setName in interface Constraint
Parameters:
name - the name of the constraint

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPriority

public int getPriority()
Description copied from interface: Constraint
Returns the priority of the constriant

Specified by:
getPriority in interface Constraint
Returns:
the priority of the constraint

setPriority

public void setPriority(int priority)
Description copied from interface: Constraint
Method for setting the priority of the constraint

Specified by:
setPriority in interface Constraint
Parameters:
priority - the priority of the constraint