JTools

org.jtools.info.consumer
Class SimpleSeverityMapper

java.lang.Object
  extended by org.jtools.info.consumer.SimpleSeverityMapper
All Implemented Interfaces:
org.jpattern.mapper.Mapper<org.jpattern.logging.Level,Severity>, SeverityVisitor<org.jpattern.logging.Level,Object>

public class SimpleSeverityMapper
extends Object
implements org.jpattern.mapper.Mapper<org.jpattern.logging.Level,Severity>, SeverityVisitor<org.jpattern.logging.Level,Object>


Field Summary
static SimpleSeverityMapper SINGLETON
           
 
Constructor Summary
SimpleSeverityMapper()
           
 
Method Summary
 org.jpattern.logging.Level map(Severity item)
           
 org.jpattern.logging.Level visitDEBUG(Severity severity, Object... data)
          Indicates some (normal) info which should only appear in debug mode.
 org.jpattern.logging.Level visitERROR(Severity severity, Object... data)
          Indicates an erroneous situation.
 org.jpattern.logging.Level visitFATAL(Severity severity, Object... data)
          Indicates a fatal situation on component level.
 org.jpattern.logging.Level visitINFO(Severity severity, Object... data)
          Indicates some (normal) info.
 org.jpattern.logging.Level visitSYSTEM(Severity severity, Object... data)
          Indicates a fatal situation on system level.
 org.jpattern.logging.Level visitVERBOSE(Severity severity, Object... data)
          Indicates some (normal) info which should only appear in verbose mode.
 org.jpattern.logging.Level visitWARNING(Severity severity, Object... data)
          Indicates a warning situation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final SimpleSeverityMapper SINGLETON
Constructor Detail

SimpleSeverityMapper

public SimpleSeverityMapper()
Method Detail

map

public org.jpattern.logging.Level map(Severity item)
Specified by:
map in interface org.jpattern.mapper.Mapper<org.jpattern.logging.Level,Severity>

visitSYSTEM

public org.jpattern.logging.Level visitSYSTEM(Severity severity,
                                              Object... data)
Description copied from interface: SeverityVisitor
Indicates a fatal situation on system level.

Specified by:
visitSYSTEM in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitFATAL

public org.jpattern.logging.Level visitFATAL(Severity severity,
                                             Object... data)
Description copied from interface: SeverityVisitor
Indicates a fatal situation on component level.

Specified by:
visitFATAL in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitERROR

public org.jpattern.logging.Level visitERROR(Severity severity,
                                             Object... data)
Description copied from interface: SeverityVisitor
Indicates an erroneous situation.

Specified by:
visitERROR in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitWARNING

public org.jpattern.logging.Level visitWARNING(Severity severity,
                                               Object... data)
Description copied from interface: SeverityVisitor
Indicates a warning situation.

Specified by:
visitWARNING in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitINFO

public org.jpattern.logging.Level visitINFO(Severity severity,
                                            Object... data)
Description copied from interface: SeverityVisitor
Indicates some (normal) info.

Specified by:
visitINFO in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitVERBOSE

public org.jpattern.logging.Level visitVERBOSE(Severity severity,
                                               Object... data)
Description copied from interface: SeverityVisitor
Indicates some (normal) info which should only appear in verbose mode.

Specified by:
visitVERBOSE in interface SeverityVisitor<org.jpattern.logging.Level,Object>

visitDEBUG

public org.jpattern.logging.Level visitDEBUG(Severity severity,
                                             Object... data)
Description copied from interface: SeverityVisitor
Indicates some (normal) info which should only appear in debug mode.

Specified by:
visitDEBUG in interface SeverityVisitor<org.jpattern.logging.Level,Object>

JTools

© 2000-2006, JTools.org.