|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.xml.resolver.helpers.Debug
Static debugging/messaging class for Catalogs.
This class defines a set of static methods that can be called to produce debugging messages. Messages have an associated "debug level" and messages below the current setting are not displayed.
| Field Summary | |
protected static int |
debug
The internal debug level. |
| Constructor Summary | |
Debug()
|
|
| Method Summary | |
static int |
getDebug()
Get the current debug level. |
static void |
message(int level,
java.lang.String message)
Print debug message (if the debug level is high enough). |
static void |
message(int level,
java.lang.String message,
java.lang.String spec)
Print debug message (if the debug level is high enough). |
static void |
message(int level,
java.lang.String message,
java.lang.String spec1,
java.lang.String spec2)
Print debug message (if the debug level is high enough). |
static void |
setDebug(int newDebug)
Set the debug level for future messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static int debug
| Constructor Detail |
public Debug()
| Method Detail |
public static void setDebug(int newDebug)
public static int getDebug()
public static void message(int level,
java.lang.String message)
Print debug message (if the debug level is high enough).
Prints "the message"
level - The debug level of this message. This message
will only be
displayed if the current debug level is at least equal to this
value.message - The text of the message.
public static void message(int level,
java.lang.String message,
java.lang.String spec)
Print debug message (if the debug level is high enough).
Prints "the message: spec"
level - The debug level of this message. This message
will only be
displayed if the current debug level is at least equal to this
value.message - The text of the message.spec - An argument to the message.
public static void message(int level,
java.lang.String message,
java.lang.String spec1,
java.lang.String spec2)
Print debug message (if the debug level is high enough).
Prints "the message: spec1" and "spec2" indented on the next line.
level - The debug level of this message. This message
will only be
displayed if the current debug level is at least equal to this
value.message - The text of the message.spec1 - An argument to the message.spec2 - Another argument to the message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||