public abstract class AbstractActionCondition extends Object implements ActionCondition
Modifier and Type | Field and Description |
---|---|
protected String |
m_LeftOperand |
protected String |
m_Operation |
protected String |
m_RightOperand |
Constructor and Description |
---|
AbstractActionCondition()
Constructs an ActionCondition initializing the validity check support.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addOperation(String operation)
Adds an operation to the valid list of operations.
|
String |
getLeftOperand()
Returns the left operand.
|
String |
getOperation()
Returns the current operation.
|
String |
getRightOperand()
Returns the right operand.
|
void |
setLeftOperand(String operand)
Sets the left operand for the current operation.
|
void |
setOperation(String operation)
Sets the operation to perform on the left and right operands.
|
void |
setRightOperand(String operand)
Sets the right operand for the current operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate
protected String m_Operation
protected String m_LeftOperand
protected String m_RightOperand
public AbstractActionCondition()
public String getLeftOperand()
getLeftOperand
in interface ActionCondition
public String getRightOperand()
getRightOperand
in interface ActionCondition
public String getOperation()
getOperation
in interface ActionCondition
public void setLeftOperand(String operand)
setLeftOperand
in interface ActionCondition
operand
- String specifying the left operand.public void setRightOperand(String operand)
setRightOperand
in interface ActionCondition
operand
- String specifying the right operand.public void setOperation(String operation)
setOperation
in interface ActionCondition
operation
- String specifying the operation.IllegalArgumentException
- If an invalid operation is specified.protected void addOperation(String operation)
operation
- String A supported operation.Copyright © 2023. All rights reserved.