Package com.adobe.granite.taskmanagement
Class Condition
- java.lang.Object
 - 
- com.adobe.granite.taskmanagement.Condition
 
 
- 
- All Implemented Interfaces:
 java.lang.Cloneable
public class Condition extends java.lang.Object implements java.lang.CloneableUsed to specify conditions in aFilterfor a TaskManagement query 
- 
- 
Constructor Summary
Constructors Constructor Description Condition()Construct a new Condition instance with null property, comparisonOperator and comparisonValue fields. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()ComparisonOperatorgetComparisonOperator()Get the ComparisonOperator object for this condition.java.lang.ObjectgetComparisonValue()Get the comparison value Object for this condition.java.lang.StringgetPropertyName()Get the name of the task property for this condition.java.lang.String[]getPropertyNames()Gets the names of the task properties for this conditionTaskProperty[]getTaskProperties()Gets the task properties set for this condition.TaskPropertygetTaskProperty()gets the taskProperty set for this conditionvoidsetComparisonOperator(ComparisonOperator aComparisonOperator)Set the ComparisonOperator object for this conditionvoidsetComparisonValue(java.lang.Object aComparisonValue)Set the comparison value Object for this conditionvoidsetPropertyName(java.lang.String aPropertyName)Set the name of the task property for this condition.voidsetPropertyNames(java.lang.String... propertyNames)Set the names of the task properties for this condition.voidsetTaskProperties(TaskProperty... taskProperties)Sets built-in task properties for this condition.voidsetTaskProperty(TaskProperty taskProperty)sets a built-in task property for this condition. 
 - 
 
- 
- 
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 
 
- 
setPropertyNames
public void setPropertyNames(java.lang.String... propertyNames)
Set the names of the task properties for this condition. You may either usesetPropertyNames(String...)orsetTaskProperties(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 usesetTaskProperties(TaskProperty...)orsetPropertyNames(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 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
 
 - 
 
 -