public abstract class CompareCondition extends Condition
| Modifier and Type | Field and Description |
|---|---|
protected String |
operand1 |
protected String |
operand2 |
protected ComparisonOperator |
operator |
| Constructor and Description |
|---|
CompareCondition() |
CompareCondition(String op1,
String op2) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDependenciesDetails() |
String |
getLeftOperand() |
ComparisonOperator |
getOperator() |
String |
getRightOperand() |
void |
makeXMLData(IXMLElement conditionRoot)
This element will be called by the RulesEngine to serialize the configuration
of a condition into XML.
|
void |
readFromXML(IXMLElement xmlcondition)
Parse and initialize this condition from parsed values.
|
void |
setLeftOperand(String value) |
void |
setOperator(ComparisonOperator operator) |
void |
setRightOperand(String value) |
getId, getInstallData, getVarRefs, isTrue, setId, setInstallDataprotected String operand1
protected String operand2
protected ComparisonOperator operator
public String getLeftOperand()
public void setLeftOperand(String value)
public String getRightOperand()
public void setRightOperand(String value)
public ComparisonOperator getOperator()
public void setOperator(ComparisonOperator operator)
public void readFromXML(IXMLElement xmlcondition) throws Exception
ConditionreadFromXML in class Conditionxmlcondition - the root element to parse fromException - on a parse errorpublic String getDependenciesDetails()
getDependenciesDetails in class Conditionpublic void makeXMLData(IXMLElement conditionRoot)
ConditionmakeXMLData in class ConditionconditionRoot - the root element for this conditionCopyright © 2001–2025. All rights reserved.