public class Comparison extends Object implements MatchCriteria
| Constructor and Description |
|---|
Comparison(ParameterInstanceRef paraRef,
int intValue,
OperatorType op) |
Comparison(ParameterInstanceRef paraRef,
long longValue,
OperatorType op) |
Comparison(ParameterInstanceRef paraRef,
String stringValue,
OperatorType op)
Makes a new comparison with a generic stringValue
at this step the paraRef could be pointing to an unknown parameter.
|
| Modifier and Type | Method and Description |
|---|---|
OperatorType |
getComparisonOperator() |
Set<Parameter> |
getDependentParameters() |
Parameter |
getParameter() |
ParameterInstanceRef |
getParameterRef() |
String |
getStringValue() |
Object |
getValue() |
boolean |
isMet(CriteriaEvaluator evaluator) |
static String |
operatorToString(OperatorType op) |
void |
resolveValueType()
Called when the type of the parameter used for comparison is known,
so we have to find the value from stringValue that we can compare to it
|
static OperatorType |
stringToOperator(String s) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprintParsedMatchCriteriapublic Comparison(ParameterInstanceRef paraRef, String stringValue, OperatorType op)
paraRef - stringValue - op - public Comparison(ParameterInstanceRef paraRef, int intValue, OperatorType op)
public Comparison(ParameterInstanceRef paraRef, long longValue, OperatorType op)
public boolean isMet(CriteriaEvaluator evaluator)
isMet in interface MatchCriteriapublic void resolveValueType()
public ParameterInstanceRef getParameterRef()
public OperatorType getComparisonOperator()
public Set<Parameter> getDependentParameters()
getDependentParameters in interface MatchCriteriapublic static String operatorToString(OperatorType op)
public static OperatorType stringToOperator(String s)
public Parameter getParameter()
public Object getValue()
public String getStringValue()
Copyright © 2017 Space Applications Services. All rights reserved.