Package org.ametys.plugins.workflow
Class PropertySetExpression
java.lang.Object
com.opensymphony.workflow.query.Expression
org.ametys.plugins.workflow.PropertySetExpression
- All Implemented Interfaces:
Serializable
PropertySet expressions are used when constructing a workflow query
on a property associated with a workflow.
PropertySet expressions have three attributes.
These are:
Warning: PropertySet expressions can only be nested with others PropertySet expressions (not with FieldExpression)!
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:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant for the equality operator.static final int
Constant for the wildcard equality operator.Fields inherited from class com.opensymphony.workflow.query.Expression
negate
-
Constructor Summary
ConstructorDescriptionPropertySetExpression
(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
Modifier and TypeMethodDescriptiongetKey()
Get the operator of the expression.int
Get the operator of the expression.int
getType()
Get the type of the operand.getValue()
Get the value to test agains.boolean
isNested()
void
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
Set the value to test agains.Methods inherited from class com.opensymphony.workflow.query.Expression
isNegate
-
Field Details
-
EQUALS
Constant for the equality operator.- See Also:
-
WILDCARD_EQUALS
Constant for the wildcard equality operator.- See Also:
-
-
Constructor Details
-
PropertySetExpression
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
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 Details
-
getOperator
Get the operator of the expression.- Returns:
- The operator.
-
setOperator
Set the operator of the expression.- Parameters:
operator
- The operator.
-
getType
Get the type of the operand.- Returns:
- The type.
-
setType
Set the type of the operand.- Parameters:
type
- The type.
-
getKey
Get the operator of the expression.- Returns:
- The operator.
-
setKey
Set the key to test agains.- Parameters:
key
- The key.
-
getValue
Get the value to test agains.- Returns:
- The value.
-
setValue
Set the value to test agains.- Parameters:
value
- The value.
-
isNested
- Specified by:
isNested
in classcom.opensymphony.workflow.query.Expression
-