org.deegree_impl.tools
Class Debug

java.lang.Object
  extended byorg.deegree_impl.tools.Debug

public class Debug
extends java.lang.Object


Field Summary
static int ALL
           
static int COMMENTS
           
static int ERRORS_AND_COMMENTS
           
static int ERRORSLONG
           
static int ERRORSMEDIUM
           
static int ERRORSONLY
           
static int ERRORSSHORT
           
static int level
           
static java.util.Stack method
           
static int METHOD
           
static int METHOD_AND_COMMENTS
           
static int NODEBUG
           
static java.io.PrintStream out
           
static java.util.Stack timer
           
 
Constructor Summary
Debug()
           
 
Method Summary
private static void blank()
           
static void debugDouble(java.lang.String name, double value)
           
static void debugException(java.lang.Exception e, java.lang.String additional)
           
static void debugInt(java.lang.String name, int value)
           
static void debugMethodBegin()
           
static void debugMethodBegin(java.lang.Object cl, java.lang.String name)
           
static void debugMethodBegin(java.lang.String className, java.lang.String name)
           
static void debugMethodEnd()
           
static void debugObject(java.lang.String name, java.lang.Object value)
           
static void debugSimpleMessage(java.lang.String message)
           
static void setLevel(java.lang.String levelStr)
          Sets the debug level according to the given String constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODEBUG

public static final int NODEBUG
See Also:
Constant Field Values

COMMENTS

public static final int COMMENTS
See Also:
Constant Field Values

METHOD

public static final int METHOD
See Also:
Constant Field Values

METHOD_AND_COMMENTS

public static final int METHOD_AND_COMMENTS
See Also:
Constant Field Values

ERRORSSHORT

public static final int ERRORSSHORT
See Also:
Constant Field Values

ERRORSMEDIUM

public static final int ERRORSMEDIUM
See Also:
Constant Field Values

ERRORSLONG

public static final int ERRORSLONG
See Also:
Constant Field Values

ERRORSONLY

public static final int ERRORSONLY
See Also:
Constant Field Values

ERRORS_AND_COMMENTS

public static final int ERRORS_AND_COMMENTS
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values

level

public static int level

method

public static java.util.Stack method

timer

public static java.util.Stack timer

out

public static java.io.PrintStream out
Constructor Detail

Debug

public Debug()
Method Detail

setLevel

public static void setLevel(java.lang.String levelStr)
Sets the debug level according to the given String constant.

Parameters:
levelStr - must be a String that equals a known debuglevel.

blank

private static void blank()

debugMethodBegin

public static void debugMethodBegin(java.lang.String className,
                                    java.lang.String name)

debugMethodBegin

public static void debugMethodBegin()

debugMethodBegin

public static void debugMethodBegin(java.lang.Object cl,
                                    java.lang.String name)

debugMethodEnd

public static void debugMethodEnd()

debugException

public static void debugException(java.lang.Exception e,
                                  java.lang.String additional)

debugSimpleMessage

public static void debugSimpleMessage(java.lang.String message)

debugObject

public static void debugObject(java.lang.String name,
                               java.lang.Object value)

debugInt

public static void debugInt(java.lang.String name,
                            int value)

debugDouble

public static void debugDouble(java.lang.String name,
                               double value)