asia.redact.bracket.properties
Class GenerateXMLNodeVisitor

java.lang.Object
  extended by asia.redact.bracket.properties.GenerateXMLNodeVisitor
All Implemented Interfaces:
NodeVisitor

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.
  

Author:
Dave

Field Summary
(package private)  int level
           
(package private) static String lineSeparator
           
(package private)  String NS
           
(package private)  HashSet<Node> set
           
(package private)  Writer writer
           
 
Constructor Summary
GenerateXMLNodeVisitor(Writer writer)
           
 
Method Summary
 void action(Node node)
           
 void post(Node node)
           
 void pre(Node node)
           
 void setLevel(int level)
           
private  String spaces()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineSeparator

static final String lineSeparator

NS

final String NS
See Also:
Constant Field Values

writer

final Writer writer

level

int level

set

final HashSet<Node> set
Constructor Detail

GenerateXMLNodeVisitor

public GenerateXMLNodeVisitor(Writer writer)
Method Detail

pre

public void pre(Node node)
Specified by:
pre in interface NodeVisitor

action

public void action(Node node)
Specified by:
action in interface NodeVisitor

post

public void post(Node node)
Specified by:
post in interface NodeVisitor

setLevel

public void setLevel(int level)
Specified by:
setLevel in interface NodeVisitor

spaces

private String spaces()


Copyright © 2011-2013 David R. Smith. All Rights Reserved.