| java.lang.Object com.sun.org.apache.xml.internal.resolver.helpers.Debug
Debug | public class Debug (Code) | | 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.
author: Norman Walsh author: Norman.Walsh@Sun.COM version: 1.0 |
Field Summary | |
protected int | debug The internal debug level. |
Constructor Summary | |
public | Debug() |
Method Summary | |
public int | getDebug() Get the current debug level. | public void | message(int level, String message) Print debug message (if the debug level is high enough).
Prints "the message"
Parameters: level - The debug level of this message. | public void | message(int level, String message, String spec) Print debug message (if the debug level is high enough).
Prints "the message: spec"
Parameters: level - The debug level of this message. | public void | message(int level, String message, String spec1, String spec2) Print debug message (if the debug level is high enough).
Prints "the message: spec1" and "spec2" indented on the next line.
Parameters: level - The debug level of this message. | public void | setDebug(int newDebug) Set the debug level for future messages. |
debug | protected int debug(Code) | | The internal debug level.
|
Debug | public Debug()(Code) | | Constructor
|
getDebug | public int getDebug()(Code) | | Get the current debug level.
|
message | public void message(int level, String message)(Code) | | Print debug message (if the debug level is high enough).
Prints "the message"
Parameters: level - The debug level of this message. This messagewill only bedisplayed if the current debug level is at least equal to thisvalue. Parameters: message - The text of the message. |
message | public void message(int level, String message, String spec)(Code) | | Print debug message (if the debug level is high enough).
Prints "the message: spec"
Parameters: level - The debug level of this message. This messagewill only bedisplayed if the current debug level is at least equal to thisvalue. Parameters: message - The text of the message. Parameters: spec - An argument to the message. |
message | public void message(int level, String message, String spec1, String spec2)(Code) | | Print debug message (if the debug level is high enough).
Prints "the message: spec1" and "spec2" indented on the next line.
Parameters: level - The debug level of this message. This messagewill only bedisplayed if the current debug level is at least equal to thisvalue. Parameters: message - The text of the message. Parameters: spec1 - An argument to the message. Parameters: spec2 - Another argument to the message. |
setDebug | public void setDebug(int newDebug)(Code) | | Set the debug level for future messages.
|
|
|