public class ImmoXmlWritingExample extends Object
This example illustrates the programatic creation of ImmoXML documents and how they are written into XML.
| Constructor and Description |
|---|
ImmoXmlWritingExample() |
| Modifier and Type | Method and Description |
|---|---|
protected static Anbieter |
createAnbieter()
Create an
Anbieter with some example data. |
protected static Immobilie |
createImmobilie()
Create an
Immobilie with some example data. |
protected static Uebertragung |
createUebertragung()
Create an
Uebertragung with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(ImmoXmlDocument doc,
File file)
Write an
ImmoXmlDocument into a File. |
protected static void |
write(ImmoXmlDocument doc,
OutputStream output)
Write an
ImmoXmlDocument into an OutputStream. |
protected static void |
write(ImmoXmlDocument doc,
Writer output)
Write an
ImmoXmlDocument into a Writer. |
protected static void |
writeToConsole(ImmoXmlDocument doc)
Write an
ImmoXmlDocument into a String and print the
results to the console. |
public static void main(String[] args)
args - command line argumentsprotected static Anbieter createAnbieter()
Anbieter with some example data.protected static Immobilie createImmobilie()
Immobilie with some example data.protected static Uebertragung createUebertragung()
Uebertragung with some example data.protected static void write(ImmoXmlDocument doc, File file)
ImmoXmlDocument into a File.doc - the document to writefile - the file, where the document is written toprotected static void write(ImmoXmlDocument doc, OutputStream output)
ImmoXmlDocument into an OutputStream.doc - the document to writeoutput - the stream, where the document is written toprotected static void write(ImmoXmlDocument doc, Writer output)
ImmoXmlDocument into a Writer.doc - the document to writeoutput - the writer, where the document is written toprotected static void writeToConsole(ImmoXmlDocument doc)
ImmoXmlDocument into a String and print the
results to the console.doc - the document to writeCopyright © 2015 OpenEstate. All rights reserved.