org.quattor.pan.output
Class XmlDBFormatter

java.lang.Object
  extended by org.quattor.pan.output.XmlDBFormatter
All Implemented Interfaces:
Formatter

public class XmlDBFormatter
extends java.lang.Object
implements Formatter


Method Summary
 java.lang.String getFileExtension()
          Return the file extension for files written with this formatter.
 java.lang.String getFormatKey()
          Returns the name of the formatter that will be used to identify it.
static XmlDBFormatter getInstance()
           
 void write(Element root, java.lang.String rootName, java.io.PrintWriter ps)
          Reads this Tree and writes it in a file within the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XmlDBFormatter getInstance()

getFileExtension

public java.lang.String getFileExtension()
Description copied from interface: Formatter
Return the file extension for files written with this formatter. The implementation may not return null.

Specified by:
getFileExtension in interface Formatter
Returns:
String containing the file extension to use

getFormatKey

public java.lang.String getFormatKey()
Description copied from interface: Formatter
Returns the name of the formatter that will be used to identify it. This key is used as the value for the command line and for the ant task. The returned key must not be null.

Specified by:
getFormatKey in interface Formatter
Returns:
String identifying this formatter

write

public void write(Element root,
                  java.lang.String rootName,
                  java.io.PrintWriter ps)
Description copied from interface: Formatter
Reads this Tree and writes it in a file within the given context.

Specified by:
write in interface Formatter
Parameters:
root - root element of the configuration tree
rootName - name of root element
ps - the PrintStream used to write the file


Copyright © 2011 Quattor. All Rights Reserved.