|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.CriteriaTable
public class CriteriaTable
Class CriteriaTable manages a table of Criteria objects (to be associated with a dynamic parameter).
Constructor Summary | |
---|---|
CriteriaTable()
|
Method Summary | |
---|---|
boolean |
add(UsageLevelTag usageLevel,
Criteria criteriaObj)
Adds a usage-level / criteria pair to the table. |
Criteria |
get(int usageValue)
Returns Criteria object associated with the given numeric usage-level value. |
Criteria |
get(UsageLevelTag usageLevel)
Returns Criteria object associated with the given usage-level. |
UsageLevelTag |
getUsageLevelTag(int usageValue)
Returns the UsageLevelTag object associated with the given numeric usage-level value (if it is used in this object's table). |
java.lang.Class |
getValueClass()
Returns the class type object for the values used in the table. |
java.lang.String |
toString()
Returns a string representation of this object. |
StatusLevelTag |
useValToStatus(int usageValue,
java.lang.Object value)
Translates the given usage-level value and the given value to a status level. |
StatusLevelTag |
useValToStatus(UsageLevelTag usageLevel,
java.lang.Object value)
Translates the given usage-level and value to a status level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CriteriaTable()
Method Detail |
---|
public boolean add(UsageLevelTag usageLevel, Criteria criteriaObj)
usageLevel
- usage level of pair to be added.criteriaObj
- criteria object of pair to be added.
public Criteria get(UsageLevelTag usageLevel)
usageLevel
- usage level to match.
public Criteria get(int usageValue)
usageValue
- usage value to match.
public UsageLevelTag getUsageLevelTag(int usageValue)
usageValue
- usage value to match.
public StatusLevelTag useValToStatus(UsageLevelTag usageLevel, java.lang.Object value)
usageLevel
- the handle of UsageLevelTag object.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 StatusLevelTag useValToStatus(int usageValue, java.lang.Object value)
usageValue
- a value corresponding to a usage-level.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.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 |