com.isti.trinetwatch.ruleset
Class RuleSetParser
java.lang.Object
com.isti.util.CfgFileParser
com.isti.trinetwatch.ruleset.RuleSetParser
- public class RuleSetParser
- extends CfgFileParser
Class RuleSetParser reads data from an input stream into rule-set
objects.
Constructor Summary |
RuleSetParser(java.io.Reader rdr)
Creates parser object which reads from the given stream. |
RuleSetParser(java.io.Reader rdr,
LogFile logFileObj)
Creates parser object which reads from the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usageNamesToObjs
final java.util.Hashtable usageNamesToObjs
statusNamesToObjs
final java.util.Hashtable statusNamesToObjs
RuleSetParser
public RuleSetParser(java.io.Reader rdr)
- Creates parser object which reads from the given stream.
RuleSetParser
public RuleSetParser(java.io.Reader rdr,
LogFile logFileObj)
- Creates parser object which reads from the given stream.
- Parameters:
rdr
- stream reader object to read from.logFileObj
- log file object to use for debug messages. If
null then no log file output is generated.
parseStream
public boolean parseStream(UsageLevelTable uLevelTable,
StatusLevelTable sLevelTable,
RuleSetTable rSetTable,
java.util.Hashtable helpStrTable)
- Parses the input stream as a rule-set file.
- Parameters:
uLevelTable
- UsageLevelTable object to be filled in.sLevelTable
- StatusLevelTable object to be filled in.rSetTable
- RuleSetTable object to be filled in.helpStrTable
- hash table of help strings to be filled in.
- Returns:
- true if successful, false if parameter or syntax error
detected (retrieve error message with 'getErrorMessage()').
getErrorMessage
public java.lang.String getErrorMessage()
- Returns message string for last error (or 'No error' if none).
- Overrides:
getErrorMessage
in class CfgFileParser
- Returns:
- error message