|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.Criteria
public class Criteria
Class Criteria manages a list of comparison values and their translations to status levels.
Constructor Summary | |
---|---|
Criteria()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Criteria()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |