public final class Filter extends Object
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(FieldContainer container,
Map<GenericCriteriaPrompt,Object> promptValues)
Evaluates the filter, returns true if the supplied Task or Resource
instance matches the filter criteria.
|
GenericCriteria |
getCriteria()
Retrieve the criteria used to define this filter.
|
Integer |
getID()
Retrieves the filter's unique ID.
|
String |
getName()
Retrieves the filter's name.
|
List<GenericCriteriaPrompt> |
getPrompts()
Retrieves the prompts required to supply parameters to this filter.
|
boolean |
getShowRelatedSummaryRows()
Retrieves the "show related summary rows" flag.
|
boolean |
isResourceFilter()
Retrieves a flag indicating if this is a resource filter.
|
boolean |
isTaskFilter()
Retrieves a flag indicating if this is a task filter.
|
void |
setCriteria(GenericCriteria criteria)
Sets the criteria associated with this filter.
|
void |
setID(Integer id)
Sets the filter's unique ID.
|
void |
setIsResourceFilter(boolean flag)
Sets the flag indicating if this is a resource filter.
|
void |
setIsTaskFilter(boolean flag)
Sets the flag indicating if this is a task filter.
|
void |
setName(String name)
Sets the filter's name.
|
void |
setPrompts(List<GenericCriteriaPrompt> prompts)
Sets the prompts to supply the parameters required by this filter.
|
void |
setShowRelatedSummaryRows(boolean showRelatedSummaryRows)
Sets the "show related summary rows" flag.
|
String |
toString() |
public void setID(Integer id)
id
- unique IDpublic Integer getID()
public void setName(String name)
name
- filter namepublic String getName()
public void setShowRelatedSummaryRows(boolean showRelatedSummaryRows)
showRelatedSummaryRows
- boolean flagpublic boolean getShowRelatedSummaryRows()
public void setCriteria(GenericCriteria criteria)
criteria
- filter criteriapublic GenericCriteria getCriteria()
public boolean isTaskFilter()
public void setIsTaskFilter(boolean flag)
flag
- task filter flagpublic boolean isResourceFilter()
public void setIsResourceFilter(boolean flag)
flag
- resource filter flagpublic boolean evaluate(FieldContainer container, Map<GenericCriteriaPrompt,Object> promptValues)
container
- Task or Resource instancepromptValues
- response to promptspublic void setPrompts(List<GenericCriteriaPrompt> prompts)
prompts
- filter promptspublic List<GenericCriteriaPrompt> getPrompts()
Copyright © 2000–2024 Packwood Software. All rights reserved.