com.googlecode.jslint4java.formatter
Class XmlFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.formatter.XmlFormatter
Direct Known Subclasses:
CheckstyleXmlFormatter, JSLintXmlFormatter, JUnitXmlFormatter, ReportFormatter

public abstract class XmlFormatter
extends Object

A convenience super-class for generating XML through a StringBuilder.


Constructor Summary
XmlFormatter()
           
 
Method Summary
protected  String attr(String key, String value)
           
protected  String escape(String str)
           
 String footer()
           
 String header()
           
protected abstract  String root()
          The name of the root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFormatter

public XmlFormatter()
Method Detail

attr

protected String attr(String key,
                      String value)

escape

protected String escape(String str)

footer

public String footer()

header

public String header()

root

protected abstract String root()
The name of the root element.



Copyright © 2007-2012. All Rights Reserved.