ca.umontreal.iro.rali
Class Debug

java.lang.Object
  extended by ca.umontreal.iro.rali.Debug

public class Debug
extends java.lang.Object


Constructor Summary
Debug()
           
 
Method Summary
static void compact(org.w3c.dom.Node node, java.lang.String indent)
          print a compact form of a Node (used here only for debugging)
static void dumpElem(java.lang.String mess, org.w3c.dom.Node elem)
          Prints a message followed by the compact form of a document Node Only used for debugging purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

dumpElem

public static void dumpElem(java.lang.String mess,
                            org.w3c.dom.Node elem)
Prints a message followed by the compact form of a document Node Only used for debugging purpose

Parameters:
mess - String giving the message to show
elem - Node to print in compact form

compact

public static void compact(org.w3c.dom.Node node,
                           java.lang.String indent)
print a compact form of a Node (used here only for debugging)

Parameters:
node - starting node to compact
indent - string added at the start of each new line