Package org.ametys.plugins.workflow
Class PropertySetExpression
- java.lang.Object
-
- com.opensymphony.workflow.query.Expression
-
- org.ametys.plugins.workflow.PropertySetExpression
-
- All Implemented Interfaces:
Serializable
public class PropertySetExpression extends com.opensymphony.workflow.query.Expression
PropertySet expressions are used when constructing a workflow query on a property associated with a workflow.
PropertySet expressions have three attributes.
These are:- operator: This is the operator to apply on the expression.
- type: The PropertySet item type to test agains.
- key: The PropertySet item key to test agains.
Warning: PropertySet expressions can only be nested with others PropertySet expressions (not with FieldExpression)!- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
EQUALS
public static final int EQUALS
Constant for the equality operator.- See Also:
- Constant Field Values
-
WILDCARD_EQUALS
public static final int WILDCARD_EQUALS
Constant for the wildcard equality operator.- See Also:
- Constant Field Values
-
_type
private int _type
-
_operator
private int _operator
-
-
Constructor Detail
-
PropertySetExpression
public PropertySetExpression(int operator, int type, String key, Object value)
Create a property set expression.- Parameters:
operator
- The operator.type
- The type of the operand.key
- The item key to test agains.value
- The operand value.
-
PropertySetExpression
public PropertySetExpression(int operator, int type, String key, Object value, boolean isNegated)
Create a negative property set expression.- Parameters:
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.
-
-
Method Detail
-
getOperator
public int getOperator()
Get the operator of the expression.- Returns:
- The operator.
-
setOperator
public void setOperator(int operator)
Set the operator of the expression.- Parameters:
operator
- The operator.
-
getType
public int getType()
Get the type of the operand.- Returns:
- The type.
-
setType
public void setType(int type)
Set the type of the operand.- Parameters:
type
- The type.
-
setValue
public void setValue(Object value)
Set the value to test agains.- Parameters:
value
- The value.
-
isNested
public boolean isNested()
- Specified by:
isNested
in classcom.opensymphony.workflow.query.Expression
-
-