|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Prints a node with all children in XML format.
Field Summary | |
---|---|
boolean |
namespaceAware
|
IndentPrinter |
out
|
String |
quote
|
Constructor Summary | |
XmlNodePrinter(PrintWriter out)
|
|
XmlNodePrinter(PrintWriter out, String indent)
|
|
XmlNodePrinter(PrintWriter out, String indent, String quote)
|
|
XmlNodePrinter(IndentPrinter out, String quote)
|
|
XmlNodePrinter()
|
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)
|
void |
print(Node node, NamespaceContext ctx)
|
void |
printEscaped(String s)
|
void |
printLineBegin()
|
void |
printLineEnd()
|
void |
printLineEnd(String comment)
|
void |
printList(List list, NamespaceContext ctx)
|
void |
printName(Node node, NamespaceContext ctx, boolean begin)
|
void |
printNameAttributes(Map attributes)
|
void |
printNamespace(Node node, NamespaceContext ctx)
|
void |
printSimpleItem(Object value)
|
void |
printSimpleItemWithIndent(Object value)
|
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. |
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 String getQuote()
public boolean isEmptyElement(Node node)
public boolean isNamespaceAware()
public void print(Node node)
void print(Node node, NamespaceContext ctx)
void printEscaped(String s)
void printLineBegin()
void printLineEnd()
void printLineEnd(String comment)
void printList(List list, NamespaceContext ctx)
void printName(Node node, NamespaceContext ctx, boolean begin)
void printNameAttributes(Map attributes)
void printNamespace(Node node, NamespaceContext ctx)
void printSimpleItem(Object value)
void printSimpleItemWithIndent(Object value)
boolean printSpecialNode(Node node)
public void setNamespaceAware(boolean namespaceAware)
public void setQuote(String quote)