|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.Filter
public class Filter
This class represents a filter which may be applied to a task or resource view.
| Constructor Summary | |
|---|---|
Filter()
|
|
| Method Summary | |
|---|---|
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 associted 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Filter()
| Method Detail |
|---|
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 flag
public boolean evaluate(FieldContainer container,
Map<GenericCriteriaPrompt,Object> promptValues)
container - Task or Resource instancepromptValues - respose to prompts
public void setPrompts(List<GenericCriteriaPrompt> prompts)
prompts - filter promptspublic List<GenericCriteriaPrompt> getPrompts()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||