|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.descr.BaseDescr
org.drools.lang.descr.RestrictionDescr
org.drools.lang.descr.EvaluatorBasedRestrictionDescr
public class EvaluatorBasedRestrictionDescr
This is a super class for all restrictions that are based on evaluators.
Constructor Summary | |
---|---|
EvaluatorBasedRestrictionDescr()
Creates a new EvaluatorBasedRestriction |
|
EvaluatorBasedRestrictionDescr(String evaluator,
boolean isNegated,
List<String> parameters)
Creates a new EvaluatorBasedRestriction |
|
EvaluatorBasedRestrictionDescr(String evaluator,
boolean isNegated,
String parameterText)
Creates a new EvaluatorBasedRestriction |
Method Summary | |
---|---|
String |
getEvaluator()
Returns the evaluator ID for this restriction |
List<String> |
getParameters()
|
String |
getParameterText()
In case there is any parameter text, this method returns it. |
boolean |
isNegated()
Returns true if this evaluator is boolean negated. |
void |
setEvaluator(String evaluator)
Sets the evaluator ID for this restriction |
void |
setNegated(boolean negated)
Sets if this evaluator is negated. |
void |
setParameters(List<String> parameters)
|
String |
toString()
|
Methods inherited from class org.drools.lang.descr.BaseDescr |
---|
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EvaluatorBasedRestrictionDescr()
public EvaluatorBasedRestrictionDescr(String evaluator, boolean isNegated, String parameterText)
evaluator
- the evaluator ID to be used in this restrictionisNegated
- true if the evaluator is boolean negatedparameterText
- the parameter text, in case there is any. null otherwise.public EvaluatorBasedRestrictionDescr(String evaluator, boolean isNegated, List<String> parameters)
evaluator
- the evaluator ID to be used in this restrictionisNegated
- true if the evaluator is boolean negatedparameterText
- the list of parameters texts, in case there is any. null otherwise.Method Detail |
---|
public String getEvaluator()
public boolean isNegated()
public String getParameterText()
public List<String> getParameters()
public void setParameters(List<String> parameters)
public void setEvaluator(String evaluator)
public void setNegated(boolean negated)
negated
- the negatedpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |