org.apache.maven.tools.plugin.generator
Class PrettyPrintXMLWriter

java.lang.Object
  extended by org.codehaus.plexus.util.xml.PrettyPrintXMLWriter
      extended by org.apache.maven.tools.plugin.generator.PrettyPrintXMLWriter
All Implemented Interfaces:
org.codehaus.plexus.util.xml.XMLWriter

public class PrettyPrintXMLWriter
extends org.codehaus.plexus.util.xml.PrettyPrintXMLWriter

Copied from plexus-utils 1.3-SNAPSHOT as we can't upgrade it yet. This class can be removed when a newer version of plexus-utils is included with Maven

See Also:
PrettyPrintXMLWriter

Constructor Summary
PrettyPrintXMLWriter(PrintWriter writer)
           
PrettyPrintXMLWriter(PrintWriter writer, String lineIndenter)
           
PrettyPrintXMLWriter(PrintWriter writer, String encoding, String doctype)
           
PrettyPrintXMLWriter(PrintWriter writer, String lineIndenter, String encoding, String doctype)
           
PrettyPrintXMLWriter(Writer writer)
           
PrettyPrintXMLWriter(Writer writer, String lineIndenter)
           
PrettyPrintXMLWriter(Writer writer, String encoding, String doctype)
           
PrettyPrintXMLWriter(Writer writer, String lineIndenter, String encoding, String doctype)
           
 
Method Summary
 void endElement()
           
protected  void endOfLine()
          Write the end of line character (using system line separator) and start new line with indentation
protected  int getDepth()
          Get the current depth in the xml indentation
protected  String getLineIndenter()
          Get the string used as line indenter
protected  PrintWriter getWriter()
          Get the underlying writer
protected  void setDepth(int depth)
          Set the current depth in the xml indentation
protected  void setLineIndenter(String lineIndenter)
          Set the string used as line indenter
protected  void setWriter(PrintWriter writer)
          Set the underlying writer
 void startElement(String name)
           
 
Methods inherited from class org.codehaus.plexus.util.xml.PrettyPrintXMLWriter
addAttribute, writeMarkup, writeText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(PrintWriter writer,
                            String lineIndenter)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(Writer writer,
                            String lineIndenter)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(PrintWriter writer)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(Writer writer)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(PrintWriter writer,
                            String lineIndenter,
                            String encoding,
                            String doctype)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(Writer writer,
                            String lineIndenter,
                            String encoding,
                            String doctype)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(PrintWriter writer,
                            String encoding,
                            String doctype)

PrettyPrintXMLWriter

public PrettyPrintXMLWriter(Writer writer,
                            String encoding,
                            String doctype)
Method Detail

getLineIndenter

protected String getLineIndenter()
Get the string used as line indenter

Returns:
the line indenter

setLineIndenter

protected void setLineIndenter(String lineIndenter)
Set the string used as line indenter

Parameters:
lineIndenter -

endOfLine

protected void endOfLine()
Write the end of line character (using system line separator) and start new line with indentation

Overrides:
endOfLine in class org.codehaus.plexus.util.xml.PrettyPrintXMLWriter

setWriter

protected void setWriter(PrintWriter writer)
Set the underlying writer

Parameters:
writer -

getWriter

protected PrintWriter getWriter()
Get the underlying writer

Returns:
the underlying writer

setDepth

protected void setDepth(int depth)
Set the current depth in the xml indentation

Parameters:
depth -

getDepth

protected int getDepth()
Get the current depth in the xml indentation

Returns:

startElement

public void startElement(String name)
Specified by:
startElement in interface org.codehaus.plexus.util.xml.XMLWriter
Overrides:
startElement in class org.codehaus.plexus.util.xml.PrettyPrintXMLWriter

endElement

public void endElement()
Specified by:
endElement in interface org.codehaus.plexus.util.xml.XMLWriter
Overrides:
endElement in class org.codehaus.plexus.util.xml.PrettyPrintXMLWriter


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.