signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "gruppennummer" ) public JAXBElement < String > createGruppennummer ( String value ) { } }

implementation: return new JAXBElement < String > ( _Gruppennummer_QNAME , String . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "zugang" ) public JAXBElement < String > createZugang ( String value ) { } }

implementation: return new JAXBElement < String > ( _Zugang_QNAME , String . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Calendar } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "aktiv_von" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createAktivVon ( Calendar value ) { } }

implementation: return new JAXBElement < Calendar > ( _AktivVon_QNAME , Calendar . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Calendar } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "aktiv_bis" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createAktivBis ( Calendar value ) { } }

implementation: return new JAXBElement < Calendar > ( _AktivBis_QNAME , Calendar . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link BigDecimal } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "laufzeit" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createLaufzeit ( BigDecimal value ) { } }

implementation: return new JAXBElement < BigDecimal > ( _Laufzeit_QNAME , BigDecimal . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "haustiere" ) public JAXBElement < Boolean > createHaustiere ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _Haustiere_QNAME , Boolean . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "denkmalgeschuetzt" ) public JAXBElement < Boolean > createDenkmalgeschuetzt ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _Denkmalgeschuetzt_QNAME , Boolean . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Calendar } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "stand_vom" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createStandVom ( Calendar value ) { } }

implementation: return new JAXBElement < Calendar > ( _StandVom_QNAME , Calendar . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "kennung_ursprung" ) public JAXBElement < String > createKennungUrsprung ( String value ) { } }

implementation: return new JAXBElement < String > ( _KennungUrsprung_QNAME , String . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "immoxml_obid" ) public JAXBElement < String > createImmoxmlObid ( String value ) { } }

implementation: return new JAXBElement < String > ( _ImmoxmlObid_QNAME , String . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "weitergabe_generell" ) public JAXBElement < Boolean > createWeitergabeGenerell ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _WeitergabeGenerell_QNAME , Boolean . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "als_ferien" ) public JAXBElement < Boolean > createAlsFerien ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _AlsFerien_QNAME , Boolean . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "gewerbliche_nutzung" ) public JAXBElement < Boolean > createGewerblicheNutzung ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _GewerblicheNutzung_QNAME , Boolean . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "branchen" ) public JAXBElement < String > createBranchen ( String value ) { } }

implementation: return new JAXBElement < String > ( _Branchen_QNAME , String . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.immoxml.de" , name = "hochhaus" ) public JAXBElement < Boolean > createHochhaus ( Boolean value ) { } }

implementation: return new JAXBElement < Boolean > ( _Hochhaus_QNAME , Boolean . class , null , value ) ;


signature:
public class OpenImmoWritingExample { /** * Start the example application .
 * @ param args command line arguments */
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { } }

implementation:
// init logging
PropertyConfigurator . configure ( OpenImmoWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create an Openimmo object with some example data
// this object corresponds to the < openimmo > root element in XML
Openimmo openimmo = FACTORY . createOpenimmo ( ) ; openimmo . setUebertragung ( createUebertragung ( ) ) ; openimmo . getAnbieter ( ) . add ( createAnbieter ( ) ) ; // convert the Openimmo object into a XML document
OpenImmoTransferDocument doc = null ; try { doc = OpenImmoTransferDocument . newDocument ( openimmo ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . File
try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . OutputStream
write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java . io . Writer
write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console
writeToConsole ( doc ) ; // downgrade XML document to an earlier version
// and write it to the console
doc . downgrade ( OpenImmoVersion . V1_2_3 ) ; writeToConsole ( doc ) ; // downgrade XML document to the first version
// and write it to the console
doc . downgrade ( OpenImmoVersion . V1_1 ) ; writeToConsole ( doc ) ;


signature:
public class OpenImmoWritingExample { /** * Create an { @ link Anbieter } with some example data .
 * @ return created example object */
protected static Anbieter createAnbieter ( ) { } }

implementation:
// create an example agency
Anbieter anbieter = FACTORY . createAnbieter ( ) ; anbieter . setAnbieternr ( "123456" ) ; anbieter . setFirma ( "Agency Name" ) ; anbieter . setOpenimmoAnid ( "123456" ) ; // add some real estates to the agency
anbieter . getImmobilie ( ) . add ( createImmobilie ( ) ) ; anbieter . getImmobilie ( ) . add ( createImmobilie ( ) ) ; return anbieter ;


signature:
public class OpenImmoWritingExample { /** * Create an { @ link Immobilie } with some example data .
 * @ return created example object */
protected static Immobilie createImmobilie ( ) { } }

implementation:
// create an example real estate
Immobilie immobilie = FACTORY . createImmobilie ( ) ; // add some administrative information
immobilie . setVerwaltungTechn ( FACTORY . createVerwaltungTechn ( ) ) ; immobilie . getVerwaltungTechn ( ) . setAktion ( FACTORY . createAktion ( ) ) ; immobilie . getVerwaltungTechn ( ) . getAktion ( ) . setAktionart ( Aktion . AktionArt . CHANGE ) ; immobilie . getVerwaltungTechn ( ) . setObjektnrIntern ( RandomStringUtils . randomNumeric ( 10 ) ) ; // set categorization
immobilie . setObjektkategorie ( FACTORY . createObjektkategorie ( ) ) ; immobilie . getObjektkategorie ( ) . setNutzungsart ( FACTORY . createNutzungsart ( ) ) ; immobilie . getObjektkategorie ( ) . getNutzungsart ( ) . setANLAGE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; immobilie . getObjektkategorie ( ) . getNutzungsart ( ) . setGEWERBE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; immobilie . getObjektkategorie ( ) . getNutzungsart ( ) . setWAZ ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; immobilie . getObjektkategorie ( ) . getNutzungsart ( ) . setWOHNEN ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; immobilie . getObjektkategorie ( ) . setVermarktungsart ( FACTORY . createVermarktungsart ( ) ) ; immobilie . getObjektkategorie ( ) . getVermarktungsart ( ) . setKAUF ( true ) ; immobilie . getObjektkategorie ( ) . setObjektart ( FACTORY . createObjektart ( ) ) ; Haus singleFamilyHouse = FACTORY . createHaus ( ) ; singleFamilyHouse . setHaustyp ( Haus . Haustyp . EINFAMILIENHAUS ) ; immobilie . getObjektkategorie ( ) . getObjektart ( ) . getHaus ( ) . add ( singleFamilyHouse ) ; // add some information about the location
immobilie . setGeo ( FACTORY . createGeo ( ) ) ; immobilie . getGeo ( ) . setPlz ( RandomStringUtils . randomNumeric ( 5 ) ) ; immobilie . getGeo ( ) . setOrt ( "Berlin" ) ; immobilie . getGeo ( ) . setLand ( FACTORY . createLand ( ) ) ; immobilie . getGeo ( ) . getLand ( ) . setIsoLand ( Locale . GERMANY . getISO3Country ( ) ) ; // add some information about prices
immobilie . setPreise ( FACTORY . createPreise ( ) ) ; immobilie . getPreise ( ) . setHeizkosten ( new BigDecimal ( "456.0" ) ) ; immobilie . getPreise ( ) . setKaufpreis ( FACTORY . createKaufpreis ( ) ) ; immobilie . getPreise ( ) . getKaufpreis ( ) . setAufAnfrage ( false ) ; immobilie . getPreise ( ) . getKaufpreis ( ) . setValue ( new BigDecimal ( "123456.79" ) ) ; // add some information about features
immobilie . setAusstattung ( FACTORY . createAusstattung ( ) ) ; immobilie . getAusstattung ( ) . setGaestewc ( true ) ; immobilie . getAusstattung ( ) . setGartennutzung ( true ) ; immobilie . getAusstattung ( ) . setHeizungsart ( FACTORY . createHeizungsart ( ) ) ; immobilie . getAusstattung ( ) . getHeizungsart ( ) . setZENTRAL ( true ) ; immobilie . getAusstattung ( ) . getHeizungsart ( ) . setFUSSBODEN ( true ) ; // add some descriptions
immobilie . setFreitexte ( FACTORY . createFreitexte ( ) ) ; immobilie . getFreitexte ( ) . setObjekttitel ( "A title for the property." ) ; immobilie . getFreitexte ( ) . setObjektbeschreibung ( "Some longer descriptive text about the property." ) ; // set the contact person
immobilie . setKontaktperson ( FACTORY . createKontaktperson ( ) ) ; immobilie . getKontaktperson ( ) . setName ( "Max Mustermann" ) ; immobilie . getKontaktperson ( ) . setEmailFeedback ( "max@mustermann.org" ) ; immobilie . getKontaktperson ( ) . setTelDurchw ( "030/123456789" ) ; immobilie . getKontaktperson ( ) . setPlz ( RandomStringUtils . randomNumeric ( 5 ) ) ; immobilie . getKontaktperson ( ) . setOrt ( "Berlin" ) ; immobilie . getKontaktperson ( ) . setLand ( FACTORY . createLand ( ) ) ; immobilie . getKontaktperson ( ) . getLand ( ) . setIsoLand ( Locale . GERMANY . getISO3Country ( ) ) ; return immobilie ;


signature:
public class OpenImmoWritingExample { /** * Create an { @ link Uebertragung } with some example data .
 * @ return created example object */
protected static Uebertragung createUebertragung ( ) { } }

implementation:
// create an example transfer
Uebertragung uebertragung = FACTORY . createUebertragung ( ) ; uebertragung . setArt ( Uebertragung . Art . OFFLINE ) ; uebertragung . setModus ( Uebertragung . Modus . NEW ) ; uebertragung . setSendersoftware ( "OpenEstate-IO" ) ; uebertragung . setSenderversion ( "1.4" ) ; uebertragung . setTechnEmail ( "test@test.org" ) ; uebertragung . setTimestamp ( Calendar . getInstance ( ) ) ; uebertragung . setUmfang ( Uebertragung . Umfang . VOLL ) ; return uebertragung ;


signature:
public class FilemakerWritingExample { /** * Start the example application .
 * @ param args command line arguments */
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { } }

implementation:
// init logging
PropertyConfigurator . configure ( FilemakerWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a FMPXMLRESULT object with some example data
// this object corresponds to the < FMPXMLRESULT > root element in XML
FMPXMLRESULT result = FACTORY . createFMPXMLRESULT ( ) ; result . setERRORCODE ( "0" ) ; result . setPRODUCT ( createProduct ( ) ) ; result . setDATABASE ( createDatabase ( ) ) ; result . setMETADATA ( createMetaData ( ) ) ; result . setRESULTSET ( createResultSet ( ) ) ; // convert the Openimmo object into a XML document
FilemakerResultDocument doc = null ; try { doc = FilemakerResultDocument . newDocument ( result ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . File
try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . OutputStream
write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java . io . Writer
write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console
writeToConsole ( doc ) ;


signature:
public class FilemakerWritingExample { /** * Create a { @ link DatabaseType } with some example data .
 * @ return created example object */
protected static DatabaseType createDatabase ( ) { } }

implementation: DatabaseType database = FACTORY . createDatabaseType ( ) ; database . setNAME ( "example database" ) ; database . setLAYOUT ( "fmmedia2universal" ) ; database . setDATEFORMAT ( "D.m.yyyy" ) ; database . setTIMEFORMAT ( "k:mm:ss" ) ; database . setRECORDS ( BigInteger . ZERO ) ; return database ;


signature:
public class FilemakerWritingExample { /** * Create a { @ link MetaDataType } with some example data .
 * @ return created example object */
protected static MetaDataType createMetaData ( ) { } }

implementation: MetaDataType metadata = FACTORY . createMetaDataType ( ) ; MetaDataType . FIELD field ; field = FACTORY . createMetaDataTypeFIELD ( ) ; field . setNAME ( "number of rooms" ) ; field . setEMPTYOK ( true ) ; field . setMAXREPEAT ( BigInteger . ONE ) ; field . setTYPE ( FieldType . NUMBER ) ; metadata . getFIELD ( ) . add ( field ) ; field = FACTORY . createMetaDataTypeFIELD ( ) ; field . setNAME ( "price" ) ; field . setEMPTYOK ( false ) ; field . setMAXREPEAT ( BigInteger . ONE ) ; field . setTYPE ( FieldType . NUMBER ) ; metadata . getFIELD ( ) . add ( field ) ; field = FACTORY . createMetaDataTypeFIELD ( ) ; field . setNAME ( "description" ) ; field . setEMPTYOK ( true ) ; field . setMAXREPEAT ( BigInteger . ONE ) ; field . setTYPE ( FieldType . TEXT ) ; metadata . getFIELD ( ) . add ( field ) ; return metadata ;


signature:
public class FilemakerWritingExample { /** * Create a { @ link ProductType } with some example data .
 * @ return created example object */
protected static ProductType createProduct ( ) { } }

implementation: ProductType product = FACTORY . createProductType ( ) ; product . setNAME ( "OpenEstate-IO" ) ; product . setVERSION ( "1.4" ) ; product . setBUILD ( "123" ) ; return product ;


signature:
public class FilemakerWritingExample { /** * Create a { @ link ResultSetType } with some example data .
 * @ return created example object */
protected static ResultSetType createResultSet ( ) { } }

implementation: ResultSetType result = FACTORY . createResultSetType ( ) ; result . getROW ( ) . add ( createResultSetRow ( 1 , 3 , 100 , "a first example" ) ) ; result . getROW ( ) . add ( createResultSetRow ( 2 , null , 200 , "a second example" ) ) ; result . getROW ( ) . add ( createResultSetRow ( 3 , 5 , 300 , null ) ) ; result . setFOUND ( BigInteger . valueOf ( result . getROW ( ) . size ( ) ) ) ; return result ;


signature:
public class FilemakerWritingExample { /** * Create a { @ link org . openestate . io . filemaker . xml . result . ResultSetType . ROW }
 * with some example data .
 * @ param id id of the record
 * @ param numberOfRooms value for number of rooms
 * @ param price value for price
 * @ param description value for description
 * @ return created example object */
@ SuppressWarnings ( "ConstantConditions" ) protected static ResultSetType . ROW createResultSetRow ( long id , Number numberOfRooms , Number price , String description ) { } }

implementation: ResultSetType . ROW . COL col ; ResultSetType . ROW row = FACTORY . createResultSetTypeROW ( ) ; row . setRECORDID ( BigInteger . valueOf ( id ) ) ; row . setMODID ( BigInteger . valueOf ( id ) ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; if ( numberOfRooms != null ) col . getDATA ( ) . add ( StringUtils . EMPTY ) ; else col . getDATA ( ) . add ( String . valueOf ( numberOfRooms ) ) ; row . getCOL ( ) . add ( col ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; if ( price != null ) col . getDATA ( ) . add ( "0" ) ; else col . getDATA ( ) . add ( String . valueOf ( price ) ) ; row . getCOL ( ) . add ( col ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; col . getDATA ( ) . add ( StringUtils . trimToEmpty ( description ) ) ; row . getCOL ( ) . add ( col ) ; return row ;


signature:
public class FilemakerWritingExample { /** * Write a { @ link FilemakerResultDocument } into a { @ link String } and print the
 * results to the console .
 * @ param doc the document to write */
@ SuppressWarnings ( "Duplicates" ) protected static void writeToConsole ( FilemakerResultDocument doc ) { } }

implementation: LOGGER . info ( "writing document" ) ; try { String xml = doc . toXmlString ( PRETTY_PRINT ) ; LOGGER . info ( StringUtils . repeat ( "-" , 50 ) + System . lineSeparator ( ) + xml ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into a string!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; }


signature:
public class CasaItUtils { /** * Creates a { @ link CasaItDocument } from a { @ link Document } .
 * @ param doc XML document
 * @ return created document or null , of the document is not supported by this format */
public static CasaItDocument createDocument ( Document doc ) { } }

implementation: if ( CasaItDocument . isReadable ( doc ) ) return new CasaItDocument ( doc ) ; else return null ;


signature:
public class Is24XmlReadingExample { /** * Read an { @ link InputStream } into an { @ link Is24XmlDocument } and print some
 * of its content to console .
 * @ param xmlInputStream the input stream to read
 * @ throws SAXException if the file is not readable by the XML parser
 * @ throws IOException if the file is not readable
 * @ throws ParserConfigurationException if the XML parser is improperly configured
 * @ throws JAXBException if XML conversion into Java objects failed */
protected static void read ( InputStream xmlInputStream ) throws SAXException , IOException , ParserConfigurationException , JAXBException { } }

implementation: LOGGER . info ( "process example file" ) ; Is24XmlDocument doc = Is24XmlUtils . createDocument ( xmlInputStream ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else { printToConsole ( doc ) ; }


signature:
public class Is24XmlReadingExample { /** * Print some content of an { @ link Is24XmlDocument } to console .
 * @ param doc the document to process
 * @ throws JAXBException if XML conversion into Java objects failed */
protected static void printToConsole ( Is24XmlDocument doc ) throws JAXBException { } }

implementation:
ImmobilienTransferTyp transfer = doc . toObject ( ) ; // process agency in the document
if ( transfer . getAnbieter ( ) != null ) { // process objects
for ( JAXBElement < ? extends ImmobilieBaseTyp > i : transfer . getAnbieter ( ) . getImmobilie ( ) ) { ImmobilieBaseTyp obj = i . getValue ( ) ; // get object nr
String objectNr = ( ! StringUtils . isBlank ( obj . getAnbieterObjektID ( ) ) ) ? obj . getAnbieterObjektID ( ) . trim ( ) : "???" ; // get object title
String objectTitle = ( ! StringUtils . isBlank ( obj . getUeberschrift ( ) ) ) ? obj . getUeberschrift ( ) . trim ( ) : "???" ; // print object information to console
LOGGER . info ( "> found object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; } // process virtual objects
for ( JAXBElement < ? extends VirtuelleImmobilieBaseTyp > i : transfer . getAnbieter ( ) . getVirtuelleImmobilie ( ) ) { VirtuelleImmobilieBaseTyp obj = i . getValue ( ) ; // get object nr
String objectNr = ( ! StringUtils . isBlank ( obj . getAnbieterObjektID ( ) ) ) ? obj . getAnbieterObjektID ( ) . trim ( ) : "???" ; // get object title
String objectTitle = ( ! StringUtils . isBlank ( obj . getUeberschrift ( ) ) ) ? obj . getUeberschrift ( ) . trim ( ) : "???" ; // print object information to console
LOGGER . info ( "> found virtual object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; } }


signature:
public class Interessent { /** * Gets the value of the bevorzugt property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the bevorzugt property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getBevorzugt ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Interessent . Bevorzugt } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Interessent . Bevorzugt > getBevorzugt ( ) { } }

implementation: if ( bevorzugt == null ) { bevorzugt = new ArrayList < Interessent . Bevorzugt > ( ) ; } return this . bevorzugt ;


signature:
public class Interessent { /** * Gets the value of the wunsch property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the wunsch property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getWunsch ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Interessent . Wunsch } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Interessent . Wunsch > getWunsch ( ) { } }

implementation: if ( wunsch == null ) { wunsch = new ArrayList < Interessent . Wunsch > ( ) ; } return this . wunsch ;


signature:
public class Uebertragung { /** * Sets the value of the art property .
 * @ param value
 * allowed object is
 * { @ link Uebertragung . Art } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setArt ( Uebertragung . Art value ) { } }

implementation: this . art = value ;


signature:
public class Uebertragung { /** * Sets the value of the modus property .
 * @ param value
 * allowed object is
 * { @ link Uebertragung . Modus } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setModus ( Uebertragung . Modus value ) { } }

implementation: this . modus = value ;


signature:
public class WeitereAdresse { /** * Gets the value of the emailSonstige property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the emailSonstige property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getEmailSonstige ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link EmailSonstige } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < EmailSonstige > getEmailSonstige ( ) { } }

implementation: if ( emailSonstige == null ) { emailSonstige = new ArrayList < EmailSonstige > ( ) ; } return this . emailSonstige ;


signature:
public class WeitereAdresse { /** * Gets the value of the telSonstige property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the telSonstige property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getTelSonstige ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link TelSonstige } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < TelSonstige > getTelSonstige ( ) { } }

implementation: if ( telSonstige == null ) { telSonstige = new ArrayList < TelSonstige > ( ) ; } return this . telSonstige ;


signature:
public class Einzelhandel { /** * Sets the value of the handelTyp property .
 * @ param value
 * allowed object is
 * { @ link Einzelhandel . HandelTyp } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setHandelTyp ( Einzelhandel . HandelTyp value ) { } }

implementation: this . handelTyp = value ;


signature:
public class Erschliessung { /** * Sets the value of the erschlAttr property .
 * @ param value
 * allowed object is
 * { @ link Erschliessung . ErschlAttr } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setErschlAttr ( Erschliessung . ErschlAttr value ) { } }

implementation: this . erschlAttr = value ;


signature:
public class OpenImmo_1_2_6 { /** * Downgrade an OpenImmo document from version 1.2.6 to 1.2.5.
 * @ param doc OpenImmo document in version 1.2.6 */
@ Override public void downgradeToPreviousVersion ( OpenImmoDocument doc ) { } }

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_5 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . removePreiseChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <preise> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeKaufpreisElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <kaufpreis> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeZwangsversteigerungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <zwangsversteigerung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeFlaechenChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <flaechen> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeBauzoneElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <bauzone> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeBodenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <boden> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeEnergietypElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <energietyp> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeAusblickElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <ausblick> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeBueroPraxenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <buero_praxen> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } }


signature:
public class OpenImmo_1_2_6 { /** * Downgrade & lt ; ausblick & gt ; elements to OpenImmo 1.2.5.
 * The option " MEER " for the " blick " attribute of
 * & lt ; ausblick & gt ; elements is not available in version 1.2.5.
 * Any occurence of the " MEER " value is replaced by the " SEE " value .
 * @ param doc OpenImmo document in version 1.2.6
 * @ throws JaxenException if xpath evaluation failed */
protected void downgradeAusblickElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:infrastruktur/io:ausblick[@blick]" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; String value = StringUtils . trimToNull ( node . getAttribute ( "blick" ) ) ; if ( "MEER" . equalsIgnoreCase ( value ) ) node . setAttribute ( "blick" , "SEE" ) ; }


signature:
public class WisItWritingExample { /** * Start the example application .
 * @ param args command line arguments */
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { } }

implementation:
// init logging
PropertyConfigurator . configure ( WisItWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a WIS object with some example data
// this object corresponds to the < WIS > element in XML
WIS wis = FACTORY . createWIS ( ) ; wis . setBENUTZER ( FACTORY . createWISBENUTZER ( ) ) ; wis . setOBJEKTE ( FACTORY . createWISOBJEKTE ( ) ) ; // append some example ads to the transfer
wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . setANZAHL ( BigInteger . valueOf ( wis . getOBJEKTE ( ) . getOBJEKT ( ) . size ( ) ) ) ; // convert the WIS object into a XML document
WisItDocument doc = null ; try { doc = WisItDocument . newDocument ( wis ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . File
try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java . io . OutputStream
write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java . io . Writer
write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console
writeToConsole ( doc ) ;


signature:
public class WisItWritingExample { /** * Create an { @ link ObjectType } with some example data .
 * @ return created example object */
protected static ObjectType createOBJEKT ( ) { } }

implementation:
// create an example real estate
ObjectType obj = FACTORY . createObjectType ( ) ; obj . setABSTELLPLATZ ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAUFANFRAGE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAUFZUG ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBALKON ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBAUJAHR ( String . valueOf ( RandomUtils . nextInt ( 1900 , 2015 ) ) ) ; obj . setDACHBODEN ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFLAECHEART ( AreaType . NETTO ) ; obj . setFOERDERBAR ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFRAKTION ( "some notes about the fraction" ) ; obj . setGARAGE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGRUENFLAECHE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGUELTIGBIS ( Calendar . getInstance ( ) ) ; obj . setHEIZUNG ( HeatingType . ZENTRAL ) ; obj . setID ( RandomStringUtils . random ( 5 ) ) ; obj . setIMMOBILIENART ( PropertyType . EINFAMILIENHAUS ) ; obj . setINFODE ( "some description in german language" ) ; obj . setINFOIT ( "some description in italian language" ) ; obj . setKELLER ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setKLIMAHAUS ( EnergyStandard . A ) ; obj . setKONVENTIONIERT ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setKUBATUR ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1000 ) ) ) ; obj . setLOESCHEN ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setLOGGIA ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMIETEKAUF ( MarketingType . MIETE ) ; obj . setNUTZFLAECHE ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1000 ) ) ) ; obj . setORT ( "Bozen" ) ; obj . setPREIS ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 300 , 3000 ) ) ) ; obj . setSTOCKWERK ( BigInteger . valueOf ( RandomUtils . nextInt ( 0 , 5 ) ) ) ; obj . setSTOCKWERKE ( BigInteger . valueOf ( RandomUtils . nextInt ( 0 , 10 ) ) ) ; obj . setTERRASSE ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setUEBERGABEZEITPUNKT ( "some notes about the time of handover" ) ; obj . setZIMMER ( BigInteger . valueOf ( RandomUtils . nextInt ( 1 , 5 ) ) ) ; obj . setZUSTAND ( ConditionType . GEBRAUCHT ) ; obj . setBILD1 ( obj . getID ( ) + "_1.jpg" ) ; obj . setBILD2 ( obj . getID ( ) + "_2.jpg" ) ; obj . setBILD3 ( obj . getID ( ) + "_3.jpg" ) ; obj . setBILD4 ( obj . getID ( ) + "_4.jpg" ) ; obj . setBILD5 ( obj . getID ( ) + "_5.jpg" ) ; obj . setBILD6 ( obj . getID ( ) + "_6.jpg" ) ; obj . setBILD7 ( obj . getID ( ) + "_7.jpg" ) ; obj . setBILD8 ( obj . getID ( ) + "_8.jpg" ) ; obj . setBILD9 ( obj . getID ( ) + "_9.jpg" ) ; obj . setBILD10 ( obj . getID ( ) + "_10.jpg" ) ; obj . setDOWNLOAD1 ( obj . getID ( ) + "_1.pdf" ) ; obj . setDOWNLOAD2 ( obj . getID ( ) + "_2.pdf" ) ; obj . setDOWNLOAD3 ( obj . getID ( ) + "_3.pdf" ) ; return obj ;


signature:
public class WisItWritingExample { /** * Write a { @ link WisItDocument } into an { @ link OutputStream } .
 * @ param doc the document to write
 * @ param output the stream , where the document is written to */
@ SuppressWarnings ( "Duplicates" ) protected static void write ( WisItDocument doc , OutputStream output ) { } }

implementation: LOGGER . info ( "writing document" ) ; try { doc . toXml ( output , PRETTY_PRINT ) ; LOGGER . info ( "> written to a java.io.OutputStream" ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into an OutputStream!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; }


signature:
public class ApiSuchfelderTyp { /** * Sets the value of the apiSuchfeld1 property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link String } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setApiSuchfeld1 ( JAXBElement < String > value ) { } }

implementation: this . apiSuchfeld1 = value ;


signature:
public class ApiSuchfelderTyp { /** * Sets the value of the apiSuchfeld2 property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link String } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setApiSuchfeld2 ( JAXBElement < String > value ) { } }

implementation: this . apiSuchfeld2 = value ;


signature:
public class ApiSuchfelderTyp { /** * Sets the value of the apiSuchfeld3 property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link String } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setApiSuchfeld3 ( JAXBElement < String > value ) { } }

implementation: this . apiSuchfeld3 = value ;


signature:
public class ResultSetType { /** * Gets the value of the row property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the row property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getROW ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link ResultSetType . ROW } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:42:33+02:00" , comments = "JAXB RI v2.2.11" ) public List < ResultSetType . ROW > getROW ( ) { } }

implementation: if ( row == null ) { row = new ArrayList < ResultSetType . ROW > ( ) ; } return this . row ;


signature:
public class DistanzenSport { /** * Sets the value of the distanzZuSport property .
 * @ param value
 * allowed object is
 * { @ link DistanzenSport . DistanzZuSport } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setDistanzZuSport ( DistanzenSport . DistanzZuSport value ) { } }

implementation: this . distanzZuSport = value ;


signature:
public class DaftIeUtils { /** * Creates a { @ link DaftIeDocument } from a { @ link Document } .
 * @ param doc XML document
 * @ return created document or null , of the document is not supported by this format */
public static DaftIeDocument createDocument ( Document doc ) { } }

implementation: if ( DaftIeDocument . isReadable ( doc ) ) return new DaftIeDocument ( doc ) ; else return null ;


signature:
public class Anhaenge { /** * Gets the value of the anhang property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the anhang property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getAnhang ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Anhang } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Anhang > getAnhang ( ) { } }

implementation: if ( anhang == null ) { anhang = new ArrayList < Anhang > ( ) ; } return this . anhang ;


signature:
public class GarageTyp { /** * Gets the value of the objektKategorie2 property .
 * @ return
 * possible object is
 * { @ link GaragenKategorieTyp } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public GaragenKategorieTyp getObjektKategorie2 ( ) { } }

implementation: if ( objektKategorie2 == null ) { return GaragenKategorieTyp . KEINE_ANGABE ; } else { return objektKategorie2 ; }


signature:
public class GarageTyp { /** * Gets the value of the objektzustand property .
 * @ return
 * possible object is
 * { @ link ObjektZustandTyp } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public ObjektZustandTyp getObjektzustand ( ) { } }

implementation: if ( objektzustand == null ) { return ObjektZustandTyp . KEINE_ANGABE ; } else { return objektzustand ; }


signature:
public class HausTyp { /** * Gets the value of the hausKategorie property .
 * @ return
 * possible object is
 * { @ link HausKategorienTyp } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public HausKategorienTyp getHausKategorie ( ) { } }

implementation: if ( hausKategorie == null ) { return HausKategorienTyp . KEINE_ANGABE ; } else { return hausKategorie ; }


signature:
public class HausTyp { /** * Gets the value of the ausstattungsqualitaet property .
 * @ return
 * possible object is
 * { @ link AusstattungsqualitaetsTyp } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public AusstattungsqualitaetsTyp getAusstattungsqualitaet ( ) { } }

implementation: if ( ausstattungsqualitaet == null ) { return AusstattungsqualitaetsTyp . KEINE_ANGABE ; } else { return ausstattungsqualitaet ; }


signature:
public class OpenImmoReadingExample { /** * Start the example application .
 * @ param args command line arguments */
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { } }

implementation:
// init logging
PropertyConfigurator . configure ( OpenImmoReadingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // read example files , if no files were specified as command line arguments
if ( args . length < 1 ) { try { read ( OpenImmoReadingExample . class . getResourceAsStream ( PACKAGE + "/openimmo.xml" ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't read example transfer file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 2 ) ; } try { read ( OpenImmoReadingExample . class . getResourceAsStream ( PACKAGE + "/openimmo-feedback.xml" ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't read example feedback file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 2 ) ; } } // read files , that were specified as command line arguments
else { for ( String arg : args ) { try { read ( new File ( arg ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't read file '" + arg + "'!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 2 ) ; } } }


signature:
public class OpenImmoReadingExample { /** * Read a { @ link File } into an { @ link OpenImmoTransferDocument } or
 * { @ link OpenImmoFeedbackDocument } and print some of their content to
 * console .
 * @ param xmlFile the file to read
 * @ throws SAXException if the file is not readable by the XML parser
 * @ throws IOException if the file is not readable
 * @ throws ParserConfigurationException if the XML parser is improperly configured
 * @ throws JAXBException if XML conversion into Java objects failed */
@ SuppressWarnings ( "Duplicates" ) protected static void read ( File xmlFile ) throws SAXException , IOException , ParserConfigurationException , JAXBException { } }

implementation: LOGGER . info ( "process file: " + xmlFile . getAbsolutePath ( ) ) ; if ( ! xmlFile . isFile ( ) ) { LOGGER . warn ( "> provided file is invalid" ) ; return ; } OpenImmoDocument doc = OpenImmoUtils . createDocument ( xmlFile ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else if ( doc . isFeedback ( ) ) { printToConsole ( ( OpenImmoFeedbackDocument ) doc ) ; } else if ( doc . isTransfer ( ) ) { printToConsole ( ( OpenImmoTransferDocument ) doc ) ; } else { LOGGER . warn ( "> unsupported type of document: " + doc . getClass ( ) . getName ( ) ) ; }


signature:
public class OpenImmoReadingExample { /** * Read a { @ link InputStream } into an { @ link OpenImmoTransferDocument } or
 * { @ link OpenImmoFeedbackDocument } and print some of their content to
 * console .
 * @ param xmlInputStream the input stream to read
 * @ throws SAXException if the file is not readable by the XML parser
 * @ throws IOException if the file is not readable
 * @ throws ParserConfigurationException if the XML parser is improperly configured
 * @ throws JAXBException if XML conversion into Java objects failed */
@ SuppressWarnings ( "Duplicates" ) protected static void read ( InputStream xmlInputStream ) throws SAXException , IOException , ParserConfigurationException , JAXBException { } }

implementation: LOGGER . info ( "process example file" ) ; OpenImmoDocument doc = OpenImmoUtils . createDocument ( xmlInputStream ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else if ( doc . isFeedback ( ) ) { printToConsole ( ( OpenImmoFeedbackDocument ) doc ) ; } else if ( doc . isTransfer ( ) ) { printToConsole ( ( OpenImmoTransferDocument ) doc ) ; } else { LOGGER . warn ( "> unsupported type of document: " + doc . getClass ( ) . getName ( ) ) ; }


signature:
public class OpenImmoReadingExample { /** * Print some content of an { @ link OpenImmoFeedbackDocument } to console .
 * @ param doc the document to process
 * @ throws JAXBException if XML conversion into Java objects failed */
protected static void printToConsole ( OpenImmoFeedbackDocument doc ) throws JAXBException { } }

implementation:
LOGGER . info ( "> process feedback document in version " + doc . getDocumentVersion ( ) ) ; OpenimmoFeedback feedback = doc . toObject ( ) ; for ( Objekt objekt : feedback . getObjekt ( ) ) { // get object nr
String objectNr = ( ! StringUtils . isBlank ( objekt . getOobjId ( ) ) ) ? objekt . getOobjId ( ) . trim ( ) : "???" ; // get object title
String objectTitle = ( ! StringUtils . isBlank ( objekt . getBezeichnung ( ) ) ) ? objekt . getBezeichnung ( ) . trim ( ) : "???" ; LOGGER . info ( ">> feedback for object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; }


signature:
public class OpenImmoReadingExample { /** * Print some content of an { @ link OpenImmoTransferDocument } to console .
 * @ param doc the document to process
 * @ throws JAXBException if XML conversion into Java objects failed */
@ SuppressWarnings ( "Duplicates" ) protected static void printToConsole ( OpenImmoTransferDocument doc ) throws JAXBException { } }

implementation:
LOGGER . info ( "> process transfer document in version " + doc . getDocumentVersion ( ) ) ; Openimmo openimmo = doc . toObject ( ) ; // process agencies in the document
for ( Anbieter anbieter : openimmo . getAnbieter ( ) ) { LOGGER . info ( ">> found agency '" + anbieter . getAnbieternr ( ) + "'" ) ; // process real estates of the agency
for ( Immobilie immobilie : anbieter . getImmobilie ( ) ) { // get object nr
String objectNr = ( immobilie . getVerwaltungTechn ( ) != null ) ? immobilie . getVerwaltungTechn ( ) . getObjektnrIntern ( ) : "???" ; // get object title
String objectTitle = ( immobilie . getFreitexte ( ) != null ) ? immobilie . getFreitexte ( ) . getObjekttitel ( ) : "???" ; // print object information to console
LOGGER . info ( ">>> found object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; } }


signature:
public class Objekt { /** * Gets the value of the vermarktungsart property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the vermarktungsart property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getVermarktungsart ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < String > getVermarktungsart ( ) { } }

implementation: if ( vermarktungsart == null ) { vermarktungsart = new ArrayList < String > ( ) ; } return this . vermarktungsart ;


signature:
public class Objekt { /** * Gets the value of the interessent property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the interessent property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getInteressent ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Interessent } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Interessent > getInteressent ( ) { } }

implementation: if ( interessent == null ) { interessent = new ArrayList < Interessent > ( ) ; } return this . interessent ;


signature:
public class ProvisionTeilen { /** * Sets the value of the wert property .
 * @ param value
 * allowed object is
 * { @ link ProvisionTeilen . Wert } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setWert ( ProvisionTeilen . Wert value ) { } }

implementation: this . wert = value ;


signature:
public class ImmoXmlDocument { /** * Creates a { @ link ImmoXmlDocument } from a { @ link Immoxml } object .
 * @ param immoxml Java object , that represents the & lt ; immoxml & gt ; root element
 * @ return created document
 * @ throws ParserConfigurationException if the parser is not properly configured
 * @ throws JAXBException if a problem with JAXB occurred */
public static ImmoXmlDocument newDocument ( Immoxml immoxml ) throws ParserConfigurationException , JAXBException { } }

implementation: if ( immoxml . getUebertragung ( ) == null ) immoxml . setUebertragung ( ImmoXmlUtils . getFactory ( ) . createUebertragung ( ) ) ; if ( StringUtils . isBlank ( immoxml . getUebertragung ( ) . getVersion ( ) ) ) immoxml . getUebertragung ( ) . setVersion ( ImmoXmlUtils . VERSION . toReadableVersion ( ) ) ; Document document = XmlUtils . newDocument ( ) ; ImmoXmlUtils . createMarshaller ( "UTF-8" , true ) . marshal ( immoxml , document ) ; return new ImmoXmlDocument ( document ) ;


signature:
public class ImmoXmlDocument { /** * Creates a { @ link Immoxml } object from the contained { @ link Document } .
 * @ return created object , that represents the & lt ; immoxml & gt ; root element
 * @ throws JAXBException if a problem with JAXB occurred */
@ Override public Immoxml toObject ( ) throws JAXBException { } }

implementation: this . upgradeToLatestVersion ( ) ; return ( Immoxml ) ImmoXmlUtils . createUnmarshaller ( ) . unmarshal ( this . getDocument ( ) ) ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the ackerland property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setAckerland ( JAXBElement < Object > value ) { } }

implementation: this . ackerland = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the bauerwartungsland property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setBauerwartungsland ( JAXBElement < Object > value ) { } }

implementation: this . bauerwartungsland = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the bootsstaende property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setBootsstaende ( JAXBElement < Object > value ) { } }

implementation: this . bootsstaende = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the buero property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setBuero ( JAXBElement < Object > value ) { } }

implementation: this . buero = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the camping property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setCamping ( JAXBElement < Object > value ) { } }

implementation: this . camping = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the doppelhaus property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setDoppelhaus ( JAXBElement < Object > value ) { } }

implementation: this . doppelhaus = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the einfamilienhaus property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setEinfamilienhaus ( JAXBElement < Object > value ) { } }

implementation: this . einfamilienhaus = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the einzelhandelGross property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setEinzelhandelGross ( JAXBElement < Object > value ) { } }

implementation: this . einzelhandelGross = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the einzelhandelKlein property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setEinzelhandelKlein ( JAXBElement < Object > value ) { } }

implementation: this . einzelhandelKlein = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the garagen property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setGaragen ( JAXBElement < Object > value ) { } }

implementation: this . garagen = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the garten property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setGarten ( JAXBElement < Object > value ) { } }

implementation: this . garten = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the gastronomie property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setGastronomie ( JAXBElement < Object > value ) { } }

implementation: this . gastronomie = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the gewerbe property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setGewerbe ( JAXBElement < Object > value ) { } }

implementation: this . gewerbe = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the hotel property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setHotel ( JAXBElement < Object > value ) { } }

implementation: this . hotel = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the industrie property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setIndustrie ( JAXBElement < Object > value ) { } }

implementation: this . industrie = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the keineBebauung property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setKeineBebauung ( JAXBElement < Object > value ) { } }

implementation: this . keineBebauung = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the kleingewerbe property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setKleingewerbe ( JAXBElement < Object > value ) { } }

implementation: this . kleingewerbe = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the lager property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setLager ( JAXBElement < Object > value ) { } }

implementation: this . lager = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the mehrfamilienhaus property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setMehrfamilienhaus ( JAXBElement < Object > value ) { } }

implementation: this . mehrfamilienhaus = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the obstpflanzung property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setObstpflanzung ( JAXBElement < Object > value ) { } }

implementation: this . obstpflanzung = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the parkhaus property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setParkhaus ( JAXBElement < Object > value ) { } }

implementation: this . parkhaus = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the produktion property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setProduktion ( JAXBElement < Object > value ) { } }

implementation: this . produktion = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the reihenhaus property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setReihenhaus ( JAXBElement < Object > value ) { } }

implementation: this . reihenhaus = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the stellplaetze property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setStellplaetze ( JAXBElement < Object > value ) { } }

implementation: this . stellplaetze = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the villa property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setVilla ( JAXBElement < Object > value ) { } }

implementation: this . villa = value ;


signature:
public class GrundstueckEmpfohleneNutzung { /** * Sets the value of the wald property .
 * @ param value
 * allowed object is
 * { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setWald ( JAXBElement < Object > value ) { } }

implementation: this . wald = value ;


signature:
public class XmlConvertableDocument { /** * Downgrades the contained { @ link Document } to an earlier version .
 * @ param targetVersion the version , that the { @ link Document } is downgraded to */
public void downgrade ( VersionType targetVersion ) { } }

implementation: if ( targetVersion == null ) throw new NullPointerException ( "No target version was provided!" ) ; XmlVersion currentVersion = this . getDocumentVersion ( ) ; if ( currentVersion == null ) { currentVersion = this . getLatestVersion ( ) ; LOGGER . warn ( "Can't determine document version! Assuming latest version " + currentVersion . toReadableVersion ( ) + "." ) ; } if ( currentVersion == targetVersion ) return ; if ( currentVersion . isOlderThen ( targetVersion ) ) { LOGGER . warn ( "The provided target version (" + targetVersion . toReadableVersion ( ) + ") " + "is newer then the document version (" + currentVersion . toReadableVersion ( ) + ")." ) ; return ; } XmlVersion v = currentVersion ; while ( true ) { v . getConverter ( ) . downgradeToPreviousVersion ( this ) ; v = v . getPreviousVersion ( ) ; if ( v == targetVersion ) break ; }


signature:
public class XmlConvertableDocument { /** * Upgrades the contained { @ link Document } to a newer version .
 * @ param targetVersion the version , that the { @ link Document } is upgraded to */
public void upgrade ( XmlVersion targetVersion ) { } }

implementation: if ( targetVersion == null ) throw new NullPointerException ( "No target version was provided!" ) ; XmlVersion currentVersion = this . getDocumentVersion ( ) ; if ( currentVersion == null ) { currentVersion = this . getLatestVersion ( ) ; LOGGER . warn ( "Can't determine document version! Assuming latest version " + currentVersion . toReadableVersion ( ) + "." ) ; } if ( currentVersion == targetVersion ) return ; if ( currentVersion . isNewerThen ( targetVersion ) ) { LOGGER . warn ( "The provided target version (" + targetVersion . toReadableVersion ( ) + ") " + "is older then the document version (" + currentVersion . toReadableVersion ( ) + ")." ) ; return ; } XmlVersion v = currentVersion ; while ( true ) { v = v . getNextVersion ( ) ; v . getConverter ( ) . upgradeFromPreviousVersion ( this ) ; if ( v == targetVersion ) break ; }


signature:
public class ImmobilienTransferTyp { /** * Sets the value of the anbieter property .
 * @ param value
 * allowed object is
 * { @ link ImmobilienTransferTyp . Anbieter } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setAnbieter ( ImmobilienTransferTyp . Anbieter value ) { } }

implementation: this . anbieter = value ;


signature:
public class Objektart { /** * Gets the value of the wohnung property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the wohnung property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getWohnung ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Wohnung } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Wohnung > getWohnung ( ) { } }

implementation: if ( wohnung == null ) { wohnung = new ArrayList < Wohnung > ( ) ; } return this . wohnung ;


signature:
public class Objektart { /** * Gets the value of the grundstueck property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the grundstueck property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getGrundstueck ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Grundstueck } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Grundstueck > getGrundstueck ( ) { } }

implementation: if ( grundstueck == null ) { grundstueck = new ArrayList < Grundstueck > ( ) ; } return this . grundstueck ;


signature:
public class Objektart { /** * Gets the value of the einzelhandel property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the einzelhandel property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getEinzelhandel ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Einzelhandel } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Einzelhandel > getEinzelhandel ( ) { } }

implementation: if ( einzelhandel == null ) { einzelhandel = new ArrayList < Einzelhandel > ( ) ; } return this . einzelhandel ;


signature:
public class Objektart { /** * Gets the value of the hallenLagerProd property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the hallenLagerProd property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getHallenLagerProd ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link HallenLagerProd } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < HallenLagerProd > getHallenLagerProd ( ) { } }

implementation: if ( hallenLagerProd == null ) { hallenLagerProd = new ArrayList < HallenLagerProd > ( ) ; } return this . hallenLagerProd ;


signature:
public class Objektart { /** * Gets the value of the parken property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the parken property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getParken ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Parken } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Parken > getParken ( ) { } }

implementation: if ( parken == null ) { parken = new ArrayList < Parken > ( ) ; } return this . parken ;


signature:
public class Objektart { /** * Gets the value of the freizeitimmobilieGewerblich property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the freizeitimmobilieGewerblich property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getFreizeitimmobilieGewerblich ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link FreizeitimmobilieGewerblich } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < FreizeitimmobilieGewerblich > getFreizeitimmobilieGewerblich ( ) { } }

implementation: if ( freizeitimmobilieGewerblich == null ) { freizeitimmobilieGewerblich = new ArrayList < FreizeitimmobilieGewerblich > ( ) ; } return this . freizeitimmobilieGewerblich ;


signature:
public class Objektart { /** * Gets the value of the objektartZusatz property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the objektartZusatz property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getObjektartZusatz ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < String > getObjektartZusatz ( ) { } }

implementation: if ( objektartZusatz == null ) { objektartZusatz = new ArrayList < String > ( ) ; } return this . objektartZusatz ;


signature:
public class Ausstattung { /** * Gets the value of the stellplatzart property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the stellplatzart property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getStellplatzart ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Stellplatzart } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Stellplatzart > getStellplatzart ( ) { } }

implementation: if ( stellplatzart == null ) { stellplatzart = new ArrayList < Stellplatzart > ( ) ; } return this . stellplatzart ;


signature:
public class MaxMietdauer { /** * Sets the value of the maxDauer property .
 * @ param value
 * allowed object is
 * { @ link MaxMietdauer . MaxDauer } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setMaxDauer ( MaxMietdauer . MaxDauer value ) { } }

implementation: this . maxDauer = value ;


signature:
public class FilemakerUtils { /** * Creates a { @ link FilemakerDocument } from a { @ link Document } .
 * @ param doc XML document
 * @ return created document or null , of the document is not supported by this format */
public static FilemakerDocument createDocument ( Document doc ) { } }

implementation: if ( FilemakerResultDocument . isReadable ( doc ) ) return new FilemakerResultDocument ( doc ) ; else if ( FilemakerLayoutDocument . isReadable ( doc ) ) return new FilemakerLayoutDocument ( doc ) ; else return null ;


signature:
public class IdxWritingExample { /** * Start the example application .
 * @ param args command line arguments */
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { } }

implementation:
// init logging
PropertyConfigurator . configure ( IdxWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create some CSV records
List < IdxRecord > records = new ArrayList < > ( ) ; records . add ( createRecord ( ) ) ; records . add ( createRecord ( ) ) ; records . add ( createRecord ( ) ) ; records . add ( createRecord ( ) ) ; // write CSV records into a java . io . File
try { write ( records , File . createTempFile ( "output-" , ".csv" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write CSV records into a java . io . OutputStream
write ( records , new NullOutputStream ( ) ) ; // write CSV records into a java . io . Writer
write ( records , new NullWriter ( ) ) ; // write CSV records into a string and send it to the console
writeToConsole ( records ) ;


signature:
public class IdxWritingExample { /** * Create an { @ link IdxRecord } with some example data .
 * @ return created example object */
protected static IdxRecord createRecord ( ) { } }

implementation:
// create an example real estate
IdxRecord obj = new IdxRecord ( ) ; obj . setAdvertisementId ( RandomStringUtils . random ( 5 ) ) ; obj . setAgencyCity ( "Berlin" ) ; obj . setAgencyCountry ( Locale . GERMANY . getCountry ( ) ) ; obj . setAgencyEmail ( "tester@test.org" ) ; obj . setAgencyFax ( "030/123456" ) ; obj . setAgencyId ( RandomStringUtils . random ( 5 ) ) ; obj . setAgencyName ( "agency name" ) ; obj . setAgencyName2 ( "additional agency name" ) ; obj . setAgencyPhone ( "030/123457" ) ; obj . setAgencyReference ( RandomStringUtils . random ( 5 ) ) ; obj . setAgencyStreet ( "example street 123" ) ; obj . setAgencyZip ( "12345" ) ; obj . setAnimalAllowed ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAvailableFrom ( Calendar . getInstance ( ) ) ; obj . setBalcony ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBillingCompany ( "agency name" ) ; obj . setBillingCountry ( "Germany" ) ; obj . setBillingFirstName ( "Max" ) ; obj . setBillingLanguage ( Language . GERMAN ) ; obj . setBillingMobile ( "030/132456" ) ; obj . setBillingName ( "Mustermann" ) ; obj . setBillingPhone ( "030/123457" ) ; obj . setBillingPhone2 ( "030/123458" ) ; obj . setBillingPlaceName ( "Berlin" ) ; obj . setBillingPostBox ( "additional address notes" ) ; obj . setBillingSalutation ( Salutation . MALE ) ; obj . setBillingStreet ( "example street 123" ) ; obj . setBillingZip ( "12345" ) ; obj . setBuildingLandConnected ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setCableTv ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setCarryingCapacityCrane ( RandomUtils . nextDouble ( 500 , 5000 ) ) ; obj . setCarryingCapacityElevator ( RandomUtils . nextDouble ( 500 , 5000 ) ) ; obj . setCeilingHeight ( RandomUtils . nextDouble ( 2 , 10 ) ) ; obj . setChildFriendly ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setCornerHouse ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setCurrency ( Currency . getInstance ( "EUR" ) ) ; obj . setDistanceKindergarten ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setDistanceMotorway ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setDistancePublicTransport ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setDistanceSchool1 ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setDistanceSchool2 ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setDistanceShop ( RandomUtils . nextInt ( 50 , 5000 ) ) ; obj . setElevator ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFireplace ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFlatSharingCommunity ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setFloor ( RandomUtils . nextInt ( 0 , 10 ) ) ; obj . setGarage ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGardenhouse ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGasSupply ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGrossPremium ( GrossPremium . FROM_4_UNTIL_5 ) ; obj . setHallHeight ( RandomUtils . nextDouble ( 3 , 15 ) ) ; obj . setIsdn ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setLastModified ( Calendar . getInstance ( ) ) ; obj . setLiftingPlatform ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMaximalFloorLoading ( RandomUtils . nextDouble ( 50 , 5000 ) ) ; obj . setMiddleHouse ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMinEnergyCertified ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMinEnergyGeneral ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNewBuilding ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNumberOfApartments ( RandomUtils . nextDouble ( 1 , 10 ) ) ; obj . setNumberOfFloors ( RandomUtils . nextInt ( 1 , 10 ) ) ; obj . setNumberOfRooms ( RandomUtils . nextDouble ( 1 , 10 ) ) ; obj . setObjectCity ( "Berlin" ) ; obj . setObjectCountry ( Locale . GERMANY . getCountry ( ) ) ; obj . setObjectDescription ( "some description" + System . lineSeparator ( ) + " about the object" ) ; obj . setObjectSituation ( "some description about the location" ) ; obj . setObjectState ( "BE" ) ; obj . setObjectStreet ( "example street 124" ) ; obj . setObjectTitle ( "title of object" ) ; obj . setObjectType ( ObjectType . HOUSE_VILLA ) ; obj . setObjectZip ( "12345" ) ; obj . setOfferType ( OfferType . SALE ) ; obj . setOldBuilding ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setOwnObjectUrl ( "http://test.org/object/123" ) ; obj . setParking ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setPowerSupply ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setPriceUnit ( PriceUnit . MONTHLY ) ; obj . setRailwayTerminal ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setRaisedGroundFloor ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setRamp ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setRefHouse ( RandomStringUtils . random ( 5 ) ) ; obj . setRefObject ( RandomStringUtils . random ( 5 ) ) ; obj . setRefProperty ( RandomStringUtils . random ( 5 ) ) ; obj . setRentExtra ( RandomUtils . nextLong ( 100 , 1000 ) ) ; obj . setRentNet ( RandomUtils . nextLong ( 100 , 1000 ) ) ; obj . setRestrooms ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setSellingPrice ( RandomUtils . nextLong ( 100 , 1000 ) ) ; obj . setSenderId ( "OpenEstate.org" ) ; obj . setSewageSupply ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setSparefield1 ( "spare field 1" ) ; obj . setSparefield2 ( "spare field 2" ) ; obj . setSparefield3 ( "spare field 3" ) ; obj . setSparefield4 ( "spare field 4" ) ; obj . setSurfaceLiving ( RandomUtils . nextLong ( 50 , 300 ) ) ; obj . setSurfaceProperty ( RandomUtils . nextLong ( 100 , 1000 ) ) ; obj . setSurfaceUsable ( RandomUtils . nextLong ( 100 , 1000 ) ) ; obj . setSwimmingpool ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setUnderBuildingLaws ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setUnderRoof ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setUrl ( "http://test.org/object/123" ) ; obj . setView ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setVisitName ( "Max Mustermann" ) ; obj . setVisitPhone ( "030/123456" ) ; obj . setVisitRemark ( "notes about the contact person" ) ; obj . setVolume ( RandomUtils . nextLong ( 50 , 500 ) ) ; obj . setWaterSupply ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setWheelcharAccessible ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setYearBuilt ( RandomUtils . nextInt ( 1900 , 1995 ) ) ; obj . setYearRenovated ( RandomUtils . nextInt ( 1995 , 2010 ) ) ; obj . setDocument ( new Media ( "document.pdf" , "a document about the object" ) ) ; obj . setMovie ( new Media ( "document.mp4" , "a document about the object" ) ) ; obj . setPicture1 ( new Media ( "image1.jpg" , "title for image 1" , "description for image 1" ) ) ; obj . setPicture2 ( new Media ( "image2.jpg" , "title for image 2" , "description for image 2" ) ) ; obj . setPicture3 ( new Media ( "image3.jpg" , "title for image 3" , "description for image 3" ) ) ; obj . setPicture4 ( new Media ( "image4.jpg" , "title for image 4" , "description for image 4" ) ) ; obj . setPicture5 ( new Media ( "image5.jpg" , "title for image 5" , "description for image 5" ) ) ; obj . setPicture6 ( new Media ( "image6.jpg" , "title for image 6" , "description for image 6" ) ) ; obj . setPicture7 ( new Media ( "image7.jpg" , "title for image 7" , "description for image 7" ) ) ; obj . setPicture8 ( new Media ( "image8.jpg" , "title for image 8" , "description for image 8" ) ) ; obj . setPicture9 ( new Media ( "image9.jpg" , "title for image 9" , "description for image 9" ) ) ; obj . setPicture10 ( new Media ( "image10.jpg" , "title for image 10" , "description for image 10" ) ) ; obj . setPicture11 ( new Media ( "image11.jpg" , "title for image 11" , "description for image 11" ) ) ; obj . setPicture12 ( new Media ( "image12.jpg" , "title for image 12" , "description for image 12" ) ) ; obj . setPicture13 ( new Media ( "image13.jpg" , "title for image 13" , "description for image 13" ) ) ; return obj ;


signature:
public class IdxWritingExample { /** * Write some { @ link IdxRecord } objects into a { @ link File } .
 * @ param records the CSV records to write
 * @ param file the file , where the document is written to */
protected static void write ( List < IdxRecord > records , File file ) { } }

implementation: LOGGER . info ( "writing document" ) ; try ( IdxPrinter printer = IdxPrinter . create ( file ) ) { printer . printRecords ( records ) ; LOGGER . info ( "> written to: " + file . getAbsolutePath ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into a file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; }


signature:
public class ErschliessungUmfang { /** * Sets the value of the erschlAttr property .
 * @ param value
 * allowed object is
 * { @ link ErschliessungUmfang . ErschlAttr } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public void setErschlAttr ( ErschliessungUmfang . ErschlAttr value ) { } }

implementation: this . erschlAttr = value ;


signature:
public class FeaturesType { /** * Gets the value of the feature property .
 * This accessor method returns a reference to the live list ,
 * not a snapshot . Therefore any modification you make to the
 * returned list will be present inside the JAXB object .
 * This is why there is not a < CODE > set < / CODE > method for the feature property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getFeature ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public List < String > getFeature ( ) { } }

implementation: if ( feature == null ) { feature = new ArrayList < String > ( ) ; } return this . feature ;


signature:
public class CsvFormat { /** * Creates a { @ link CsvParser } from a { @ link File } with CSV data .
 * @ param csvFile CSV file
 * @ return created parser
 * @ throws IOException if CSV is not readable */
@ SuppressFBWarnings ( value = "OBL_UNSATISFIED_OBLIGATION" , justification = "The stream is closed later together with the parser." ) public final Parser parse ( File csvFile ) throws IOException { } }

implementation: return this . parse ( new FileInputStream ( csvFile ) ) ;


signature:
public class CsvFormat { /** * Creates a { @ link CsvPrinter } , that writes CSV data into a { @ link File } .
 * @ param csvFile where CSV is written to
 * @ return created printer
 * @ throws IOException if CSV is not writable */
@ SuppressFBWarnings ( value = "OBL_UNSATISFIED_OBLIGATION" , justification = "The stream is closed later together with the printer." ) public final Printer print ( File csvFile ) throws IOException { } }

implementation: return print ( new FileOutputStream ( csvFile ) ) ;


signature:
public class CsvPrinter { /** * Print a { @ link CsvRecord } followed by a record separator ( line break ) .
 * @ param record record to print
 * @ throws IOException if printing failed */
public void printRecord ( Record record ) throws IOException { } }

implementation: for ( String value : record . print ( ) ) { this . print ( value ) ; } this . println ( ) ;


signature:
public class CsvPrinter { /** * Print multiple { @ link CsvRecord } objects .
 * @ param records records to print
 * @ throws IOException if printing failed */
public void printRecords ( Iterable < Record > records ) throws IOException { } }

implementation: for ( Record record : records ) { this . printRecord ( record ) ; } this . flush ( ) ;


signature:
public class CsvPrinter { /** * Helper function to replace line breaks in a string with a custom value
 * before printing .
 * This method may be used by inheriting classes , if the particular format
 * does not support line breaks .
 * @ param value value to replace
 * @ param lineBreak value , that is used for replacement of line breaks - if null , & lt ; br / & gt ;
 * is used
 * @ return value with replaced line breaks */
protected static String replaceLineBreaks ( String value , String lineBreak ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; if ( lineBreak == null ) lineBreak = "<br/>" ; Matcher m = LINES . matcher ( value ) ; StringBuilder out = new StringBuilder ( ) ; while ( m . find ( ) ) { out . append ( StringUtils . trimToEmpty ( m . group ( ) ) ) ; if ( ! m . hitEnd ( ) ) out . append ( lineBreak ) ; } return out . toString ( ) ;


signature:
public class ImmobiliareItUtils { /** * Creates a { @ link ImmobiliareItDocument } from a { @ link Document } .
 * @ param doc XML document
 * @ return created document or null , of the document is not supported by this format */
public static ImmobiliareItDocument createDocument ( Document doc ) { } }

implementation: if ( ImmobiliareItDocument . isReadable ( doc ) ) return new ImmobiliareItDocument ( doc ) ; else return null ;


signature:
public class TrovitUtils { /** * Creates a { @ link TrovitDocument } from a { @ link Document } .
 * @ param doc XML document
 * @ return created document or null , of the document is not supported by this format */
public static TrovitDocument createDocument ( Document doc ) { } }

implementation: if ( TrovitDocument . isReadable ( doc ) ) return new TrovitDocument ( doc ) ; else return null ;


signature:
public class TrovitUtils { /** * Read a { @ link AreaUnitValue } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static AreaUnitValue parseAreaUnitValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final AreaUnitValue unit = AreaUnitValue . fromXmlValue ( value ) ; if ( unit != null ) return unit ; throw new IllegalArgumentException ( "Can't parse foreclosure type value '" + value + "'!" ) ;


signature:
public class TrovitUtils { /** * Read a { @ link Boolean } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static Boolean parseBooleanValue ( String value ) { } }

implementation: value = StringUtils . lowerCase ( StringUtils . trimToEmpty ( value ) , Locale . ENGLISH ) ; switch ( value ) { case "true" : case "yes" : case "si" : case "1" : return Boolean . TRUE ; case "false" : case "no" : case "0" : return Boolean . FALSE ; default : throw new IllegalArgumentException ( "Can't parse boolean value '" + value + "'!" ) ; }


signature:
public class TrovitUtils { /** * Read a { @ link Calendar } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static Calendar parseDateValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final String [ ] patterns = new String [ ] { "dd/MM/yyyy" , "dd/MM/yyyy hh:mm:ss" , "dd-MM-yyyy" , "dd-MM-yyyy hh:mm:ss" , "yyyy/MM/dd" , "yyyy/MM/dd hh:mm:ss" , "yyyy-MM-dd" , "yyyy-MM-dd hh:mm:ss" } ; try { Date date = DateUtils . parseDateStrictly ( value , Locale . ENGLISH , patterns ) ; Calendar cal = Calendar . getInstance ( Locale . getDefault ( ) ) ; cal . setTime ( date ) ; return cal ; } catch ( ParseException ex ) { throw new IllegalArgumentException ( "Can't parse date value '" + value + "'!" , ex ) ; }


signature:
public class TrovitUtils { /** * Read a { @ link ForeclosureTypeValue } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static ForeclosureTypeValue parseForeclosureTypeValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final ForeclosureTypeValue foreclosure = ForeclosureTypeValue . fromXmlValue ( value ) ; if ( foreclosure != null ) return foreclosure ; throw new IllegalArgumentException ( "Can't parse foreclosure type value '" + value + "'!" ) ;


signature:
public class TrovitUtils { /** * Read a { @ link OrientationValue } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static OrientationValue parseOrientationValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final OrientationValue orientation = OrientationValue . fromXmlValue ( value ) ; if ( orientation != null ) return orientation ; throw new IllegalArgumentException ( "Can't parse orientation value '" + value + "'!" ) ;


signature:
public class TrovitUtils { /** * Read a { @ link Currency } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static Currency parsePriceCurrencyValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; try { return Currency . getInstance ( value . toUpperCase ( ) ) ; } catch ( IllegalArgumentException ex ) { throw new IllegalArgumentException ( "Can't parse price currency value '" + value + "'!" , ex ) ; }


signature:
public class TrovitUtils { /** * Read a { @ link PricePeriodValue } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static PricePeriodValue parsePricePeriodValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final PricePeriodValue period = PricePeriodValue . fromXmlValue ( value ) ; if ( period != null ) return period ; throw new IllegalArgumentException ( "Can't parse price period value '" + value + "'!" ) ;


signature:
public class TrovitUtils { /** * Read a { @ link BigDecimal } value from XML for a price .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static BigDecimal parsePriceValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; try { return DatatypeConverter . parseDecimal ( value ) ; } catch ( NumberFormatException ex ) { throw new IllegalArgumentException ( "Can't parse price value '" + value + "'!" , ex ) ; }


signature:
public class TrovitUtils { /** * Read a { @ link BigDecimal } value from XML for a number of rooms .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static BigDecimal parseRoomsValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final Matcher m = ROOMS_INTERVAL . matcher ( value ) ; if ( m . find ( ) ) { final int from = Integer . parseInt ( m . group ( 1 ) ) ; final int to = Integer . parseInt ( m . group ( 2 ) ) ; if ( ( to - from ) != - 1 ) { throw new IllegalArgumentException ( "Can't parse rooms value '" + value + "' because of an invalid interval!" ) ; } return DatatypeConverter . parseDecimal ( to + ".5" ) ; } try { return DatatypeConverter . parseDecimal ( value ) ; } catch ( NumberFormatException ex ) { throw new IllegalArgumentException ( "Can't parse rooms value '" + value + "'!" , ex ) ; }


signature:
public class TrovitUtils { /** * Read a { @ link TypeValue } value from XML .
 * @ param value XML string
 * @ return parsed value or null , if the value is invalid */
public static TypeValue parseTypeValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final TypeValue type = TypeValue . fromXmlValue ( value ) ; if ( type != null ) return type ; throw new IllegalArgumentException ( "Can't parse type value '" + value + "'!" ) ;


signature:
public class TrovitUtils { /** * Write a { @ link Boolean } value into XML output .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printBooleanValue ( Boolean value ) { } }

implementation: if ( value == null ) throw new IllegalArgumentException ( "Can't print empty boolean value!" ) ; return DatatypeConverter . printBoolean ( value ) ;


signature:
public class TrovitUtils { /** * Write a { @ link String } value for a description into XML output .
 * The description must contain at least 30 characters .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printContentValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) throw new IllegalArgumentException ( "Can't print empty content value!" ) ; if ( value . length ( ) < 30 ) throw new IllegalArgumentException ( "Can't print content value '" + value + "' because it is shorter than 30 characters!" ) ; return value ;


signature:
public class TrovitUtils { /** * Write a { @ link String } value for a country code into XML output .
 * The country has to be represendet by a ISO - Code wirh two or three
 * characters .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printCountryValue ( String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value == null ) throw new IllegalArgumentException ( "Can't print empty country value!" ) ; if ( value . length ( ) != 2 && value . length ( ) != 3 ) throw new IllegalArgumentException ( "Can't print country value '" + value + "' because it is neither an ISO-2-Code nor an ISO-3-Code!" ) ; return StringUtils . upperCase ( value , Locale . ENGLISH ) ;


signature:
public class TrovitUtils { /** * Write a { @ link Calendar } value into XML output .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printDateValue ( Calendar value ) { } }

implementation: if ( value == null ) throw new IllegalArgumentException ( "Can't print empty date value!" ) ; return new SimpleDateFormat ( "dd-MM-yyyy hh:mm:ss" , Locale . ENGLISH ) . format ( value . getTime ( ) ) ;


signature:
public class TrovitUtils { /** * Write a { @ link BigDecimal } value into XML output
 * with a valid latitude range .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printLatitudeValue ( BigDecimal value ) { } }

implementation: if ( value == null ) throw new IllegalArgumentException ( "Can't print empty latitude value!" ) ; if ( value . compareTo ( new BigDecimal ( "-90" ) ) < 0 ) throw new IllegalArgumentException ( "Can't print latitude value '" + value + "' because it is below -90!" ) ; if ( value . compareTo ( new BigDecimal ( "90" ) ) > 0 ) throw new IllegalArgumentException ( "Can't print latitude value '" + value + "' because it is above 90!" ) ; value = value . setScale ( 10 , BigDecimal . ROUND_HALF_UP ) ; return DatatypeConverter . printDecimal ( value ) ;


signature:
public class TrovitUtils { /** * Write a { @ link BigInteger } value into XML output for a plot area .
 * @ param value value to write
 * @ return XML string
 * @ throws IllegalArgumentException if a validation error occurred */
public static String printPlotAreaValue ( BigInteger value ) { } }

implementation: if ( value == null ) throw new IllegalArgumentException ( "Can't print empty plot area value!" ) ; if ( value . compareTo ( BigInteger . ONE ) < 0 ) throw new IllegalArgumentException ( "Can't print floor plot value '" + value + "' because it is below 1!" ) ; if ( value . compareTo ( BigInteger . valueOf ( 1000000000L ) ) > 0 ) throw new IllegalArgumentException ( "Can't print floor plot value '" + value + "' because it is above 1000000000!" ) ; return DatatypeConverter . printInteger ( value ) ;