|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.mpxj.GenericCriteria
public abstract class GenericCriteria
This class represents the criteria used as part of an evaluation.
| Constructor Summary | |
|---|---|
GenericCriteria(ProjectFile projectFile)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
evaluateCriteria(FieldContainer container)
Evaluate the criteria and return a boolean result. |
FieldType |
getField()
Retrieves the field used as the RHS of the expression. |
TestOperator |
getOperator()
Retrieve the operator used in the test. |
java.lang.Object |
getValue(int index)
Retrieve the first value. |
void |
setField(FieldType field)
Sets the field used as the LHS of the expression. |
void |
setOperator(TestOperator operator)
Set the operator used in the test. |
void |
setValue(int index,
java.lang.Object value)
Add the value to list of values to be used as part of the evaluation of this indicator. |
java.lang.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 setField(FieldType field)
field - field typepublic FieldType getField()
public TestOperator getOperator()
public void setOperator(TestOperator operator)
operator - test operator
public void setValue(int index,
java.lang.Object value)
index - position in the listvalue - evaluation valuepublic java.lang.Object getValue(int index)
index - position in the list
protected boolean evaluateCriteria(FieldContainer container)
container - field container
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||