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

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

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


Constructor Summary
ChainedAnalysisErrorReporter.Factory(AnalysisErrorReporterFactory[] factories)
          Create a new factory that creates an analysis error reporter that delegates to error reporters generated by the given list of factories.
 
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

ChainedAnalysisErrorReporter.Factory

public ChainedAnalysisErrorReporter.Factory(AnalysisErrorReporterFactory[] factories)
Create a new factory that creates an analysis error reporter that delegates to error reporters generated by the given list of factories.

Parameters:
factories - The factories to use to generate the delegates. This array is referenced directly. The caller should not keep a reference to it.
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.