|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.GenericCriteria
public class GenericCriteria
This class represents the criteria used as part of an evaluation.
| Constructor Summary | |
|---|---|
GenericCriteria(ProjectFile projectFile)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addCriteria(GenericCriteria criteria)
Adds a an item to the list of child criteria. |
boolean |
evaluate(FieldContainer container,
Map<GenericCriteriaPrompt,Object> promptValues)
Evaluate the criteria and return a boolean result. |
List<GenericCriteria> |
getCriteriaList()
Retrieves the list of child criteria associated with the current criteria. |
FieldType |
getLeftValue()
Retrieves the LHS of the expression. |
TestOperator |
getOperator()
Retrieve the operator used in the test. |
Object |
getValue(int index)
Retrieve the first value. |
void |
setLeftValue(FieldType value)
Sets the LHS of the expression. |
void |
setOperator(TestOperator operator)
Set the operator used in the test. |
void |
setRightValue(int index,
Object value)
Add the value to list of values to be used as part of the evaluation of this indicator. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericCriteria(ProjectFile projectFile)
projectFile - parent project file| Method Detail |
|---|
public void setLeftValue(FieldType value)
value - LHS valuepublic FieldType getLeftValue()
public TestOperator getOperator()
public void setOperator(TestOperator operator)
operator - test operator
public void setRightValue(int index,
Object value)
index - position in the listvalue - evaluation valuepublic Object getValue(int index)
index - position in the list
public boolean evaluate(FieldContainer container,
Map<GenericCriteriaPrompt,Object> promptValues)
container - field containerpromptValues - responses to prompts
public List<GenericCriteria> getCriteriaList()
public void addCriteria(GenericCriteria criteria)
criteria - criteria item to addpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||