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

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

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

Factory for creating Marker error reporters. Parameterized by the marker type to use. Can optionally be parameterized by another ParseErrorReporterFactory that is used when it is unable to find an IResource for the given Resource.

Author:
aarong

Constructor Summary
MarkerAnalysisErrorReporter.Factory(java.lang.String mt)
           
MarkerAnalysisErrorReporter.Factory(java.lang.String mt, AnalysisErrorReporterFactory sndFact)
           
 
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

MarkerAnalysisErrorReporter.Factory

public MarkerAnalysisErrorReporter.Factory(java.lang.String mt,
                                           AnalysisErrorReporterFactory sndFact)

MarkerAnalysisErrorReporter.Factory

public MarkerAnalysisErrorReporter.Factory(java.lang.String mt)
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.