groovy.util
Class XmlNodePrinter
java.lang.Object
groovy.util.XmlNodePrinter
public class XmlNodePrinter
- extends Object
Prints a node with all childs in XML format.
- Author:
- Christian Stein
- See Also:
NodePrinter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected final IndentPrinter out
XmlNodePrinter
public XmlNodePrinter()
XmlNodePrinter
public XmlNodePrinter(PrintWriter out)
XmlNodePrinter
public XmlNodePrinter(PrintWriter out,
String indent)
XmlNodePrinter
public XmlNodePrinter(PrintWriter out,
String indent,
String quote)
XmlNodePrinter
public XmlNodePrinter(IndentPrinter out,
String quote)
getNameOfNode
public String getNameOfNode(Node node)
isEmptyElement
public boolean isEmptyElement(Node node)
print
public void print(Node node)
printLineBegin
protected void printLineBegin()
printLineEnd
protected void printLineEnd()
printLineEnd
protected void printLineEnd(String comment)
printList
protected void printList(List list)
printName
protected void printName(Node node,
boolean begin)
printNameAttributes
protected void printNameAttributes(Map attributes)
printSpecialNode
protected boolean printSpecialNode(Node node)
Copyright © 2003-2010 The Codehaus. All Rights Reserved.