edu.cmu.sei.aadl.modelsupport.errorreporting
Class QueuingAnalysisErrorReporter
java.lang.Object
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractAnalysisErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingAnalysisErrorReporter
- All Implemented Interfaces:
- AnalysisErrorReporter, ErrorReporter
public final class QueuingAnalysisErrorReporter
- extends AbstractAnalysisErrorReporter
An implementation of
edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporter
that reports
errors by storing them in a queue that can be retreived by calling
getErrors()
.
Messages are stored as QueuingAnalysisErrorReporter.Message
objects.
- Author:
- aarong
Field Summary |
static java.lang.String |
ERROR
|
static edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingAnalysisErrorReporter.Factory |
factory
Singleton factory reference. |
static java.lang.String |
INFO
|
static java.lang.String |
WARNING
|
Method Summary |
protected void |
deleteMessagesImpl()
|
protected void |
errorImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Actual implementation of the error method. |
java.util.List<QueuingAnalysisErrorReporter.Message> |
getErrors()
Get the errors. |
protected void |
infoImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Actual implementation of the info method. |
protected void |
warningImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Actual implementation of the warning method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
INFO
public static final java.lang.String INFO
- See Also:
- Constant Field Values
factory
public static final edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingAnalysisErrorReporter.Factory factory
- Singleton factory reference.
QueuingAnalysisErrorReporter
public QueuingAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc)
errorImpl
protected void errorImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
- Description copied from class:
AbstractAnalysisErrorReporter
- Actual implementation of the error method. It is guaranteed that
warningImpl
protected void warningImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
- Description copied from class:
AbstractAnalysisErrorReporter
- Actual implementation of the warning method. It is guaranteed that
infoImpl
protected void infoImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
- Description copied from class:
AbstractAnalysisErrorReporter
- Actual implementation of the info method. It is guaranteed that
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
- the lengths of
attrs
and values
are equal
- Specified by:
infoImpl
in class AbstractAnalysisErrorReporter
deleteMessagesImpl
protected void deleteMessagesImpl()
- Specified by:
deleteMessagesImpl
in class AbstractErrorReporter
getErrors
public java.util.List<QueuingAnalysisErrorReporter.Message> getErrors()
- Get the errors.
- Returns:
- A List of
QueuingAnalysisErrorReporter.Message
objects.