Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util.evfparser
Class EventsFileParserCore

java.lang.Object
  extended by com.ibm.etools.iseries.util.evfparser.EventsFileParserCore

public class EventsFileParserCore
extends Object

This is an operation that parses an event file, and opens it in the Error List view


Nested Class Summary
protected  class EventsFileParserCore.SourceFile
          This class will be used to keep track of the location of a source file and its associated 'temp flag'.
 
Field Summary
protected  IQSYSEventsFileProcessor _processor
           
static String Copyright
           
 
Constructor Summary
EventsFileParserCore()
           
 
Method Summary
 LinkedList getAllErrors()
          After all records in the Events File are processed, this method is called to return all the errors from all the processor blocks (QSYSEventsFileProcessorBlock) of the Events File.
 Set getAllFileIDRecords()
          Get all file ID records.
 SecondLevelHelpException getException()
          Used to retrieve any errors found when parsing.
 void parse(ISequentialFileReader reader, int ccsid, IMarkerCreator markerCreator)
           
 void setProcessor(IQSYSEventsFileProcessor processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_processor

protected IQSYSEventsFileProcessor _processor
Constructor Detail

EventsFileParserCore

public EventsFileParserCore()
Method Detail

parse

public void parse(ISequentialFileReader reader,
                  int ccsid,
                  IMarkerCreator markerCreator)
           throws IOException,
                  Exception
Throws:
IOException
Exception

getException

public SecondLevelHelpException getException()
Used to retrieve any errors found when parsing. EVFC6009E is retrieved. Caller must provide substitution variables:

%1 Events file name

%2 location

Returns:
null if there was no exception, otherwise a SystemMessage
Since:
6.0

setProcessor

public void setProcessor(IQSYSEventsFileProcessor processor)

getAllErrors

public LinkedList getAllErrors()
After all records in the Events File are processed, this method is called to return all the errors from all the processor blocks (QSYSEventsFileProcessorBlock) of the Events File. Since each QSYSEventsFileProcessorBlock contains a LinkedList of errors, the result will be returned as a LinkedList of those linked lists. This method is called by EventsFileParser.printEventFileErrors(), which in turn is called by the JUnit test for event file processing.

Returns:
a list of lists of all parsed errors from all processor blocks of the Events File (one list for each processor block).

getAllFileIDRecords

public Set getAllFileIDRecords()
Get all file ID records.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.