public class OpenImmoWritingExample extends Object
This example illustrates the programatic creation of OpenImmo documents, how they are written into XML and how they are downgraded to earlier versions.
Constructor and Description |
---|
OpenImmoWritingExample() |
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(OpenImmoTransferDocument doc,
File file)
Write an
OpenImmoTransferDocument into a File . |
protected static void |
write(OpenImmoTransferDocument doc,
OutputStream output)
Write an
OpenImmoTransferDocument into an OutputStream . |
protected static void |
write(OpenImmoTransferDocument doc,
Writer output)
Write an
OpenImmoTransferDocument into a Writer . |
protected static void |
writeToConsole(OpenImmoTransferDocument doc)
Write an
OpenImmoTransferDocument 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(OpenImmoTransferDocument doc, File file)
OpenImmoTransferDocument
into a File
.doc
- the document to writefile
- the file, where the document is written toprotected static void write(OpenImmoTransferDocument doc, OutputStream output)
OpenImmoTransferDocument
into an OutputStream
.doc
- the document to writeoutput
- the stream, where the document is written toprotected static void write(OpenImmoTransferDocument doc, Writer output)
OpenImmoTransferDocument
into a Writer
.doc
- the document to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(OpenImmoTransferDocument doc)
OpenImmoTransferDocument
into a String
and print the
results to the console.doc
- the document to writeCopyright © 2015 OpenEstate. All rights reserved.