public abstract class PanTxtFormatter extends AbstractFormatter
| Modifier | Constructor and Description |
|---|---|
protected |
PanTxtFormatter(String suffix,
String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
readChild(Element element,
PrintWriter ps,
int level,
String name)
Reads each child.
|
String |
tabMaker(int n)
Calculates the number of tabulations to write at the beginning of a line
|
abstract void |
write(Element root,
String rootName,
PrintWriter ps)
Reads the configuration tree and writes it in an xml file.
|
abstract void |
writeBegin(PrintWriter ps,
String nbTab,
String name,
int level,
String type)
Writes in the PrintWriter.
|
abstract void |
writeEnd(PrintWriter ps,
String nbTab,
String type)
Writes end tags in the PrintWriter for PanFormatter.
|
abstract void |
writeProperties(PrintWriter ps,
String nbTab,
String name,
String type,
String value)
Writes in the PrintWriter.
|
getFormatKey, getPrintWriter, getResultURI, write, writepublic abstract void write(Element root, String rootName, PrintWriter ps)
root - root element of the treerootName - name of the root elementps - the PrintWriterpublic void readChild(Element element, PrintWriter ps, int level, String name)
element - element to treatps - PrintWriterlevel - Level of the node in the treename - name of the elementpublic abstract void writeBegin(PrintWriter ps, String nbTab, String name, int level, String type)
ps - PrintWriternbTab - number of tab to write before textname - name of the elementlevel - level of the node in the treetype - type of the elementpublic abstract void writeEnd(PrintWriter ps, String nbTab, String type)
ps - PrintWriternbTab - number of tab to write before texttype - type of the elementpublic abstract void writeProperties(PrintWriter ps, String nbTab, String name, String type, String value)
ps - PrintWriternbTab - number of tab to write before textname - name of the elementtype - type of the elementvalue - value of the elementpublic String tabMaker(int n)
n - number of tabulationsCopyright © 2014 Quattor. All Rights Reserved.