org.eclipse.xtext.diagnostics
Class AbstractDiagnosticProducer

java.lang.Object
  extended by org.eclipse.xtext.diagnostics.AbstractDiagnosticProducer
All Implemented Interfaces:
IDiagnosticProducer
Direct Known Subclasses:
LinkingDiagnosticProducer, TransformationDiagnosticsProducer

public abstract class AbstractDiagnosticProducer
extends java.lang.Object
implements IDiagnosticProducer

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
protected AbstractDiagnosticProducer(IDiagnosticConsumer consumer)
           
 
Method Summary
 void addDiagnostic(DiagnosticMessage message)
           
protected abstract  Diagnostic createDiagnostic(DiagnosticMessage message)
           
 INode getNode()
           
 void setNode(INode node)
           
 void setTarget(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDiagnosticProducer

protected AbstractDiagnosticProducer(IDiagnosticConsumer consumer)
Method Detail

addDiagnostic

public void addDiagnostic(DiagnosticMessage message)
Specified by:
addDiagnostic in interface IDiagnosticProducer

createDiagnostic

protected abstract Diagnostic createDiagnostic(DiagnosticMessage message)

setNode

public void setNode(INode node)
Specified by:
setNode in interface IDiagnosticProducer

getNode

public INode getNode()
Specified by:
getNode in interface IDiagnosticProducer

setTarget

public void setTarget(org.eclipse.emf.ecore.EObject object,
                      org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
setTarget in interface IDiagnosticProducer