Class PMDBDebug

java.lang.Object
  extended byPMDBDebug

public class PMDBDebug
extends java.lang.Object

This class provides various methods that can be used in debugging the use of the Phoons program.


Constructor Summary
PMDBDebug()
           
 
Method Summary
static void catCaptionsToFile()
          Writes the captions of all catLinks to file.
static void catCaptionsToFile(boolean full)
          Writes all catlink captions to file.
static void catFullCaptionsToFile()
          Writes the fullCaptions of all catLinks to file.
static java.lang.String getLinesFromArray(java.lang.String[] array, java.lang.String search)
          Returns all matching lines of an array containing a match as a single line with newline characters.
static void reportIfNull(java.lang.String whereUsed)
          Reports if catLinksHT contains a null element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMDBDebug

public PMDBDebug()
Method Detail

catCaptionsToFile

public static void catCaptionsToFile()
Writes the captions of all catLinks to file.


catFullCaptionsToFile

public static void catFullCaptionsToFile()
Writes the fullCaptions of all catLinks to file.


catCaptionsToFile

public static void catCaptionsToFile(boolean full)
Writes all catlink captions to file. If 'full' is true, the fullCaptions are written; if false, just the captions.


reportIfNull

public static void reportIfNull(java.lang.String whereUsed)
Reports if catLinksHT contains a null element.


getLinesFromArray

public static java.lang.String getLinesFromArray(java.lang.String[] array,
                                                 java.lang.String search)
Returns all matching lines of an array containing a match as a single line with newline characters. A null is returned if no match is found.