public class GenerateXMLNodeVisitor extends Object implements NodeVisitor
Format properties into xml. The default namespace is http://code.google.com/p/bracket-properties Not all properties may be amenable to this representation.
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
level |
(package private) static String |
lineSeparator |
(package private) String |
NS |
(package private) HashSet<Node> |
set |
(package private) Writer |
writer |
| Constructor and Description |
|---|
GenerateXMLNodeVisitor(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(Node node) |
void |
post(Node node) |
void |
pre(Node node) |
void |
setLevel(int level) |
protected String |
spaces() |
protected boolean |
validateNodeNameForUseAsXMLElement(Node node) |
protected boolean |
validateNodeNameForUseAsXMLElement(String name) |
static final String lineSeparator
final String NS
final Writer writer
int level
public GenerateXMLNodeVisitor(Writer writer)
public void pre(Node node)
pre in interface NodeVisitorpublic void action(Node node)
action in interface NodeVisitorpublic void post(Node node)
post in interface NodeVisitorpublic void setLevel(int level)
setLevel in interface NodeVisitorprotected String spaces()
protected boolean validateNodeNameForUseAsXMLElement(Node node)
protected boolean validateNodeNameForUseAsXMLElement(String name)
Copyright © 2011-2014 David R. Smith. All Rights Reserved.