|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.RuleSet
public class RuleSet
Class RuleSet manages a table of CriteriaTable objects which map to dynamic parameters. Each station will have one RuleSet object.
Constructor Summary | |
---|---|
RuleSet(java.lang.String name)
Creates a rule set object. |
Method Summary | |
---|---|
boolean |
add(java.lang.String paramName,
CriteriaTable cTable)
Adds a dynamic-parameter-name / CriteriaTable pair to the rule-set table. |
boolean |
add(java.lang.String paramName,
UsageLevelTag usageLevel,
Criteria criteriaObj)
Adds a usage-level / criteria pair to the CriteriaTable for the given dynamic-parameter-name. |
boolean |
containsParam(java.lang.String paramName)
Determines if an entry for the given dynamic parameter name exists in the rule set. |
void |
enterArchiveParameterFalseSet(java.util.Collection paramList)
Enters the given list of dynamic-parameter-name strings into the archive-parameter false set. |
void |
enterArchiveParameterTrueSet(java.util.Collection paramList)
Enters the given list of dynamic-parameter-name strings into the archive-parameter true set. |
CriteriaTable |
get(java.lang.String paramName)
Returns the CriteriaTable object associated with the given dynamic parameter name. |
ArchiveParameterFlag |
getArchiveParameterFlag(java.lang.String paramName)
Get the archive-parameter flag for the given dynamic-parameter-name. |
java.lang.String |
getName()
Returns the name associated with this rule set. |
java.util.List |
getParamNamesList()
Returns a list containing the dynamic parameter names in this rule set. |
int |
indexOfParam(java.lang.String paramName)
Returns an index value corresponding to the position of the given dynamic parameter name in the rule set. |
void |
setUseCriteriaRegExFlag(boolean b)
Set the use regular expressions for criteria flag. |
StatusLevelTag |
toStatus(java.lang.String paramName,
UsageLevelTag usageLevel,
java.lang.Object value)
Translates the given dynamic parameter name, usage-level and value to a status level. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuleSet(java.lang.String name)
name
- the name to be associated with this rule set.Method Detail |
---|
public boolean add(java.lang.String paramName, CriteriaTable cTable)
paramName
- the name of a dynamic parameter.cTable
- the CriteriaTable object to be associated with the
dynamic parameter.
public boolean add(java.lang.String paramName, UsageLevelTag usageLevel, Criteria criteriaObj)
paramName
- name of dynamic parameter.usageLevel
- usage-level to be entered.criteriaObj
- Criteria object to be entered.
public CriteriaTable get(java.lang.String paramName)
paramName
- parameter name to use.
public boolean containsParam(java.lang.String paramName)
paramName
- parameter name to use.
public int indexOfParam(java.lang.String paramName)
paramName
- parameter name to use.
public StatusLevelTag toStatus(java.lang.String paramName, UsageLevelTag usageLevel, java.lang.Object value)
paramName
- the name of a dynamic parameter.usageLevel
- the handle of UsageLevelTag object.value
- an object containing the value to be
translated (such as an 'Integer', 'Double', etc.)
java.lang.ClassCastException
- if the given object's type prevents
it from being compared to the objects in the list.public void enterArchiveParameterTrueSet(java.util.Collection paramList)
paramList
- collection of dynamic-parameter-name strings to
be entered.public void enterArchiveParameterFalseSet(java.util.Collection paramList)
paramList
- collection of dynamic-parameter-name strings to
be entered.public ArchiveParameterFlag getArchiveParameterFlag(java.lang.String paramName)
paramName
- name of dynamic parameter.
public java.util.List getParamNamesList()
public java.lang.String getName()
public void setUseCriteriaRegExFlag(boolean b)
b
- true if specified regular expressions should be used for criteria.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 |