tom.platform
Class PluginPlatformMessage

java.lang.Object
  extended by tom.platform.PluginPlatformMessage
All Implemented Interfaces:
PlatformMessage

public class PluginPlatformMessage
extends Object
implements PlatformMessage

The PluginPlatformMessage class is a container for error messages, using the typesafe enum pattern


Field Summary
static PluginPlatformMessage classNotAPlugin
           
static PluginPlatformMessage classNotFound
           
static PluginPlatformMessage classNotOptionManager
           
static PluginPlatformMessage classPathRead
           
static PluginPlatformMessage configFileNotFound
           
static PluginPlatformMessage configFileNotSpecified
           
static PluginPlatformMessage configFileNotXML
           
static String DEFAULT_ERROR_FILE_NAME
           
static int DEFAULT_ERROR_LINE_NUMBER
           
static PluginPlatformMessage formatterInvalid
           
static PluginPlatformMessage formatterNotFound
           
static PluginPlatformMessage incompleteXOption
           
static PluginPlatformMessage instantiationError
           
static PluginPlatformMessage logfileInvalid
           
static PluginPlatformMessage noPluginActivated
           
static PluginPlatformMessage noPluginFound
           
static PluginPlatformMessage nowCompiling
           
static PluginPlatformMessage platformStopped
           
static PluginPlatformMessage processingError
           
static PluginPlatformMessage runErrorMessage
           
static PluginPlatformMessage runWarningMessage
           
static PluginPlatformMessage settingArgError
           
 
Method Summary
static void error(Logger logger, String fileName, int errorLine, PlatformMessage msg, Object... msgArgs)
           
static void fine(Logger logger, String fileName, int errorLine, PlatformMessage msg, Object... msgArgs)
           
static void finer(Logger logger, String fileName, int errorLine, PlatformMessage msg, Object... msgArgs)
           
 String getMessage()
           
 String getMessageName()
           
static void info(Logger logger, String fileName, int errorLine, PlatformMessage msg, Object... msgArgs)
           
static void initMessageName()
           
 void setMessageName(String name)
           
 String toString()
           
static void warning(Logger logger, String fileName, int errorLine, PlatformMessage msg, Object... msgArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

incompleteXOption

public static final PluginPlatformMessage incompleteXOption

configFileNotSpecified

public static final PluginPlatformMessage configFileNotSpecified

configFileNotFound

public static final PluginPlatformMessage configFileNotFound

formatterNotFound

public static final PluginPlatformMessage formatterNotFound

formatterInvalid

public static final PluginPlatformMessage formatterInvalid

logfileInvalid

public static final PluginPlatformMessage logfileInvalid

platformStopped

public static final PluginPlatformMessage platformStopped

configFileNotXML

public static final PluginPlatformMessage configFileNotXML

classNotAPlugin

public static final PluginPlatformMessage classNotAPlugin

classNotOptionManager

public static final PluginPlatformMessage classNotOptionManager

instantiationError

public static final PluginPlatformMessage instantiationError

noPluginFound

public static final PluginPlatformMessage noPluginFound

processingError

public static final PluginPlatformMessage processingError

settingArgError

public static final PluginPlatformMessage settingArgError

runErrorMessage

public static final PluginPlatformMessage runErrorMessage

runWarningMessage

public static final PluginPlatformMessage runWarningMessage

noPluginActivated

public static final PluginPlatformMessage noPluginActivated

classNotFound

public static final PluginPlatformMessage classNotFound

nowCompiling

public static final PluginPlatformMessage nowCompiling

classPathRead

public static final PluginPlatformMessage classPathRead

DEFAULT_ERROR_FILE_NAME

public static final String DEFAULT_ERROR_FILE_NAME
See Also:
Constant Field Values

DEFAULT_ERROR_LINE_NUMBER

public static final int DEFAULT_ERROR_LINE_NUMBER
See Also:
Constant Field Values
Method Detail

initMessageName

public static void initMessageName()

toString

public String toString()
Overrides:
toString in class Object

getMessage

public String getMessage()
Specified by:
getMessage in interface PlatformMessage

getMessageName

public String getMessageName()
Specified by:
getMessageName in interface PlatformMessage

setMessageName

public void setMessageName(String name)
Specified by:
setMessageName in interface PlatformMessage

error

public static void error(Logger logger,
                         String fileName,
                         int errorLine,
                         PlatformMessage msg,
                         Object... msgArgs)

warning

public static void warning(Logger logger,
                           String fileName,
                           int errorLine,
                           PlatformMessage msg,
                           Object... msgArgs)

info

public static void info(Logger logger,
                        String fileName,
                        int errorLine,
                        PlatformMessage msg,
                        Object... msgArgs)

fine

public static void fine(Logger logger,
                        String fileName,
                        int errorLine,
                        PlatformMessage msg,
                        Object... msgArgs)

finer

public static void finer(Logger logger,
                         String fileName,
                         int errorLine,
                         PlatformMessage msg,
                         Object... msgArgs)