Class 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.
    For the moment, only string type is supported.
    Warning: PropertySet expressions can only be nested with others PropertySet expressions (not with FieldExpression)!
    See Also:
    Serialized Form
    • 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.
      • getKey

        public String getKey()
        Get the operator of the expression.
        Returns:
        The operator.
      • setKey

        public void setKey​(String key)
        Set the key to test agains.
        Parameters:
        key - The key.
      • getValue

        public Object getValue()
        Get the value to test agains.
        Returns:
        The value.
      • setValue

        public void setValue​(Object value)
        Set the value to test agains.
        Parameters:
        value - The value.
      • isNested

        public boolean isNested()
        Specified by:
        isNested in class com.opensymphony.workflow.query.Expression