edu.cmu.sei.aadl.modelsupport.errorreporting
Interface ErrorReporter

All Known Subinterfaces:
AnalysisErrorReporter, ParseErrorReporter
All Known Implementing Classes:
AbstractAnalysisErrorReporter, AbstractErrorReporter, AbstractParseErrorReporter, AnalysisToParseErrorReporterAdapter, ChainedAnalysisErrorReporter, ChainedParseErrorReporter, LogAnalysisErrorReporter, LogParseErrorReporter, MarkerAnalysisErrorReporter, MarkerParseErrorReporter, NullAnalysisErrorReporter, NullParseErrorReporter, QueuingAnalysisErrorReporter, QueuingParserErrorReporter, StringBufferAnalysisErrorReporter, WriterAnalysisErrorReporter, WriterParseErrorReporter

public interface ErrorReporter

Currently there isn't any real useful purpose to interface other than to abstract the commonalities of edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporter and edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporter.

Author:
aarong

Method Summary
 void deleteMessages()
          Clear the record of the messages.
 int getNumErrors()
          Get the number of parse errors reported using this reporter object since it was created or since the last call to deleteMessages().
 int getNumInfos()
          Get the number of infos reported using this reporter object since it was created or since the last call to deleteMessages().
 int getNumMessages()
          Get the number of messages, that is errors, warnings, and information messages, reported using this reporter object since it was created or since the last call to deleteMessages().
 int getNumWarnings()
          Get the number of warnings reported using this reporter object since it was created or since the last call to deleteMessages().
 

Method Detail

deleteMessages

void deleteMessages()
Clear the record of the messages. The error reporter should (if possible) remove any messages, for example by deleting output log files, or removing markers. This is not always possible, for example, if the messages are sent to a console. The messages counts are also reset to zero.


getNumErrors

int getNumErrors()
Get the number of parse errors reported using this reporter object since it was created or since the last call to deleteMessages().


getNumWarnings

int getNumWarnings()
Get the number of warnings reported using this reporter object since it was created or since the last call to deleteMessages().


getNumInfos

int getNumInfos()
Get the number of infos reported using this reporter object since it was created or since the last call to deleteMessages().


getNumMessages

int getNumMessages()
Get the number of messages, that is errors, warnings, and information messages, reported using this reporter object since it was created or since the last call to deleteMessages().