public class XmlNodePrinter
extends java.lang.Object
NodePrinter
Modifier and Type | Field and Description |
---|---|
protected IndentPrinter |
out |
Constructor and Description |
---|
XmlNodePrinter() |
XmlNodePrinter(IndentPrinter out,
java.lang.String quote) |
XmlNodePrinter(java.io.PrintWriter out) |
XmlNodePrinter(java.io.PrintWriter out,
java.lang.String indent) |
XmlNodePrinter(java.io.PrintWriter out,
java.lang.String indent,
java.lang.String quote) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQuote()
Get Quote to use when printing attributes.
|
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(java.lang.String comment) |
protected void |
printList(java.util.List list,
groovy.util.XmlNodePrinter.NamespaceContext ctx) |
protected void |
printName(Node node,
groovy.util.XmlNodePrinter.NamespaceContext ctx,
boolean begin) |
protected void |
printNameAttributes(java.util.Map attributes,
groovy.util.XmlNodePrinter.NamespaceContext ctx) |
protected void |
printNamespace(java.lang.Object object,
groovy.util.XmlNodePrinter.NamespaceContext ctx) |
protected void |
printSimpleItem(java.lang.Object value) |
protected boolean |
printSpecialNode(Node node) |
void |
setNamespaceAware(boolean namespaceAware)
Enable and/or disable namespace handling.
|
void |
setQuote(java.lang.String quote)
Set Quote to use when printing attributes.
|
protected final IndentPrinter out
public XmlNodePrinter(java.io.PrintWriter out)
public XmlNodePrinter(java.io.PrintWriter out, java.lang.String indent)
public XmlNodePrinter(java.io.PrintWriter out, java.lang.String indent, java.lang.String quote)
public XmlNodePrinter(IndentPrinter out, java.lang.String quote)
public XmlNodePrinter()
public void print(Node node)
public boolean isNamespaceAware()
public void setNamespaceAware(boolean namespaceAware)
namespaceAware
- the new desired valuepublic java.lang.String getQuote()
public void setQuote(java.lang.String quote)
quote
- the quote characterprotected void print(Node node, groovy.util.XmlNodePrinter.NamespaceContext ctx)
protected void printLineBegin()
protected void printLineEnd()
protected void printLineEnd(java.lang.String comment)
protected void printList(java.util.List list, groovy.util.XmlNodePrinter.NamespaceContext ctx)
protected void printSimpleItem(java.lang.Object value)
protected void printName(Node node, groovy.util.XmlNodePrinter.NamespaceContext ctx, boolean begin)
protected boolean printSpecialNode(Node node)
protected void printNamespace(java.lang.Object object, groovy.util.XmlNodePrinter.NamespaceContext ctx)
protected void printNameAttributes(java.util.Map attributes, groovy.util.XmlNodePrinter.NamespaceContext ctx)