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