public class Rule
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
COMPLEX_RULE
Type code for a complex rule (can be any expression).
|
static java.lang.Long |
SIMPLE_RULE
Type code for a simple rule (consists of left operand, operator, and right operand).
|
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression()
Gets the expression, which should evaluate to a boolean.
|
java.lang.String |
getLeftOperand()
Gets the left operand in a simple rule.
|
java.lang.String |
getOperator()
Gets the operator in a simple rule.
|
java.lang.String |
getRightOperand()
Gets the right operand in a simple rule.
|
java.lang.Long |
getType()
Gets the type of the rule (either
SIMPLE_RULE or COMPLEX_RULE ). |
void |
setExpression(java.lang.String expression_)
Sets the expression, which should evaluate to a boolean.
|
void |
setLeftOperand(java.lang.String leftOperand_)
Sets the left operand in a simple rule.
|
void |
setOperator(java.lang.String operator_)
Sets the operator in a simple rule.
|
void |
setRightOperand(java.lang.String rightOperand_)
Sets the right operand in a simple rule.
|
void |
setType(java.lang.Long type_)
Sets the type of the rule (either
SIMPLE_RULE or COMPLEX_RULE ). |
public static final java.lang.Long SIMPLE_RULE
public static final java.lang.Long COMPLEX_RULE
public java.lang.String getExpression()
getType()
returns COMPLEX_RULE
.
Otherwise, this will return null
.setExpression(String)
public void setExpression(java.lang.String expression_)
getType()
returns COMPLEX_RULE
.expression_
- the expressiongetExpression()
public java.lang.String getLeftOperand()
getType()
returns SIMPLE_RULE
.
Otherwise, this will return null
.setLeftOperand(String)
public void setLeftOperand(java.lang.String leftOperand_)
getType()
returns SIMPLE_RULE
.leftOperand_
- the left operandgetLeftOperand()
public java.lang.String getOperator()
getType()
returns SIMPLE_RULE
.
Otherwise, this will return null
.setOperator(String)
public void setOperator(java.lang.String operator_)
getType()
returns SIMPLE_RULE
.operator_
- the operatorgetOperator()
public java.lang.String getRightOperand()
getType()
returns SIMPLE_RULE
.
Otherwise, this will return null
.setRightOperand(String)
public void setRightOperand(java.lang.String rightOperand_)
getType()
returns SIMPLE_RULE
.rightOperand_
- the right operandgetRightOperand()
public java.lang.Long getType()
SIMPLE_RULE
or COMPLEX_RULE
).setType(Long)
public void setType(java.lang.Long type_)
SIMPLE_RULE
or COMPLEX_RULE
).type_
- the typegetType()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.