public class StationInfoParser extends CfgFileParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GROUP_TAG_STR |
static java.lang.String |
HELP_TAG_STR |
static java.lang.String |
LONGNAME_TAG_STR |
static java.lang.String |
RULESET_TAG_STR |
CLOSE_BRACKET_CHAR, commaSepFlag, errorMessage, inTokens, OPEN_BRACKET_CHAR, wordSlashFlag| Constructor and Description |
|---|
StationInfoParser(java.io.Reader rdr,
RuleSetTable rSetTable)
Creates parser object which reads from the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
GroupTable |
getGroupsTable()
Returns the handle to the GroupTable of station groups.
|
GroupTable |
getNetworksTable()
Returns the handle to the GroupTable of station networks.
|
StationTable |
getStationsTable()
Returns a handle to the table of stations.
|
Station |
parseStationInfo(Station stationObj,
java.lang.String leftString,
java.lang.String rightString,
boolean allowChangeFlag,
LogFile logFileObj)
Parses information for a station and uses it with the given
station and rule-set.
|
boolean |
parseStream(LogFile logFileObj)
Parses the given input stream as a station information file.
|
boolean |
parseStream(LogFile logFileObj,
UsageLevelTag defaultUsageLevel)
Parses the given input stream as a station information file.
|
boolean |
updateTables(Station stationObj,
LogFile logFileObj)
Update the tables for the station.
|
getErrorMessage, parseEqualsNumber, parseEqualsString, resetInput, setDupFieldMsg, setIllegalCharMsg, setNoCloseBracketMsg, setNoOpenBracketMsg, setUnexpectedEOFMsgpublic static final java.lang.String LONGNAME_TAG_STR
public static final java.lang.String RULESET_TAG_STR
public static final java.lang.String HELP_TAG_STR
public static final java.lang.String GROUP_TAG_STR
public StationInfoParser(java.io.Reader rdr,
RuleSetTable rSetTable)
rdr - stream reader object to read from.rSetTable - RuleSetTable object from which to fetch rule-sets.public GroupTable getGroupsTable()
public GroupTable getNetworksTable()
public StationTable getStationsTable()
public boolean parseStream(LogFile logFileObj)
logFileObj - log file object to use for debug messages. If
null then no log file output is generated.public boolean parseStream(LogFile logFileObj, UsageLevelTag defaultUsageLevel)
logFileObj - log file object to use for debug messages. If
null then no log file output is generated.defaultUsageLevel - the default usage level or null if none.public Station parseStationInfo(Station stationObj, java.lang.String leftString, java.lang.String rightString, boolean allowChangeFlag, LogFile logFileObj)
stationObj - the station.leftString - the left string.rightString - the right string.allowChangeFlag - true to allow change, false to flag duplicate error.logFileObj - log file object to use for debug messages. If
null then no log file output is generated.public boolean updateTables(Station stationObj, LogFile logFileObj)
stationObj - the station.logFileObj - log file object to use for debug messages. If
null then no log file output is generated.