|
||||||||||
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
public abstract class AbstractAnalysisErrorReporter
Base implementation that makes sure messages counts are updated. Also makes
sure that that AObjects used for reporting all come from the same Resource.
Delegates the actual reporting functionality to the abstract methods
errorImpl(Element, String, String[], Object[])
,
warningImpl(Element, String, String[], Object[])
,
and infoImpl(Element, String, String[], Object[])
.
Field Summary | |
---|---|
protected org.eclipse.emf.ecore.resource.Resource |
resource
The EMF Resource of the object model. |
Constructor Summary | |
---|---|
protected |
AbstractAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc)
|
Method Summary | |
---|---|
void |
error(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Report an error on an AObject (AADL object model object). |
protected abstract void |
errorImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Actual implementation of the error method. |
void |
info(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Report an information message on an AObject (AADL object model object). |
protected abstract void |
infoImpl(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Actual implementation of the info method. |
void |
warning(Element where,
java.lang.String message,
java.lang.String[] attrs,
java.lang.Object[] values)
Report a warning on an AObject (AADL object model object). |
protected abstract 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.AbstractErrorReporter |
---|
deleteMessages, deleteMessagesImpl, 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 |
---|
protected final org.eclipse.emf.ecore.resource.Resource resource
Constructor Detail |
---|
protected AbstractAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc)
Method Detail |
---|
public final void error(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AnalysisErrorReporter
error
in interface AnalysisErrorReporter
where
- the object to which the marker is pointingmessage
- the message as stringattrs
- attributes of the error to be setvalues
- the values to set the attributes to.protected abstract void errorImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
public final void warning(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AnalysisErrorReporter
warning
in interface AnalysisErrorReporter
where
- the object to which the marker is pointingmessage
- the message as stringattrs
- attributes of the error to be setvalues
- the values to set the attributes to.protected abstract void warningImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
public final void info(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
AnalysisErrorReporter
info
in interface AnalysisErrorReporter
where
- the object to which the marker is pointingmessage
- the message as stringattrs
- attributes of the error to be setvalues
- the values to set the attributes to.protected abstract void infoImpl(Element where, java.lang.String message, java.lang.String[] attrs, java.lang.Object[] values)
where
is from the resource of the error reporter
attrs
is non-null
values
is non-null
attrs
and values
are equal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |