public class Criteria
extends java.lang.Object
Constructor and Description |
---|
Criteria() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Comparison cObj)
Adds the given Comparison object to this object's list.
|
boolean |
add(StatusLevelTag statusLevel,
java.lang.Object value)
Adds a Comparison object containing the given parameters to this
object's list.
|
java.util.Vector |
getComparisonSet()
Returns the Vector of 'Comparison' objects that make up the
comparison set for this criteria.
|
java.lang.Class |
getValueClass()
Returns the class type object for the values in the
comparison list, or null if no objects exist in the list.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
StatusLevelTag |
valueToStatus(java.lang.Object value)
Translates the given value to a status level using this object's
list of Comparison objects.
|
public boolean add(StatusLevelTag statusLevel, java.lang.Object value)
statusLevel
- handle of a StatusLevelTag object.value
- an object containing the value to
be associated with the given status level (such as an 'Integer',
'Double', etc.)public boolean add(Comparison cObj)
cObj
- the Comparison object.public StatusLevelTag valueToStatus(java.lang.Object value)
value
- an object containing the value to be translated.java.lang.ClassCastException
- if the given object's type prevents
it from being compared to the objects in the list.public java.lang.Class getValueClass()
public java.util.Vector getComparisonSet()
public java.lang.String toString()
toString
in class java.lang.Object