public class XmlFile extends MarkupFile
DoKontakt doKontakt1 = new DoKontakt();
doKontakt1.select("*", "TELENR <> \'\'", "NAMNAC, NAMVOR");
de.must.io.XmlFile XmlFile1 = new de.must.io.XmlFile("Fon", "Telefonliste", "MustMarketing");
XmlFile1.list(doKontakt1, new String[] {"NAMNAC", "NAMVOR", "TELENR", "FONPRV"});
XmlFile1.close();
XmlFile1.presentInBrowser();
doKontakt1.closeQuery();
fileExtension, fileName, generator, mode, MODE_HTML, MODE_XML_XSL, title
Constructor and Description |
---|
XmlFile(java.lang.String fileName,
java.lang.String title,
java.lang.String generator)
Constructs a new XML ouput file.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.String elementName,
java.lang.String value)
Adds an element.
|
void |
addElementNonConverted(java.lang.String elementName,
java.lang.String value)
Adds an element.
|
void |
completeAllOpenTagNodes()
Completes all open tag nodes.
|
void |
completeCurrentTagNode()
Completes the current tag node and goes one step back in element hierarchy.
|
protected java.lang.String |
getConvertedString(char charToConvert)
Returns the HTML compatible converted string.
|
void |
list(DataObject dataObjectToList,
java.lang.String[] columns,
ProgressFrame ControllingProgressFrame)
List the content of the data object as previously selected.
|
void |
newTagNode(java.lang.String nodeName)
Begins a new tag node.
|
protected void |
outputFooter()
Outputs the footer.
|
protected void |
outputHeader()
Outputs the header.
|
void |
outputHeader(java.lang.String xslFileName)
Outputs the header.
|
protected void |
outputItem(DataObject DataObjectToList,
java.lang.String[] columns)
Ouptuts items (columns) of the current row of the data object.
|
void |
outputStandardEntityDefinitionList()
Outputs the standard entitiy definition list.
|
void |
presentInBrowser()
Presents the XML file in the browser.
|
close, finalize, flush, list, openOutputFile, openOutputWriter, startTableIfNecessary, stopTableIfNecessary, write, writeln, writelnNonConverted, writeNonConverted
public XmlFile(java.lang.String fileName, java.lang.String title, java.lang.String generator) throws java.io.IOException
fileName
- the name of the output file (path)title
- the title of the XML filegenerator
- the name of the generatorjava.io.IOException
public void list(DataObject dataObjectToList, java.lang.String[] columns, ProgressFrame ControllingProgressFrame)
list
in class MarkupFile
dataObjectToList
- the data object, whose selectted content is to be listedcolumns
- the columns to listControllingProgressFrame
- the controlling progress frameprotected void outputHeader()
outputHeader
in class MarkupFile
public void outputHeader(java.lang.String xslFileName)
xslFileName
- the name of the xslFileName to use.public void outputStandardEntityDefinitionList()
protected void outputItem(DataObject DataObjectToList, java.lang.String[] columns)
outputItem
in class MarkupFile
dataObjectToList
- the data object, whose selectted content is to be listedcolumns
- the columns to listprotected void outputFooter()
outputFooter
in class MarkupFile
protected java.lang.String getConvertedString(char charToConvert)
getConvertedString
in class MarkupFile
charToConvert
- the char to convertpublic void newTagNode(java.lang.String nodeName)
nodeName
- the name of the tag to beginpublic void addElement(java.lang.String elementName, java.lang.String value)
elementName
- the name of the elementvalue
- the value of the elementpublic void addElementNonConverted(java.lang.String elementName, java.lang.String value)
elementName
- the name of the elementvalue
- the value of the elementpublic void completeCurrentTagNode()
public void completeAllOpenTagNodes()
public void presentInBrowser()
presentInBrowser
in class MarkupFile
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de