com.sap.tc.logging
Class FormatterType

java.lang.Object
  |
  +--com.sap.tc.logging.FormatterType
All Implemented Interfaces:
java.io.Serializable

public class FormatterType
extends java.lang.Object
implements java.io.Serializable

Defines and provides typesafe enums of types of Formatter used in logging to format a log message and its related information. Currently, there are three types defined: LISTFORMAT, TRACEFORMAT, XMLFORMAT

See Also:
Serialized Form

Field Summary
static java.util.List ALLTYPES
          Returns an immutable list of predefined formatter types.
static FormatterType LISTFORMAT
          A not-so-human-readable format to be transferred to and processed further by another application, for example, a log viewer.
static FormatterType PERFFORMAT
          See class (@link PerfFormatter}.
static FormatterType TRACEFORMAT
          A format which is readily understood by users.
static FormatterType UNDEFINEDFORMAT
          Unknown format.
static FormatterType XMLFORMAT
          See class (@link XMLFormatter}.
 
Method Summary
 boolean equals(java.lang.Object that)
          A final method with same behavior as in parent class Object.
 int hashCode()
          A final method with same behavior as in parent class Object.
 java.lang.String toString()
          Returns the formatter type in literal string.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LISTFORMAT

public static final FormatterType LISTFORMAT
A not-so-human-readable format to be transferred to and processed further by another application, for example, a log viewer. See class (@link ListFormatter}.

TRACEFORMAT

public static final FormatterType TRACEFORMAT
A format which is readily understood by users. See class (@link TraceFormatter}.

PERFFORMAT

public static final FormatterType PERFFORMAT
See class (@link PerfFormatter}.

XMLFORMAT

public static final FormatterType XMLFORMAT
See class (@link XMLFormatter}.

UNDEFINEDFORMAT

public static final FormatterType UNDEFINEDFORMAT
Unknown format.

ALLTYPES

public static final java.util.List ALLTYPES
Returns an immutable list of predefined formatter types.
Method Detail

toString

public java.lang.String toString()
Returns the formatter type in literal string.
Overrides:
toString in class java.lang.Object

equals

public final boolean equals(java.lang.Object that)
A final method with same behavior as in parent class Object.
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
A final method with same behavior as in parent class Object.
Overrides:
hashCode in class java.lang.Object