|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractAnalysisErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.WriterAnalysisErrorReporter
public final class WriterAnalysisErrorReporter
An implementation of
edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporter
that outputs
the messages to a Java Writer
. Includes a
prototype reference to a factory that creates
reporters that print to the system out
.
The class defines a nested class
edu.cmu.sei.aadl.model.pluginsupport.WriterAnalysisErrorReporter.Factory
that implements a factory.
Nested Class Summary | |
---|---|
static class |
WriterAnalysisErrorReporter.Factory
|
Field Summary | |
---|---|
static WriterAnalysisErrorReporter.Factory |
SYSTEM_ERR_FACTORY
Singleton reference to a factory that creates reporters that send the messages to System.err . |
static WriterAnalysisErrorReporter.Factory |
SYSTEM_OUT_FACTORY
Singleton reference to a factory that creates reporters that send the messages to System.out . |
Fields inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractAnalysisErrorReporter |
---|
resource |
Constructor Summary | |
---|---|
WriterAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc,
java.io.Writer writer)
Create a new error reporter that writes the error messages to the given Writer object. |
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. |
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 edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractAnalysisErrorReporter |
---|
error, info, warning |
Methods inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter |
---|
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings, incError, incInfo, incWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.cmu.sei.aadl.modelsupport.errorreporting.ErrorReporter |
---|
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings |
Field Detail |
---|
public static final WriterAnalysisErrorReporter.Factory SYSTEM_OUT_FACTORY
System.out
.
public static final WriterAnalysisErrorReporter.Factory SYSTEM_ERR_FACTORY
System.err
.
Constructor Detail |
---|
public WriterAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc, java.io.Writer writer)
Writer
object. The caller is responsible for providing any
buffering, i.e., the writer will be used as provided and is not further
wrapped.
writer
- The writer to use.
java.lang.IllegalArgumentException
- Thrown if writer
is null
.Method Detail |
---|
protected void errorImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AbstractAnalysisErrorReporter
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
errorImpl
in class AbstractAnalysisErrorReporter
protected void warningImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AbstractAnalysisErrorReporter
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
warningImpl
in class AbstractAnalysisErrorReporter
protected void infoImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AbstractAnalysisErrorReporter
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
infoImpl
in class AbstractAnalysisErrorReporter
protected void deleteMessagesImpl()
deleteMessagesImpl
in class AbstractErrorReporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |