treebolic.provider.xslt
Class DocumentDump

java.lang.Object
  extended by treebolic.provider.xslt.DocumentDump

public class DocumentDump
extends java.lang.Object

Document dump

Author:
Bernard Bou

Field Summary
private static java.lang.String[] theTypeNames
          Type names
 
Constructor Summary
DocumentDump()
           
 
Method Summary
static java.lang.String toDocType(org.w3c.dom.DocumentType thisDocTypeNode)
          DocType to string
static java.lang.String toString(org.w3c.dom.Document thisDocument)
          Document to string
static java.lang.String toStringType(org.w3c.dom.Document thisDocument)
          Document to tree of node types
private static java.lang.String toStringType(org.w3c.dom.Node thisNode, int thisLevel)
          Node to tree of node types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theTypeNames

private static java.lang.String[] theTypeNames
Type names

Constructor Detail

DocumentDump

public DocumentDump()
Method Detail

toString

public static java.lang.String toString(org.w3c.dom.Document thisDocument)
Document to string

Parameters:
thisDocument -
Returns:
string

toStringType

public static java.lang.String toStringType(org.w3c.dom.Document thisDocument)
Document to tree of node types

Parameters:
thisDocument - document
Returns:
tree of node types

toStringType

private static java.lang.String toStringType(org.w3c.dom.Node thisNode,
                                             int thisLevel)
Node to tree of node types

Parameters:
thisNode - node
thisLevel - level
Returns:
string for this node and children

toDocType

public static java.lang.String toDocType(org.w3c.dom.DocumentType thisDocTypeNode)
DocType to string

Parameters:
thisDocTypeNode - DocType node
Returns:
string