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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    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

    Modifier and Type
    Method
    Description
    Get the operator of the expression.
    int
    Get the operator of the expression.
    int
    Get the type of the operand.
    Get the value to test agains.
    boolean
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • 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 Details

    • 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