xbn.output
Interface Debuggable

All Known Implementing Classes:
DBConnDirect

public interface Debuggable

A class implementing Debuggable has permanent, optional and configurable output.

Source code:  Debuggable.java

Example implementation parts

   //REQUIRED BY xbn.output.Outputter...START
      private Outputter outPutter = new Outputter();
   //REQUIRED BY xbn.output.Outputter...END

   //REQUIRED BY xbn.output.Debuggable...START
      public Outputter getOptrDbg()  {
         return outPutter;
      }
      public void setOptrDbg(Outputter o_utputter)  {
         if(o_utputter == null)  {
            throw new AssertException("ERROR in [YOUR CLASS].setOutputter:  o_utputter is null.");
         }
         outPutter = o_utputter;
      }
      public void dbg(String s_message)  {
         getOptrDbg().write(s_message);
      }
      public void dbgnl(String s_message)  {
         getOptrDbg().writeNoln(s_message);
      }
   //REQUIRED BY xbn.output.Debuggable...END


Method Summary
 void dbg(String s_message)
          Output a line of text.
 void dbgnl(String s_message)
          Output a line of text without an ending newline.
 Outputter getOptrDbg()
          Get the Outputter object for direct manipulation.
 void setOptrDbg(Outputter out_putter)
          Set the Outputter object.
 

Method Detail

getOptrDbg

public Outputter getOptrDbg()

Get the Outputter object for direct manipulation.

Set with setOutputter.


setOptrDbg

public void setOptrDbg(Outputter out_putter)

Set the Outputter object.

Get with getOutputter.

Parameters:
out_putter - The Outputter object. May not be null.

dbg

public void dbg(String s_message)

Output a line of text.

Parameters:
s_message - The message to output.

dbgnl

public void dbgnl(String s_message)

Output a line of text without an ending newline.

Parameters:
s_message - The message to output.



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo