Class Condition

java.lang.Object
com.adobe.granite.taskmanagement.Condition
All Implemented Interfaces:
Cloneable

public class Condition extends Object implements Cloneable
Used to specify conditions in a Filter for a TaskManagement query
  • Constructor Details

    • Condition

      public Condition()
      Construct a new Condition instance with null property, comparisonOperator and comparisonValue fields.
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Get the name of the task property for this condition.
      Returns:
      the task property name.
    • setPropertyName

      public void setPropertyName(String aPropertyName)
      Set the name of the task property for this condition. you may either set a taskProperty or a #setTaskProperty not both
      Parameters:
      aPropertyName - the task property name.
    • getPropertyNames

      public String[] getPropertyNames()
      Gets the names of the task properties for this condition
      Returns:
      the task property names or null
    • setPropertyNames

      public void setPropertyNames(String... propertyNames)
      Set the names of the task properties for this condition. You may either use setPropertyNames(String...) or setTaskProperties(TaskProperty...) but not both.
      Parameters:
      propertyNames - the task property names
    • getTaskProperty

      public TaskProperty getTaskProperty()
      gets the taskProperty set for this condition
      Returns:
      the taskProperty
    • setTaskProperty

      public void setTaskProperty(TaskProperty taskProperty)
      sets a built-in task property for this condition. you may either set a taskProperty or a #setPropertyName not both
      Parameters:
      taskProperty - the built in task property for this condition
    • getTaskProperties

      public TaskProperty[] getTaskProperties()
      Gets the task properties set for this condition.
      Returns:
      the task properties
    • setTaskProperties

      public void setTaskProperties(TaskProperty... taskProperties)
      Sets built-in task properties for this condition. You may either use setTaskProperties(TaskProperty...) or setPropertyNames(String...) but not both.
      Parameters:
      taskProperties - the built-in task properties for this condition
    • getComparisonOperator

      public ComparisonOperator getComparisonOperator()
      Get the ComparisonOperator object for this condition.
      Returns:
      The ComparisonOperator for this condition or null if no ComparisonOperator has been set.
    • setComparisonOperator

      public void setComparisonOperator(ComparisonOperator aComparisonOperator)
      Set the ComparisonOperator object for this condition
      Parameters:
      aComparisonOperator - The ComparisonOperator object to set
    • getComparisonValue

      public Object getComparisonValue()
      Get the comparison value Object for this condition.
      Returns:
      The comparison value as an Object for this condition or null if no comparison value has been set.
    • setComparisonValue

      public void setComparisonValue(Object aComparisonValue)
      Set the comparison value Object for this condition
      Parameters:
      aComparisonValue - The comparison value Object to set
    • clone

      public Object clone() throws CloneNotSupportedException
      Throws:
      CloneNotSupportedException