org.apache.myfaces.buildtools.maven2.plugin.builder.io
Class XmlWriter

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.io.XmlWriter

public class XmlWriter
extends Object

Simple utility to help write out data structures in xml format, with pretty indenting.


Constructor Summary
XmlWriter(PrintWriter out)
           
 
Method Summary
 void beginElement(String name)
           
 void endElement(String name)
           
 void writeAttr(String name, String value)
           
 void writeElement(String name, boolean value)
           
 void writeElement(String name, Boolean value)
           
 void writeElement(String name, String body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlWriter

public XmlWriter(PrintWriter out)
Method Detail

writeElement

public void writeElement(String name,
                         String body)

writeElement

public void writeElement(String name,
                         boolean value)

writeElement

public void writeElement(String name,
                         Boolean value)

beginElement

public void beginElement(String name)

writeAttr

public void writeAttr(String name,
                      String value)

endElement

public void endElement(String name)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.