public class RuleSetParser extends CfgFileParser
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Hashtable |
statusNamesToObjs |
(package private) java.util.Hashtable |
usageNamesToObjs |
CLOSE_BRACKET_CHAR, commaSepFlag, errorMessage, inTokens, OPEN_BRACKET_CHAR, wordSlashFlag
Constructor and Description |
---|
RuleSetParser(java.io.Reader rdr)
Creates parser object which reads from the given stream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
parseEqualsNumber, parseEqualsString, resetInput, setDupFieldMsg, setIllegalCharMsg, setNoCloseBracketMsg, setNoOpenBracketMsg, setUnexpectedEOFMsg
final java.util.Hashtable usageNamesToObjs
final java.util.Hashtable statusNamesToObjs
public RuleSetParser(java.io.Reader rdr)
rdr
- stream reader object to read from.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