com.bea.p13n.model
Class Model.Debug

java.lang.Object
  extended by com.bea.p13n.model.Model.Debug
Enclosing class:
Model

public static class Model.Debug
extends Object

Debug class.

See Also
Model.getDebug(java.lang.Class)

Field Summary
 boolean ON
          Is debug output on for this debug.
 
Constructor Summary
protected Model.Debug(boolean isOn)
          Constructor.
 
Method Summary
 void out(String mesg)
          Output a debug message if ON.
 void out(String mesg, Throwable t)
          Output a debug message and stacktrace if t is not null.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ON

public final boolean ON
Is debug output on for this debug.

Constructor Detail

Model.Debug

protected Model.Debug(boolean isOn)
Constructor.

Parameters
isOn - what to initialize ON to.
Method Detail

out

public void out(String mesg)
Output a debug message if ON.


out

public void out(String mesg,
                Throwable t)
Output a debug message and stacktrace if t is not null.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.