org.clazzes.jdbc2xml.sax
Class XmlPrettyConfig

java.lang.Object
  extended by org.clazzes.jdbc2xml.sax.XmlPrettyConfig

public class XmlPrettyConfig
extends Object

Configuration for XmlPretty.

Author:
rbreuss

Constructor Summary
XmlPrettyConfig()
          Create a new instance and set
active = true
width = 2
maxDepth = 8.
XmlPrettyConfig(int width, int maxDepth)
          Create a new instance.
 
Method Summary
 void addSingleLineTag(String tagName)
          All data inside the passed tag will be formatted as a single line (without line breaks).
 int getMaxDepth()
           
 List<String> getSingleLineTags()
           
 int getWidth()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlPrettyConfig

public XmlPrettyConfig()
Create a new instance and set
active = true
width = 2
maxDepth = 8.


XmlPrettyConfig

public XmlPrettyConfig(int width,
                       int maxDepth)
Create a new instance.

Parameters:
width - Indentation.
maxDepth - Maximum depth to indent.
Method Detail

addSingleLineTag

public void addSingleLineTag(String tagName)
All data inside the passed tag will be formatted as a single line (without line breaks).

Parameters:
tagName - The tag to omit line breaks for.

getWidth

public int getWidth()
Returns:
the width

getMaxDepth

public int getMaxDepth()
Returns:
the maxDepth

getSingleLineTags

public List<String> getSingleLineTags()
Returns:
the singleLineTags

isActive

public boolean isActive()
Returns:
the active

setActive

public void setActive(boolean active)
Parameters:
active - the active to set


Copyright © 2012. All Rights Reserved.