public class DescriptionFilter extends AbstractTaskFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
RULE_CONTAINS
Rule requiring given content to be part of task property.
|
static int |
RULE_CONTAINS_NOT
Rule requiring given content not to be part of task property.
|
| Constructor and Description |
|---|
DescriptionFilter()
Creates new default description filter which is preset to RULE_CONTAINS
content rule and no text.
|
DescriptionFilter(int contentRule,
java.lang.String subString)
Creates new description filter.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
filterTasks(java.util.Vector tasks)
Applies description filter on given tasks and returns those tasks
that satisfied filter criterion.
|
java.util.Vector |
getContentRules()
Returns both available content rules of description filter.
|
java.lang.String |
toString()
Returns name of filter as text.
|
getContent, getContentRule, getContentValues, setContent, setContentRulepublic static final int RULE_CONTAINS
public static final int RULE_CONTAINS_NOT
public DescriptionFilter(int contentRule,
java.lang.String subString)
contentRule - One of two content rules determining allowed content in task description.subString - Text that must/mustn't be present in task description.public DescriptionFilter()
public java.util.Vector getContentRules()
getContentRules in class AbstractTaskFilterpublic java.util.Vector filterTasks(java.util.Vector tasks)
filterTasks in class AbstractTaskFiltertasks - Vector of tasks to be filtered.public java.lang.String toString()
toString in class AbstractTaskFilter