Package com.adobe.granite.taskmanagement
Class Condition
java.lang.Object
com.adobe.granite.taskmanagement.Condition
- All Implemented Interfaces:
Cloneable
Used to specify conditions in a
Filter for a TaskManagement query-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new Condition instance with null property, comparisonOperator and comparisonValue fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()Get the ComparisonOperator object for this condition.Get the comparison value Object for this condition.Get the name of the task property for this condition.String[]Gets the names of the task properties for this conditionGets the task properties set for this condition.gets the taskProperty set for this conditionvoidsetComparisonOperator(ComparisonOperator aComparisonOperator) Set the ComparisonOperator object for this conditionvoidsetComparisonValue(Object aComparisonValue) Set the comparison value Object for this conditionvoidsetPropertyName(String aPropertyName) Set the name of the task property for this condition.voidsetPropertyNames(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.
-
Constructor Details
-
Condition
public Condition()Construct a new Condition instance with null property, comparisonOperator and comparisonValue fields.
-
-
Method Details
-
getPropertyName
Get the name of the task property for this condition.- Returns:
- the task property name.
-
setPropertyName
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
Gets the names of the task properties for this condition- Returns:
- the task property names or
null
-
setPropertyNames
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
gets the taskProperty set for this condition- Returns:
- the taskProperty
-
setTaskProperty
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
Gets the task properties set for this condition.- Returns:
- the task properties
-
setTaskProperties
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
Get the ComparisonOperator object for this condition.- Returns:
- The ComparisonOperator for this condition or null if no ComparisonOperator has been set.
-
setComparisonOperator
Set the ComparisonOperator object for this condition- Parameters:
aComparisonOperator- The ComparisonOperator object to set
-
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
Set the comparison value Object for this condition- Parameters:
aComparisonValue- The comparison value Object to set
-
clone
- Throws:
CloneNotSupportedException
-