public class PropertySetExpression extends com.opensymphony.workflow.query.Expression
Modifier and Type | Field and Description |
---|---|
private String |
_key |
private int |
_operator |
private int |
_type |
private Object |
_value |
static int |
EQUALS
Constant for the equality operator.
|
static int |
WILDCARD_EQUALS
Constant for the wildcard equality operator.
|
Constructor and Description |
---|
PropertySetExpression(int operator,
int type,
String key,
Object value)
Create a property set expression.
|
PropertySetExpression(int operator,
int type,
String key,
Object value,
boolean isNegated)
Create a negative property set expression.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get the operator of the expression.
|
int |
getOperator()
Get the operator of the expression.
|
int |
getType()
Get the type of the operand.
|
Object |
getValue()
Get the value to test agains.
|
boolean |
isNested() |
void |
setKey(String key)
Set the key to test agains.
|
void |
setOperator(int operator)
Set the operator of the expression.
|
void |
setType(int type)
Set the type of the operand.
|
void |
setValue(Object value)
Set the value to test agains.
|
public static final int EQUALS
public static final int WILDCARD_EQUALS
private int _type
private int _operator
public PropertySetExpression(int operator, int type, String key, Object value)
operator
- The operator.type
- The type of the operand.key
- The item key to test agains.value
- The operand value.public PropertySetExpression(int operator, int type, String key, Object value, boolean isNegated)
operator
- The operator.type
- The type of the operand.key
- The item key to test agains.value
- The operand value.isNegated
- The negative state of the operator.public int getOperator()
public void setOperator(int operator)
operator
- The operator.public int getType()
public void setType(int type)
type
- The type.public void setValue(Object value)
value
- The value.public boolean isNested()
isNested
in class com.opensymphony.workflow.query.Expression