Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)

com.lapetus_ltd.api.common.logger
Enum TLptsLogger.LOG_TYPE

java.lang.Object
  extended by java.lang.Enum<TLptsLogger.LOG_TYPE>
      extended by com.lapetus_ltd.api.common.logger.TLptsLogger.LOG_TYPE
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TLptsLogger.LOG_TYPE>
Enclosing class:
TLptsLogger

public static enum TLptsLogger.LOG_TYPE
extends java.lang.Enum<TLptsLogger.LOG_TYPE>

Type of log to record. Either ERROR, WARNING, DEBUG or MESSAGE.


Enum Constant Summary
DEBUG
          This is used to show that a log is a debug message.
ERROR
          This is used to show that a log is an error.
MESSAGE
          This is used to show that a log is a message.
RESET
          This is used to reset the listeners.
WARNING
          This is used to show that a log is a warning.
 
Method Summary
static TLptsLogger.LOG_TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TLptsLogger.LOG_TYPE[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEBUG

public static final TLptsLogger.LOG_TYPE DEBUG
This is used to show that a log is a debug message.


ERROR

public static final TLptsLogger.LOG_TYPE ERROR
This is used to show that a log is an error.


MESSAGE

public static final TLptsLogger.LOG_TYPE MESSAGE
This is used to show that a log is a message.


RESET

public static final TLptsLogger.LOG_TYPE RESET
This is used to reset the listeners. If the application calls #sendResetToListeners, then this is sent to all listeners. Listeners should refresh their list of logs when this is received, as the #clearLogList also sends this.


WARNING

public static final TLptsLogger.LOG_TYPE WARNING
This is used to show that a log is a warning.

Method Detail

valueOf

public static TLptsLogger.LOG_TYPE valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

values

public static TLptsLogger.LOG_TYPE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TLptsLogger.LOG_TYPE c : TLptsLogger.LOG_TYPE.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared


Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)