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

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

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

It is required the provided ParseErrorReporterFactory be able to handle null IResources. This is so that Resources associated with standard property sets may be handled. These files do not exist in the Eclipse workspace, and thus it is impossible to get IResources for them.


Constructor Summary
AnalysisToParseErrorReporterAdapter.Factory(ParseErrorReporterFactory fact)
           
 
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

AnalysisToParseErrorReporterAdapter.Factory

public AnalysisToParseErrorReporterAdapter.Factory(ParseErrorReporterFactory fact)
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.