public class CriteriaTable
extends java.lang.Object
Constructor and Description |
---|
CriteriaTable() |
Modifier and Type | Method and Description |
---|---|
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.
|
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