org.graffiti.plugin
Class XMLHelper

java.lang.Object
  extended by org.graffiti.plugin.XMLHelper

public class XMLHelper
extends Object

Contains some (static) auxiliary methods for writing XML.


Field Summary
static boolean useIndentation
          Indicates whether or not indent XML elements.
 
Constructor Summary
XMLHelper()
           
 
Method Summary
static String getDelimiter()
          Returns a string used to separate XML elements for better readability.
static String spc(int n)
          Returns a String containing n spaces (or the empty String if useIndentation is set to false).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useIndentation

public static boolean useIndentation
Indicates whether or not indent XML elements.

Constructor Detail

XMLHelper

public XMLHelper()
Method Detail

getDelimiter

public static String getDelimiter()
Returns a string used to separate XML elements for better readability.

Returns:
XML element delimiter string

spc

public static String spc(int n)
Returns a String containing n spaces (or the empty String if useIndentation is set to false).

Parameters:
n - number of spaces
Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:00:14 PM CEST