Class Condition

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Condition
    extends java.lang.Object
    implements java.lang.Cloneable
    Used to specify conditions in a Filter for a TaskManagement query
    • Constructor Detail

      • Condition

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

      • getPropertyName

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

        public void setPropertyName​(java.lang.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 java.lang.String[] getPropertyNames()
        Gets the names of the task properties for this condition
        Returns:
        the task property names or null
      • 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
      • 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 java.lang.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​(java.lang.Object aComparisonValue)
        Set the comparison value Object for this condition
        Parameters:
        aComparisonValue - The comparison value Object to set
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException