fr.umlv.tatoo.cc.common.log
Class AbstractDiagnosticReporter<W extends Enum<W> & DiagnosticReporter.Key>

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.log.AbstractDiagnosticReporter<W>
All Implemented Interfaces:
DiagnosticReporter
Direct Known Subclasses:
AbstractASTDiagnosticReporter, AbstractConflictDiagnosticReporter

public abstract class AbstractDiagnosticReporter<W extends Enum<W> & DiagnosticReporter.Key>
extends Object
implements DiagnosticReporter


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.umlv.tatoo.cc.common.log.DiagnosticReporter
DiagnosticReporter.Key, DiagnosticReporter.Level
 
Constructor Summary
protected AbstractDiagnosticReporter(UserDefinedLevelMap<W> userDefinedLevelMap)
           
 
Method Summary
protected  String formatMessage(DiagnosticReporter.Key key, Object... data)
           
protected abstract  ResourceBundle getBundle()
           
protected  DiagnosticReporter.Level getLevel(DiagnosticReporter.Key key)
           
 boolean isOnError()
           
protected  void setOnError()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDiagnosticReporter

protected AbstractDiagnosticReporter(UserDefinedLevelMap<W> userDefinedLevelMap)
Method Detail

isOnError

public boolean isOnError()
Specified by:
isOnError in interface DiagnosticReporter

setOnError

protected final void setOnError()

getBundle

protected abstract ResourceBundle getBundle()

formatMessage

protected final String formatMessage(DiagnosticReporter.Key key,
                                     Object... data)

getLevel

protected final DiagnosticReporter.Level getLevel(DiagnosticReporter.Key key)