edu.cmu.sei.aadl.modelsupport.errorreporting
Class StringBufferAnalysisErrorReporter.Factory

java.lang.Object
  extended by edu.cmu.sei.aadl.modelsupport.errorreporting.StringBufferAnalysisErrorReporter.Factory
All Implemented Interfaces:
AnalysisErrorReporterFactory
Enclosing class:
StringBufferAnalysisErrorReporter

public static final class StringBufferAnalysisErrorReporter.Factory
extends java.lang.Object
implements AnalysisErrorReporterFactory

Creates analysis error reporters that all report to the same given string buffer. Access to the string buffer is coordinated by synchronizing on the string buffer itself. The string buffer should be locked when retreiving the string from it as well.

Author:
aarong

Constructor Summary
StringBufferAnalysisErrorReporter.Factory(java.lang.String error, java.lang.String warning, java.lang.String info, java.lang.StringBuffer buffer)
           
 
Method Summary
 AnalysisErrorReporter getReporterFor(org.eclipse.emf.ecore.resource.Resource rsrc)
          Obtain an error reporter to use for AAXL Resource that holds an AADL Object model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferAnalysisErrorReporter.Factory

public StringBufferAnalysisErrorReporter.Factory(java.lang.String error,
                                                 java.lang.String warning,
                                                 java.lang.String info,
                                                 java.lang.StringBuffer buffer)
Method Detail

getReporterFor

public AnalysisErrorReporter getReporterFor(org.eclipse.emf.ecore.resource.Resource rsrc)
Description copied from interface: AnalysisErrorReporterFactory
Obtain an error reporter to use for AAXL Resource that holds an AADL Object model. This method must never return null. If no factory can be found/created then it must throw a IllegalArgumentException.

Specified by:
getReporterFor in interface AnalysisErrorReporterFactory
Parameters:
rsrc - The EMF Resource representing the AAXL object model
Returns:
The error reporter to be used for the file. Must not be null.