Interface IMessageReceiver
- All Known Implementing Classes:
ExpressionTranslator,LogMessageReceiver,MessageReceiver,ModelTranslator
public interface IMessageReceiver
The fundamental interface of a message receiver based on EObjects and EStructuralFeatures
for xText grammars.
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(net.ssehub.easy.basics.messages.IMessage message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives an EASy message.voiderror(String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives an error message.voidwarning(String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives a warning message.
-
Method Details
-
error
void error(String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives an error message.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant from the generated grammarcode- a numerical identification of the error
-
warning
void warning(String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives a warning message.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant from the generated grammarcode- a numerical identification of the warning
-
collect
void collect(net.ssehub.easy.basics.messages.IMessage message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code) Receives an EASy message. This allows re-directing the message while keeping the relation to the original one, e.g., for cleaning up messages.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant from the generated grammarcode- a numerical identification of the error
-