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

All Superinterfaces:
ErrorReporter
All Known Implementing Classes:
AbstractAnalysisErrorReporter, AnalysisToParseErrorReporterAdapter, ChainedAnalysisErrorReporter, LogAnalysisErrorReporter, MarkerAnalysisErrorReporter, NullAnalysisErrorReporter, QueuingAnalysisErrorReporter, StringBufferAnalysisErrorReporter, WriterAnalysisErrorReporter

public interface AnalysisErrorReporter
extends ErrorReporter


Method Summary
 void error(Element obj, java.lang.String msg, java.lang.String[] attrs, java.lang.Object[] values)
          Report an error on an AObject (AADL object model object).
 void info(Element obj, java.lang.String msg, java.lang.String[] attrs, java.lang.Object[] values)
          Report an information message on an AObject (AADL object model object).
 void warning(Element obj, java.lang.String msg, java.lang.String[] attrs, java.lang.Object[] values)
          Report a warning on an AObject (AADL object model object).
 
Methods inherited from interface edu.cmu.sei.aadl.modelsupport.errorreporting.ErrorReporter
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
 

Method Detail

error

void error(Element obj,
           java.lang.String msg,
           java.lang.String[] attrs,
           java.lang.Object[] values)
Report an error on an AObject (AADL object model object). The error may have additional attributes to be used by the reporter.

Parameters:
obj - the object to which the marker is pointing
msg - the message as string
attrs - attributes of the error to be set
values - the values to set the attributes to.
Throws:
java.lang.IllegalArgumentException - Thrown if (attrs == null) || (values == null) || (attrs.length != values.length).

warning

void warning(Element obj,
             java.lang.String msg,
             java.lang.String[] attrs,
             java.lang.Object[] values)
Report a warning on an AObject (AADL object model object). The warning may have additional attributes to be used by the reporter.

Parameters:
obj - the object to which the marker is pointing
msg - the message as string
attrs - attributes of the error to be set
values - the values to set the attributes to.
Throws:
java.lang.IllegalArgumentException - Thrown if (attrs == null) || (values == null) || (attrs.length != values.length).

info

void info(Element obj,
          java.lang.String msg,
          java.lang.String[] attrs,
          java.lang.Object[] values)
Report an information message on an AObject (AADL object model object). The information may have additional attributes to be used by the reporter.

Parameters:
obj - the object to which the marker is pointing
msg - the message as string
attrs - attributes of the error to be set
values - the values to set the attributes to.
Throws:
java.lang.IllegalArgumentException - Thrown if (attrs == null) || (values == null) || (attrs.length != values.length).