public class GenericCriteria extends Object
Constructor and Description |
---|
GenericCriteria(ProjectProperties properties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCriteria(GenericCriteria criteria)
Adds 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() |
public GenericCriteria(ProjectProperties properties)
properties
- project propertiespublic void setLeftValue(FieldType value)
value
- LHS valuepublic FieldType getLeftValue()
public TestOperator getOperator()
public void setOperator(TestOperator operator)
operator
- test operatorpublic void setRightValue(int index, Object value)
index
- position in the listvalue
- evaluation valuepublic Object getValue(int index)
index
- position in the listpublic boolean evaluate(FieldContainer container, Map<GenericCriteriaPrompt,Object> promptValues)
container
- field containerpromptValues
- responses to promptspublic List<GenericCriteria> getCriteriaList()
public void addCriteria(GenericCriteria criteria)
criteria
- criteria item to addCopyright © 2000–2024 Packwood Software. All rights reserved.