|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.XmlNodePrinter
public class XmlNodePrinter
Prints a node with all children in XML format.
NodePrinter
Field Summary | |
---|---|
protected IndentPrinter |
out
|
Constructor Summary | |
---|---|
XmlNodePrinter()
|
|
XmlNodePrinter(IndentPrinter out,
String quote)
|
|
XmlNodePrinter(PrintWriter out)
|
|
XmlNodePrinter(PrintWriter out,
String indent)
|
|
XmlNodePrinter(PrintWriter out,
String indent,
String quote)
|
Method Summary | |
---|---|
String |
getNameOfNode(Node node)
|
String |
getQuote()
Get Quote to use when printing attributes. |
boolean |
isEmptyElement(Node node)
|
boolean |
isNamespaceAware()
Check if namespace handling is enabled. |
void |
print(Node node)
|
protected void |
print(Node node,
groovy.util.XmlNodePrinter.NamespaceContext ctx)
|
protected void |
printLineBegin()
|
protected void |
printLineEnd()
|
protected void |
printLineEnd(String comment)
|
protected void |
printList(List list,
groovy.util.XmlNodePrinter.NamespaceContext ctx)
|
protected void |
printName(Node node,
groovy.util.XmlNodePrinter.NamespaceContext ctx,
boolean begin)
|
protected void |
printNameAttributes(Map attributes)
|
protected void |
printNamespace(Node node,
groovy.util.XmlNodePrinter.NamespaceContext ctx)
|
protected void |
printSimpleItem(Object value)
|
protected boolean |
printSpecialNode(Node node)
|
void |
setNamespaceAware(boolean namespaceAware)
Enable and/or disable namespace handling. |
void |
setQuote(String quote)
Set Quote to use when printing attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IndentPrinter out
Constructor Detail |
---|
public XmlNodePrinter(PrintWriter out)
public XmlNodePrinter(PrintWriter out, String indent)
public XmlNodePrinter(PrintWriter out, String indent, String quote)
public XmlNodePrinter(IndentPrinter out, String quote)
public XmlNodePrinter()
Method Detail |
---|
public String getNameOfNode(Node node)
public boolean isEmptyElement(Node node)
public void print(Node node)
public boolean isNamespaceAware()
public void setNamespaceAware(boolean namespaceAware)
namespaceAware
- the new desired valuepublic String getQuote()
public void setQuote(String quote)
quote
- the quote characterprotected void print(Node node, groovy.util.XmlNodePrinter.NamespaceContext ctx)
protected void printLineBegin()
protected void printLineEnd()
protected void printLineEnd(String comment)
protected void printList(List list, groovy.util.XmlNodePrinter.NamespaceContext ctx)
protected void printSimpleItem(Object value)
protected void printName(Node node, groovy.util.XmlNodePrinter.NamespaceContext ctx, boolean begin)
protected void printNameAttributes(Map attributes)
protected boolean printSpecialNode(Node node)
protected void printNamespace(Node node, groovy.util.XmlNodePrinter.NamespaceContext ctx)
|
Copyright © 2003-2008 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |