|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.CfgFileParser com.isti.trinetwatch.ruleset.RuleSetParser
public class RuleSetParser
Class RuleSetParser reads data from an input stream into rule-set objects.
Field Summary | |
---|---|
(package private) java.util.Hashtable |
statusNamesToObjs
|
(package private) java.util.Hashtable |
usageNamesToObjs
|
Fields inherited from class com.isti.util.CfgFileParser |
---|
CLOSE_BRACKET_CHAR, commaSepFlag, errorMessage, inTokens, OPEN_BRACKET_CHAR, wordSlashFlag |
Constructor Summary | |
---|---|
RuleSetParser(java.io.Reader rdr)
Creates parser object which reads from the given stream. |
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
Returns message string for last error (or 'No error' if none). |
boolean |
parseStream(UsageLevelTable destULevelTable,
StatusLevelTable destSLevelTable,
RuleSetTable destRSetTable,
java.util.Hashtable destHelpStrTable)
Parses the input stream as a rule-set file. |
boolean |
parseStream(UsageLevelTable destULevelTable,
StatusLevelTable destSLevelTable,
RuleSetTable destRSetTable,
java.util.Hashtable destHelpStrTable,
LogFile logFileObj)
Parses the input stream as a rule-set file. |
void |
setUseCriteriaRegExFlag(boolean b)
Set the use regular expressions for criteria flag. |
Methods inherited from class com.isti.util.CfgFileParser |
---|
parseEqualsNumber, parseEqualsString, resetInput, setDupFieldMsg, setIllegalCharMsg, setNoCloseBracketMsg, setNoOpenBracketMsg, setUnexpectedEOFMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final java.util.Hashtable usageNamesToObjs
final java.util.Hashtable statusNamesToObjs
Constructor Detail |
---|
public RuleSetParser(java.io.Reader rdr)
rdr
- stream reader object to read from.Method Detail |
---|
public boolean parseStream(UsageLevelTable destULevelTable, StatusLevelTable destSLevelTable, RuleSetTable destRSetTable, java.util.Hashtable destHelpStrTable, LogFile logFileObj)
destULevelTable
- UsageLevelTable object to be filled in.destSLevelTable
- StatusLevelTable object to be filled in.destRSetTable
- RuleSetTable object to be filled in.destHelpStrTable
- hash table of help strings to be filled in.logFileObj
- log file object to use for debug messages. If
null then no log file output is generated.
public boolean parseStream(UsageLevelTable destULevelTable, StatusLevelTable destSLevelTable, RuleSetTable destRSetTable, java.util.Hashtable destHelpStrTable)
destULevelTable
- UsageLevelTable object to be filled in.destSLevelTable
- StatusLevelTable object to be filled in.destRSetTable
- RuleSetTable object to be filled in.destHelpStrTable
- hash table of help strings to be filled in.
public void setUseCriteriaRegExFlag(boolean b)
b
- true if specified regular expressions should be used for criteria.public java.lang.String getErrorMessage()
getErrorMessage
in class CfgFileParser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |