站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

Constraint (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.ruleflow.core.impl
Class Constraint

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

public class Constraint
extends Object
implements IConstraint, Serializable

Default implementation of a constraint.

Author:
Kris Verlaenen
See Also:
Serialized Form

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

Constructor Detail

Constraint

public Constraint()
Method Detail

getConstraint

public String getConstraint()
Description copied from interface: IConstraint
Typically this method returns the constraint

Specified by:
getConstraint in interface IConstraint
Returns:
the constraint

setConstraint

public void setConstraint(String constraint)
Description copied from interface: IConstraint
Method for setting the constraint

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

getName

public String getName()
Description copied from interface: IConstraint
Returns the name of the constraint

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

setName

public void setName(String name)
Description copied from interface: IConstraint
Sets the name of the constraint

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

toString

public String toString()
Overrides:
toString in class Object

getPriority

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

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

setPriority

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

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


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