signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "stromanschlusswert" ) public JAXBElement < String > createStromanschlusswert ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "kantine_cafeteria" ) public JAXBElement < Boolean > createKantineCafeteria ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "teekueche" ) public JAXBElement < Boolean > createTeekueche ( Boolean value ) { } }

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


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

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "brauereibindung" ) public JAXBElement < Boolean > createBrauereibindung ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "sporteinrichtungen" ) public JAXBElement < Boolean > createSporteinrichtungen ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "telefon_ferienimmobilie" ) public JAXBElement < Boolean > createTelefonFerienimmobilie ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "umts_empfang" ) public JAXBElement < Boolean > createUmtsEmpfang ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "abstellraum" ) public JAXBElement < Boolean > createAbstellraum ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "fahrradraum" ) public JAXBElement < Boolean > createFahrradraum ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "rolladen" ) public JAXBElement < Boolean > createRolladen ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "bibliothek" ) public JAXBElement < Boolean > createBibliothek ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "dachboden" ) public JAXBElement < Boolean > createDachboden ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "gaestewc" ) public JAXBElement < Boolean > createGaestewc ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "kabelkanaele" ) public JAXBElement < Boolean > createKabelkanaele ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "seniorengerecht" ) public JAXBElement < Boolean > createSeniorengerecht ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "letztemodernisierung" ) public JAXBElement < String > createLetztemodernisierung ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "bauzone" ) public JAXBElement < String > createBauzone ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "dreizeiler" ) public JAXBElement < String > createDreizeiler ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "lage" ) public JAXBElement < String > createLage ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "pfad" ) public JAXBElement < String > createPfad ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "objektadresse_freigeben" ) public JAXBElement < Boolean > createObjektadresseFreigeben ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "anbieternr" ) public JAXBElement < String > createAnbieternr ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "objektnr_intern" ) public JAXBElement < String > createObjektnrIntern ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link BigInteger } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "max_personen" ) @ XmlJavaTypeAdapter ( Adapter6 . class ) public JAXBElement < BigInteger > createMaxPersonen ( BigInteger value ) { } }

implementation: return new JAXBElement < BigInteger > ( _MaxPersonen_QNAME , BigInteger . class , null , value ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "nichtraucher" ) public JAXBElement < Boolean > createNichtraucher ( Boolean value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "openimmo_obid" ) public JAXBElement < String > createOpenimmoObid ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "weitergabe_negativ" ) public JAXBElement < String > createWeitergabeNegativ ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "weitergabe_positiv" ) public JAXBElement < String > createWeitergabePositiv ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "gruppen_kennung" ) public JAXBElement < String > createGruppenKennung ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "sprache" ) public JAXBElement < String > createSprache ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "objektart_zusatz" ) public JAXBElement < String > createObjektartZusatz ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "impressum" ) public JAXBElement < String > createImpressum ( String value ) { } }

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


signature:
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "" , name = "version" ) public JAXBElement < String > createVersion ( String value ) { } }

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


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

implementation: if ( bodenbelag == null ) { return BodenbelagTyp . KEINE_ANGABE ; } else { return bodenbelag ; }


signature:
public class OverseasRentalAdType { /** * Sets the value of the region property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setRegion ( java . lang . String value ) { } }

implementation: this . region = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the area property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setArea ( java . lang . String value ) { } }

implementation: this . area = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the address property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setAddress ( java . lang . String value ) { } }

implementation: this . address = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the description property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setDescription ( java . lang . String value ) { } }

implementation: this . description = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the rentCollectionPeriod property .
 * @ param value
 * allowed object is
 * { @ link OverseasRentalAdType . RentPeriod } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setRentCollectionPeriod ( OverseasRentalAdType . RentPeriod value ) { } }

implementation: this . rentCollectionPeriod = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the furnished property .
 * @ param value
 * allowed object is
 * { @ link OverseasRentalAdType . Furnished } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setFurnished ( OverseasRentalAdType . Furnished value ) { } }

implementation: this . furnished = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the phone1 property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setPhone1 ( java . lang . String value ) { } }

implementation: this . phone1 = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the phone2 property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setPhone2 ( java . lang . String value ) { } }

implementation: this . phone2 = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the contactName property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setContactName ( java . lang . String value ) { } }

implementation: this . contactName = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the phoneInfo property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setPhoneInfo ( java . lang . String value ) { } }

implementation: this . phoneInfo = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the mainEmail property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setMainEmail ( java . lang . String value ) { } }

implementation: this . mainEmail = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the ccEmail property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setCcEmail ( java . lang . String value ) { } }

implementation: this . ccEmail = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the externalId property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setExternalId ( java . lang . String value ) { } }

implementation: this . externalId = value ;


signature:
public class OverseasRentalAdType { /** * Sets the value of the agentId property .
 * @ param value
 * allowed object is
 * { @ link java . lang . String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:41:42+02:00" , comments = "JAXB RI v2.2.11" ) public void setAgentId ( java . lang . String value ) { } }

implementation: this . agentId = value ;


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

implementation:
// init logging
PropertyConfigurator . configure ( Is24CsvWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create some CSV records
List < Is24CsvRecord > records = new ArrayList < > ( ) ; records . add ( createHausKaufRecord ( ) ) ; records . add ( createHausKaufRecord ( ) ) ; records . add ( createWohnungMieteRecord ( ) ) ; records . add ( createWohnungMieteRecord ( ) ) ; // 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 Is24CsvWritingExample { /** * Create an { @ link HausKauf } with some example data .
 * @ return created example object */
protected static Is24CsvRecord createHausKaufRecord ( ) { } }

implementation:
// create an example real estate
HausKauf obj = new HausKauf ( ) ; init ( obj ) ; obj . setAnzahlBadezimmer ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAnzahlGarageStellplatz ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAnzahlSchlafzimmer ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAusstattung ( Ausstattung . GEHOBEN ) ; obj . setBarrierefrei ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBaujahr ( RandomUtils . nextInt ( 1900 , 1990 ) ) ; obj . setBauphase ( Bauphase . FERTIG_GESTELLT ) ; obj . setBefeuerungsart ( Befeuerungsart . KOHLE ) ; obj . setDenkmalschutz ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEinliegerwohnung ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEnergieausweisInklWarmwasser ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEnergieausweisKennwert ( RandomUtils . nextDouble ( 50 , 500 ) ) ; obj . setEnergieausweisTyp ( EnergieausweisTyp . ENERGIEVERBRAUCHSKENNWERT ) ; obj . setFerienhaus ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGaesteWc ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGrundstuecksflaeche ( RandomUtils . nextDouble ( 200 , 2000 ) ) ; obj . setHeizungsart ( Heizungsart . ZENTRALHEIZUNG ) ; obj . setKaufpreis ( RandomUtils . nextDouble ( 100000 , 1000000 ) ) ; obj . setKeller ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMieteinnahmenProMonat ( RandomUtils . nextDouble ( 5000 , 50000 ) ) ; obj . setNutzflaeche ( RandomUtils . nextDouble ( 200 , 1000 ) ) ; obj . setObjektkategorie ( ObjektkategorieHaus . MEHRFAMILIENHAUS ) ; obj . setObjektzustand ( Objektzustand . GEPFLEGT ) ; obj . setSanierungsjahr ( RandomUtils . nextInt ( 1990 , 2010 ) ) ; obj . setStellplatz ( Stellplatz . CARPORT ) ; obj . setStellplatzpreis ( RandomUtils . nextDouble ( 1000 , 5000 ) ) ; obj . setVerfuegbarAb ( "notes about availability" ) ; obj . setVermietet ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setWohnflaeche ( RandomUtils . nextDouble ( 100 , 500 ) ) ; obj . setZimmer ( RandomUtils . nextInt ( 1 , 10 ) ) ; return obj ;


signature:
public class Is24CsvWritingExample { /** * Create an { @ link WohnungMiete } with some example data .
 * @ return created example object */
protected static Is24CsvRecord createWohnungMieteRecord ( ) { } }

implementation:
// create an example real estate
WohnungMiete obj = new WohnungMiete ( ) ; init ( obj ) ; obj . setAnzahlBadezimmer ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAnzahlGarageStellplatz ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAnzahlSchlafzimmer ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . setAufzug ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAusstattung ( Ausstattung . GEHOBEN ) ; obj . setBalkonTerrasse ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBarrierefrei ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBaujahr ( RandomUtils . nextInt ( 1900 , 1990 ) ) ; obj . setBefeuerungsart ( Befeuerungsart . OEL ) ; obj . setEinbaukueche ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEnergieausweisInklWarmwasser ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEnergieausweisKennwert ( RandomUtils . nextDouble ( 50 , 500 ) ) ; obj . setEnergieausweisTyp ( EnergieausweisTyp . ENERGIEVERBRAUCHSKENNWERT ) ; obj . setEtage ( RandomUtils . nextInt ( 0 , 10 ) ) ; obj . setEtagenzahl ( RandomUtils . nextInt ( 0 , 10 ) ) ; obj . setFoerderung ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGaesteWc ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGartennutzung ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setHaustiere ( Auswahl . NACH_VEREINBARUNG ) ; obj . setHeizkosten ( RandomUtils . nextDouble ( 100 , 500 ) ) ; obj . setHeizungsart ( Heizungsart . OFENHEIZUNG ) ; obj . setKaltmiete ( RandomUtils . nextDouble ( 500 , 3000 ) ) ; obj . setKaution ( "notes about deposit" ) ; obj . setKeller ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNebenkosten ( RandomUtils . nextDouble ( 100 , 500 ) ) ; obj . setNebenkostenInklHeizkosten ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNutzflaeche ( RandomUtils . nextDouble ( 50 , 500 ) ) ; obj . setObjektkategorie ( ObjektkategorieWohnung . PENTHOUSE ) ; obj . setObjektzustand ( Objektzustand . MODERNISIERT ) ; obj . setSanierungsjahr ( RandomUtils . nextInt ( 1990 , 2010 ) ) ; obj . setSeniorengerecht ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setStellplatz ( Stellplatz . TIEFGARAGE ) ; obj . setStellplatzmiete ( RandomUtils . nextDouble ( 50 , 500 ) ) ; obj . setVerfuegbarAb ( "notes about availability" ) ; obj . setWarmmiete ( RandomUtils . nextDouble ( 500 , 2000 ) ) ; obj . setWohnflaeche ( RandomUtils . nextDouble ( 50 , 250 ) ) ; obj . setZimmer ( RandomUtils . nextInt ( 1 , 10 ) ) ; return obj ;


signature:
public class Is24CsvWritingExample { /** * Init common values of an { @ link Is24CsvRecord } .
 * @ param obj record to init */
protected static void init ( Is24CsvRecord obj ) { } }

implementation: obj . setAdressdruck ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAktiv ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAnbieterObjektId ( RandomStringUtils . random ( 5 ) ) ; obj . setBeschreibungAusstattung ( "description about features" ) ; obj . setBeschreibungLage ( "description about location" ) ; obj . setBeschreibungObjekt ( "description about object" ) ; obj . setBeschreibungSonstiges ( "further descriptions" ) ; obj . setGruppierungId ( RandomUtils . nextInt ( 0 , 1000 ) ) ; obj . setImportmodus ( Importmodus . IMPORTIEREN ) ; obj . setInternationaleRegion ( "name of international region" ) ; obj . setKontaktAnrede ( "Mr" ) ; obj . setKontaktEmail ( "tester@test.org" ) ; obj . setKontaktHausNr ( "123" ) ; obj . setKontaktLand ( "DEU" ) ; obj . setKontaktMobiltelefon ( "030/123456" ) ; obj . setKontaktNachname ( "Mustermann" ) ; obj . setKontaktOrt ( "Berlin" ) ; obj . setKontaktPlz ( "12345" ) ; obj . setKontaktStrasse ( "example street" ) ; obj . setKontaktTelefax ( "030/123457" ) ; obj . setKontaktTelefon ( "030/123458" ) ; obj . setKontaktVorname ( "Max" ) ; obj . setKontaktWebseite ( "http://www.test.org/" ) ; obj . setObjektHausNr ( "124" ) ; obj . setObjektLand ( "DEU" ) ; obj . setObjektOrt ( "Berlin" ) ; obj . setObjektPlz ( "12345" ) ; obj . setObjektStrasse ( "example street" ) ; obj . setProvision ( "commission" ) ; obj . setProvisionpflichtig ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setProvisionshinweis ( "notes about commission" ) ; obj . setScoutKundenId ( RandomStringUtils . random ( 5 ) ) ; obj . setScoutObjektId ( RandomStringUtils . random ( 5 ) ) ; obj . setUeberschrift ( "a nice title for the object" ) ; obj . setWaehrung ( Currency . getInstance ( "EUR" ) ) ; obj . setDatei1 ( new Datei ( "test1.jpg" , DateiTyp . BILD , DateiSuffix . JPG , "a nice image" ) ) ; obj . setDatei2 ( new Datei ( "test2.png" , DateiTyp . BILD , DateiSuffix . PNG , "another nice image" ) ) ; obj . setDatei3 ( new Datei ( "test3.pdf" , DateiTyp . GRUNDRISS_PDF , DateiSuffix . PDF , "a document with groundplan" ) ) ; obj . setDatei4 ( new Datei ( "http://www.test.org/" , DateiTyp . LINK , null , "agency website" ) ) ;


signature:
public class Is24CsvWritingExample { /** * Write some { @ link Is24CsvRecord } objects into an { @ link OutputStream } .
 * @ param records the CSV records to write
 * @ param output the stream , where the document is written to */
protected static void write ( List < Is24CsvRecord > records , OutputStream output ) { } }

implementation: LOGGER . info ( "writing document" ) ; try { Is24CsvPrinter printer = Is24CsvPrinter . create ( output ) ; printer . printRecords ( records ) ; 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 Is24CsvWritingExample { /** * Write some { @ link Is24CsvRecord } objects into a { @ link String } and print the
 * results to the console .
 * @ param records the CSV records to write */
protected static void writeToConsole ( List < Is24CsvRecord > records ) { } }

implementation: LOGGER . info ( "writing document" ) ; StringBuilder csv = new StringBuilder ( ) ; try ( Is24CsvPrinter printer = Is24CsvPrinter . create ( csv ) ) { printer . printRecords ( records ) ; LOGGER . info ( StringUtils . repeat ( "-" , 50 ) + System . lineSeparator ( ) + csv . toString ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into a string!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; }


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

implementation: this . epart = value ;


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

implementation: this . jahrgang = value ;


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

implementation: this . gebaeudeart = value ;


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

implementation: this . bueroTyp = value ;


signature:
public class NumberUtils { /** * Test , if a string contains a parsable number .
 * @ param value the value to check
 * @ param locale the locale , against which the value is checked
 * ( checks locale specific decimal and grouping separators )
 * @ return true , if the provided value contains of numbers */
public static boolean isNumeric ( String value , Locale locale ) { } }

implementation: if ( value == null ) return false ; int start = 0 ; final DecimalFormatSymbols symbols = ( locale != null ) ? DecimalFormatSymbols . getInstance ( locale ) : DecimalFormatSymbols . getInstance ( ) ; if ( value . startsWith ( "+" ) || value . startsWith ( "-" ) ) start ++ ; boolean fraction = false ; for ( int i = start ; i < value . length ( ) ; i ++ ) { final char c = value . charAt ( i ) ; if ( c == symbols . getDecimalSeparator ( ) && ! fraction ) { fraction = true ; continue ; } if ( c == symbols . getGroupingSeparator ( ) && ! fraction ) { continue ; } if ( ! Character . isDigit ( c ) ) { return false ; } } return true ;


signature:
public class NumberUtils { /** * Convert a string value into a number .
 * @ param value the string value to convert
 * @ param locales locales , against which the value is parsed
 * @ return numeric value for the string
 * @ throws NumberFormatException if the string is not a valid number */
public static Number parseNumber ( String value , Locale ... locales ) throws NumberFormatException { } }

implementation: return parseNumber ( value , false , locales ) ;


signature:
public class NumberUtils { /** * Convert a string value into a number .
 * @ param value the string value to convert
 * @ param integerOnly wether only the integer part of the value is parsed
 * @ param locales locales , against which the value is parsed
 * @ return numeric value for the string
 * @ throws NumberFormatException if the string is not a valid number */
public static Number parseNumber ( String value , boolean integerOnly , Locale ... locales ) throws NumberFormatException { } }

implementation:
value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; // ignore leading plus sign
if ( value . startsWith ( "+" ) ) value = StringUtils . trimToNull ( value . substring ( 1 ) ) ; // remove any spaces
value = StringUtils . replace ( value , StringUtils . SPACE , StringUtils . EMPTY ) ; if ( ArrayUtils . isEmpty ( locales ) ) locales = new Locale [ ] { Locale . getDefault ( ) } ; for ( Locale locale : locales ) { // check , if the value is completely numeric for the locale
if ( ! isNumeric ( value , locale ) ) continue ; NumberFormat format = NumberFormat . getNumberInstance ( locale ) ; try { format . setMinimumFractionDigits ( 0 ) ; format . setParseIntegerOnly ( integerOnly ) ; format . setGroupingUsed ( value . indexOf ( DecimalFormatSymbols . getInstance ( locale ) . getGroupingSeparator ( ) ) > - 1 ) ; return format . parse ( value ) ; } catch ( ParseException ex ) { } } throw new NumberFormatException ( "The provided value '" + value + "' is not numeric!" ) ;


signature:
public class NumberUtils { /** * Write a number into a string value .
 * @ param value the number to write
 * @ param integerDigits maximal number of integer digits
 * @ param fractionDigits maximal number of fraction digits
 * @ return the formatted number */
public static String printNumber ( Number value , int integerDigits , int fractionDigits ) { } }

implementation: return printNumber ( value , integerDigits , fractionDigits , null ) ;


signature:
public class NumberUtils { /** * Write a number into a string value .
 * @ param value the number to write
 * @ param integerDigits maximal number of integer digits
 * @ param fractionDigits maximal number of fraction digits
 * @ param locale locale for decimal separator ( using { @ link Locale # ENGLISH } if null )
 * @ return the formatted number */
public static String printNumber ( Number value , int integerDigits , int fractionDigits , Locale locale ) { } }

implementation: if ( value == null ) return null ; NumberFormat format = NumberFormat . getNumberInstance ( ( locale != null ) ? locale : Locale . ENGLISH ) ; format . setMaximumIntegerDigits ( integerDigits ) ; format . setMaximumFractionDigits ( fractionDigits ) ; format . setMinimumFractionDigits ( 0 ) ; format . setGroupingUsed ( false ) ; return format . format ( value ) ;


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

implementation: this . gebiete = value ;


signature:
public class FilemakerResultDocument { /** * Creates a { @ link FilemakerResultDocument } from a { @ link FMPXMLRESULT } object .
 * @ param xmlResult Java object , that represents the & lt ; FMPXMLRESULT & 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 FilemakerResultDocument newDocument ( FMPXMLRESULT xmlResult ) throws ParserConfigurationException , JAXBException { } }

implementation: Document document = XmlUtils . newDocument ( ) ; FilemakerUtils . createMarshaller ( "UTF-8" , true ) . marshal ( xmlResult , document ) ; return new FilemakerResultDocument ( document ) ;


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

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


signature:
public class Is24XmlUtils { /** * Creates a { @ link Marshaller } to write JAXB objects into XML .
 * @ param encoding encoding of written XML
 * @ param formatted if written XML is pretty printed
 * @ return created marshaller
 * @ throws JAXBException if a problem with JAXB occurred */
@ SuppressWarnings ( "Duplicates" ) public static Marshaller createMarshaller ( String encoding , boolean formatted ) throws JAXBException { } }

implementation: Marshaller m = getContext ( ) . createMarshaller ( ) ; m . setProperty ( Marshaller . JAXB_ENCODING , encoding ) ; m . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , formatted ) ; m . setEventHandler ( new XmlValidationHandler ( ) ) ; return m ;


signature:
public class Is24XmlUtils { /** * Creates a { @ link Unmarshaller } to read JAXB objects from XML .
 * @ return created unmarshaller
 * @ throws JAXBException if a problem with JAXB occurred */
public static Unmarshaller createUnmarshaller ( ) throws JAXBException { } }

implementation: Unmarshaller m = getContext ( ) . createUnmarshaller ( ) ; m . setEventHandler ( new XmlValidationHandler ( ) ) ; return m ;


signature:
public class Is24XmlUtils { /** * Returns the { @ link JAXBContext } for this format .
 * @ return context
 * @ throws JAXBException if a problem with JAXB occurred */
public synchronized static JAXBContext getContext ( ) throws JAXBException { } }

implementation: if ( JAXB == null ) initContext ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ; return JAXB ;


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

implementation: this . location = value ;


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

implementation: this . gruppe = value ;


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

implementation: this . type = value ;


signature:
public class Root { /** * Sets the value of the agent property .
 * @ param value
 * allowed object is
 * { @ link Root . Agent } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T01:43:04+02:00" , comments = "JAXB RI v2.2.11" ) public void setAgent ( Root . Agent value ) { } }

implementation: this . agent = value ;


signature:
public class Root { /** * Gets the value of the property 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 property property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getProperty ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link PropertyType } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T01:43:04+02:00" , comments = "JAXB RI v2.2.11" ) public List < PropertyType > getProperty ( ) { } }

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


signature:
public class DaftIeReadingExample { /** * Read a { @ link File } into a { @ link DaftIeDocument } and print some of its
 * 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 */
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 ; } DaftIeDocument doc = DaftIeUtils . createDocument ( xmlFile ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else { printToConsole ( doc ) ; }


signature:
public class DaftIeReadingExample { /** * Read a { @ link InputStream } into an { @ link DaftIeDocument } 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" ) ; DaftIeDocument doc = DaftIeUtils . createDocument ( xmlInputStream ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else { printToConsole ( doc ) ; }


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

implementation:
LOGGER . info ( "> process document in version " + doc . getDocumentVersion ( ) ) ; Daft daft = doc . toObject ( ) ; // process overseas rental
if ( daft . getOverseasRental ( ) != null ) { for ( OverseasRentalAdType ad : daft . getOverseasRental ( ) . getOverseasRentalAd ( ) ) { // get object nr
String objectNr = StringUtils . trimToNull ( ad . getExternalId ( ) ) ; if ( objectNr == null ) objectNr = "???" ; // get object description
String objectInfo = StringUtils . trimToNull ( ad . getDescription ( ) ) ; if ( objectInfo == null ) objectInfo = "???" ; // print object information to console
LOGGER . info ( "> found object " + "'" + objectNr + "' for rent: " + objectInfo ) ; } } // process overseas sales
if ( daft . getOverseasSales ( ) != null ) { for ( OverseasSaleAdType ad : daft . getOverseasSales ( ) . getOverseasSaleAd ( ) ) { // get object nr
String objectNr = StringUtils . trimToNull ( ad . getExternalId ( ) ) ; if ( objectNr == null ) objectNr = "???" ; // get object description
String objectInfo = StringUtils . trimToNull ( ad . getDescription ( ) ) ; if ( objectInfo == null ) objectInfo = "???" ; // print object information to console
LOGGER . info ( "> found object " + "'" + objectNr + "' for sale: " + objectInfo ) ; } }


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

implementation: this . stand = value ;


signature:
public class Kontaktperson { /** * Gets the value of the userDefinedExtend 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 userDefinedExtend property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getUserDefinedExtend ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link UserDefinedExtend } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < UserDefinedExtend > getUserDefinedExtend ( ) { } }

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


signature:
public class OpenImmoTransferDocument { /** * Checks , if a { @ link Document } is readable as a
 * { @ link OpenImmoTransferDocument } .
 * @ param doc document to check
 * @ return true , if the document is usable , otherwise false */
public static boolean isReadable ( Document doc ) { } }

implementation: Element root = XmlUtils . getRootElement ( doc ) ; return "openimmo" . equals ( root . getLocalName ( ) ) ;


signature:
public class OpenImmoTransferDocument { /** * Creates a { @ link OpenImmoTransferDocument } from a { @ link Openimmo } object .
 * @ param openimmo Java object , that represents the & lt ; openimmo & 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 OpenImmoTransferDocument newDocument ( Openimmo openimmo ) throws ParserConfigurationException , JAXBException { } }

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


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

implementation: this . upgradeToLatestVersion ( ) ; return ( Openimmo ) OpenImmoUtils . createUnmarshaller ( ) . unmarshal ( this . getDocument ( ) ) ;


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

implementation: this . zeiteinheit = value ;


signature:
public class Objektart { /** * Gets the value of the zimmer 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 zimmer property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getZimmer ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Zimmer } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Zimmer > getZimmer ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the haus 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 haus property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getHaus ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Haus } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Haus > getHaus ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the bueroPraxen 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 bueroPraxen property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getBueroPraxen ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link BueroPraxen } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < BueroPraxen > getBueroPraxen ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the gastgewerbe 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 gastgewerbe property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getGastgewerbe ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Gastgewerbe } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Gastgewerbe > getGastgewerbe ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the landUndForstwirtschaft 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 landUndForstwirtschaft property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getLandUndForstwirtschaft ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link LandUndForstwirtschaft } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < LandUndForstwirtschaft > getLandUndForstwirtschaft ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the sonstige 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 sonstige property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getSonstige ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Sonstige } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Sonstige > getSonstige ( ) { } }

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


signature:
public class Objektart { /** * Gets the value of the zinshausRenditeobjekt 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 zinshausRenditeobjekt property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getZinshausRenditeobjekt ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link ZinshausRenditeobjekt } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < ZinshausRenditeobjekt > getZinshausRenditeobjekt ( ) { } }

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


signature:
public class Terrains { /** * Gets the value of the terrain 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 terrain property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getTerrain ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link TerrainType } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:48:12+02:00" , comments = "JAXB RI v2.2.11" ) public List < TerrainType > getTerrain ( ) { } }

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


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

implementation: this . periode = value ;


signature:
public class OpenImmo_1_2_7b { /** * Downgrade & lt ; jahrgang & gt ; elements in & lt ; energiepass & gt ;
 * to OpenImmo 1.2.7.
 * The value " bei _ besichtigung " of & lt ; jahrgang & gt ; elements in
 * & lt ; energiepass & gt ; is not available in OpenImmo 1.2.7.
 * @ param doc OpenImmo document in version 1.2.7b
 * @ throws JaxenException if xpath evaluation failed */
protected void downgradeEnergiepassJahrgangElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben/io:energiepass/io:jahrgang" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; String value = StringUtils . trimToNull ( node . getTextContent ( ) ) ; if ( value == null || value . equalsIgnoreCase ( "bei_besichtigung" ) ) { Element parentNode = ( Element ) node . getParentNode ( ) ; parentNode . removeChild ( node ) ; } }


signature:
public class CasaItDocument { /** * Creates a { @ link CasaItDocument } from a { @ link Container } object .
 * @ param container Java object , that represents the & lt ; container & 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 CasaItDocument newDocument ( Container container ) throws ParserConfigurationException , JAXBException { } }

implementation: Document document = XmlUtils . newDocument ( ) ; CasaItUtils . createMarshaller ( "UTF-8" , true ) . marshal ( container , document ) ; return new CasaItDocument ( document ) ;


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

implementation: this . umfang = value ;


signature:
public class DaftIeDocument { /** * Creates a { @ link DaftIeDocument } from a { @ link Daft } object .
 * @ param daft Java object , that represents the & lt ; daft & 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 DaftIeDocument newDocument ( Daft daft ) throws ParserConfigurationException , JAXBException { } }

implementation: if ( StringUtils . isBlank ( daft . getVersion ( ) ) ) daft . setVersion ( DaftIeUtils . VERSION . toReadableVersion ( ) ) ; Document document = XmlUtils . newDocument ( ) ; DaftIeUtils . createMarshaller ( "UTF-8" , true ) . marshal ( daft , document ) ; return new DaftIeDocument ( document ) ;


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

implementation: this . upgradeToLatestVersion ( ) ; return ( Daft ) DaftIeUtils . createUnmarshaller ( ) . unmarshal ( this . getDocument ( ) ) ;


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

implementation: this . wohnungtyp = value ;


signature:
public class LocaleUtils { /** * Return an ISO - 2 country code from a country name .
 * @ param country country name
 * @ return ISO - 2 country code or null , if no code was found */
public static String getCountryISO2 ( String country ) { } }

implementation: country = StringUtils . trimToNull ( country ) ; if ( country == null ) return null ; if ( country . length ( ) == 2 ) return country ; String [ ] iso2Codes = Locale . getISOCountries ( ) ; if ( country . length ( ) == 3 ) { String iso2Code = LocaleUtils . getCountryISO2FromISO3 ( country ) ; if ( iso2Code != null ) return iso2Code ; } for ( String iso2Code : iso2Codes ) { Locale countryLocale = new Locale ( iso2Code , iso2Code ) ; for ( Locale translationLocale : LocaleUtils . availableLocaleList ( ) ) { String name = StringUtils . trimToNull ( countryLocale . getDisplayCountry ( translationLocale ) ) ; if ( name != null && name . equalsIgnoreCase ( country ) ) return iso2Code ; } } return null ;


signature:
public class LocaleUtils { /** * Create an ISO - 2 country code from an ISO - 3 country code .
 * @ param iso3Code ISO - 3 country code
 * @ return ISO - 2 country code or null , if no code was found */
public static String getCountryISO2FromISO3 ( String iso3Code ) { } }

implementation: iso3Code = StringUtils . trimToNull ( iso3Code ) ; if ( iso3Code == null ) return null ; if ( iso3Code . length ( ) == 3 ) { for ( String iso2Code : Locale . getISOCountries ( ) ) { Locale countryLocale = new Locale ( iso2Code , iso2Code ) ; String countryISO3 = StringUtils . trimToNull ( countryLocale . getISO3Country ( ) ) ; if ( countryISO3 != null && countryISO3 . equalsIgnoreCase ( iso3Code ) ) { return iso2Code ; } } } return null ;


signature:
public class LocaleUtils { /** * Return an ISO - 3 country code from a country name .
 * @ param country country name
 * @ return ISO - 3 country code or null , if no code was found */
public static String getCountryISO3 ( String country ) { } }

implementation: country = StringUtils . trimToNull ( country ) ; if ( country == null ) return null ; if ( country . length ( ) == 3 ) return country ; String [ ] iso2Codes = Locale . getISOCountries ( ) ; if ( country . length ( ) == 2 ) { String iso3code = LocaleUtils . getCountryISO3FromISO2 ( country ) ; if ( iso3code != null ) return iso3code ; } for ( String iso2Code : iso2Codes ) { Locale countryLocale = new Locale ( iso2Code , iso2Code ) ; String iso3Code = StringUtils . trimToNull ( countryLocale . getISO3Country ( ) ) ; if ( iso3Code == null ) continue ; for ( Locale translationLocale : LocaleUtils . availableLocaleList ( ) ) { String name = StringUtils . trimToNull ( countryLocale . getDisplayCountry ( translationLocale ) ) ; if ( name != null && name . equalsIgnoreCase ( country ) ) return iso3Code ; } } return null ;


signature:
public class LocaleUtils { /** * Create an ISO - 3 country code from an ISO - 2 country code .
 * @ param iso2Code ISO - 2 country code
 * @ return ISO - 3 country code or null , if no code was found */
public static String getCountryISO3FromISO2 ( String iso2Code ) { } }

implementation: iso2Code = StringUtils . trimToNull ( iso2Code ) ; if ( iso2Code == null ) return null ; if ( iso2Code . length ( ) == 2 ) { Locale countryLocale = new Locale ( iso2Code , iso2Code ) ; String iso3Code = StringUtils . trimToNull ( countryLocale . getISO3Country ( ) ) ; if ( iso3Code != null ) return iso3Code ; } return null ;


signature:
public class LocaleUtils { /** * Return a country name in another language .
 * @ param country country name
 * @ param language language to translate
 * @ return translated country name or null , if no translation was found */
public static String getCountryName ( String country , Locale language ) { } }

implementation: country = StringUtils . trimToNull ( country ) ; if ( country == null ) return null ; String iso2Code = LocaleUtils . getCountryISO2 ( country ) ; if ( iso2Code != null ) { String name = StringUtils . trimToNull ( new Locale ( iso2Code , iso2Code ) . getDisplayCountry ( language ) ) ; if ( name != null ) return name ; } return null ;


signature:
public class LocaleUtils { /** * Translate a country name into another language .
 * @ param country country name
 * @ param language language to translate
 * @ return translated country name or null , if no translation was found */
public static String translateCountryName ( String country , Locale language ) { } }

implementation: country = StringUtils . trimToNull ( country ) ; if ( country == null ) return null ; for ( String iso2Code : Locale . getISOCountries ( ) ) { Locale countryLocale = new Locale ( iso2Code , iso2Code ) ; for ( Locale translationLocale : LocaleUtils . availableLocaleList ( ) ) { String name = StringUtils . trimToNull ( countryLocale . getDisplayCountry ( translationLocale ) ) ; if ( name != null && name . equalsIgnoreCase ( country ) ) { name = StringUtils . trimToNull ( countryLocale . getDisplayCountry ( language ) ) ; if ( name != null ) return name ; } } } return null ;


signature:
public class Immoxml { /** * Gets the value of the anbieter 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 anbieter property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getAnbieter ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Anbieter } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Anbieter > getAnbieter ( ) { } }

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


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


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

implementation: this . category = value ;


signature:
public class PdfsType { /** * Gets the value of the pdf 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 pdf property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getPdf ( ) . 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 < URI > getPdf ( ) { } }

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


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

implementation: this . aktionart = value ;


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

implementation:
// init logging
PropertyConfigurator . configure ( IdxReadingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // read example file , if no files were specified as command line arguments
if ( args . length < 1 ) { try { read ( IdxReadingExample . class . getResourceAsStream ( PACKAGE + "/idx.csv" ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't read example 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 IdxReadingExample { /** * Read a { @ link File } into an { @ link IdxParser } and print some of its
 * content to console .
 * @ param csvFile the CSV file to read
 * @ throws IOException if the file is not readable */
protected static void read ( File csvFile ) throws IOException { } }

implementation: LOGGER . info ( "process file: " + csvFile . getAbsolutePath ( ) ) ; if ( ! csvFile . isFile ( ) ) { LOGGER . warn ( "> The provided file is invalid!" ) ; return ; } try ( IdxParser parser = IdxParser . create ( csvFile ) ) { if ( parser == null ) LOGGER . warn ( "> Can't create parser!" ) ; else printToConsole ( parser ) ; }


signature:
public class IdxReadingExample { /** * Read an { @ link InputStream } into an { @ link IdxParser } and print some of
 * its content to console .
 * @ param csvInputStream the input stream to read
 * @ throws IOException if the file is not readable */
protected static void read ( InputStream csvInputStream ) throws IOException { } }

implementation: LOGGER . info ( "process example file" ) ; try ( IdxParser parser = IdxParser . create ( csvInputStream ) ) { if ( parser == null ) LOGGER . warn ( "> Can't create parser!" ) ; else printToConsole ( parser ) ; }


signature:
public class IdxReadingExample { /** * Print some content of an { @ link IdxParser } to console .
 * @ param parser parser instance */
protected static void printToConsole ( IdxParser parser ) { } }

implementation:
// process records
while ( parser . hasNext ( ) ) { IdxRecord record = parser . next ( ) ; // get object nr
String objectNr = record . getRefObject ( ) ; if ( objectNr == null ) objectNr = "???" ; // get object title
String objectTitle = record . getObjectTitle ( ) ; if ( objectTitle == null ) objectTitle = "???" ; // print object information to console
System . out . println ( "> found object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; }


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

implementation: this . realestateitems = value ;


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

implementation: this . pacht = value ;


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

implementation: if ( objektkategorie2 == null ) { return HalleProduktionKategorieTyp . KEINE_ANGABE ; } else { return objektkategorie2 ; }


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

implementation:
// init logging
PropertyConfigurator . configure ( ImmoXmlWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create an Immoxml object with some example data
// this object corresponds to the < immoxml > root element in XML
Immoxml immoxml = FACTORY . createImmoxml ( ) ; immoxml . setUebertragung ( createUebertragung ( ) ) ; immoxml . getAnbieter ( ) . add ( createAnbieter ( ) ) ; // convert the Immoxml object into a XML document
ImmoXmlDocument doc = null ; try { doc = ImmoXmlDocument . newDocument ( immoxml ) ; } 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 ImmoXmlWritingExample { /** * 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 . setSendersoftware ( "OpenEstate-IO" ) ; uebertragung . setTechnEmail ( "test@test.org" ) ; uebertragung . setUmfang ( Uebertragung . Umfang . VOLL ) ; return uebertragung ;


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

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_6 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . removeMultipleEnergiepassElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove odd <energiepass> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeObjektTextElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <objekt_text> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeSummemietenettoElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <summemietenetto> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeBefeuerungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <befeuerung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeAnhangElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <anhang> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeAktionElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <aktion> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeEnergiepassElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <energiepass> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } }


signature:
public class OpenImmo_1_2_7 { /** * Upgrade an OpenImmo document from version 1.2.6 to 1.2.7.
 * @ param doc OpenImmo document in version 1.2.6 */
@ Override public void upgradeFromPreviousVersion ( OpenImmoDocument doc ) { } }

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_7 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . upgradeSummemietenettoElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't upgrade <summemietenetto> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . upgradeEnergiepassElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't upgrade <energiepass> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } }


signature:
public class OpenImmo_1_2_7 { /** * Downgrade & lt ; befeuerung & gt ; elements to OpenImmo 1.2.6.
 * The attributes " KOHLE " , " HOLZ " , " FLUESSIGGAS " of & lt ; befeuerung & gt ;
 * elements are not available in OpenImmo 1.2.6.
 * @ param doc OpenImmo document in version 1.2.7
 * @ throws JaxenException if xpath evaluation failed */
protected void downgradeBefeuerungElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:befeuerung[@KOHLE or @HOLZ or @FLUESSIGGAS]" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; node . removeAttribute ( "KOHLE" ) ; node . removeAttribute ( "HOLZ" ) ; node . removeAttribute ( "FLUESSIGGAS" ) ; }


signature:
public class OpenImmo_1_2_7 { /** * Downgrade & lt ; energiepass & gt ; elements to OpenImmo 1.2.6.
 * The child elements & lt ; stromwert & gt ; , & lt ; waermewert & gt ; ,
 * & lt ; wertklasse & gt ; , & lt ; baujahr & gt ; , & lt ; ausstelldatum & gt ; ,
 * & lt ; jahrgang & gt ; , & lt ; gebaeudeart & gt ; are copied into separate
 * & lt ; user _ defined _ simplefield & gt ; elements as it was
 * < a href = " http : / / www . openimmo . de / go . php / p / 44 / cm _ enev2014 . htm " > suggested by OpenImmo e . V . < / a > .
 * The child elements & lt ; primaerenergietraeger & gt ; , & lt ; epasstext & gt ;
 * are not available in OpenImmo 1.2.6.
 * @ param doc OpenImmo document in version 1.2.7
 * @ throws JaxenException if xpath evaluation failed */
protected void downgradeEnergiepassElements ( Document doc ) throws JaxenException { } }

implementation:
List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben/io:energiepass" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; Element parentNode = ( Element ) node . getParentNode ( ) ; boolean stromwertPassed = false ; boolean waermewertPassed = false ; boolean wertklassePassed = false ; boolean baujahrPassed = false ; boolean ausstelldatumPassed = false ; boolean jahrgangPassed = false ; boolean gebaeudeartPassed = false ; List childNodes ; // < primaerenergietraeger > elements are not supported in version 1.2.6
childNodes = XmlUtils . newXPath ( "io:primaerenergietraeger" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; node . removeChild ( childNode ) ; } // < epasstext > elements are not supported in version 1.2.6
childNodes = XmlUtils . newXPath ( "io:epasstext" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < stromwert > elements
childNodes = XmlUtils . newXPath ( "io:stromwert" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! stromwertPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_stromwert" , value ) ) ; stromwertPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < waermewert > elements
childNodes = XmlUtils . newXPath ( "io:waermewert" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! waermewertPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_waermewert" , value ) ) ; waermewertPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < wertklasse > elements
childNodes = XmlUtils . newXPath ( "io:wertklasse" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! wertklassePassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_wertklasse" , value ) ) ; wertklassePassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < baujahr > elements
childNodes = XmlUtils . newXPath ( "io:baujahr" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! baujahrPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_baujahr" , value ) ) ; baujahrPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < ausstelldatum > elements
childNodes = XmlUtils . newXPath ( "io:ausstelldatum" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! ausstelldatumPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_ausstelldatum" , value ) ) ; ausstelldatumPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < jahrgang > elements
childNodes = XmlUtils . newXPath ( "io:jahrgang" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! jahrgangPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( "2008" . equalsIgnoreCase ( value ) || "2014" . equalsIgnoreCase ( value ) || "ohne" . equalsIgnoreCase ( value ) ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_jahrgang" , value ) ) ; jahrgangPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < gebaeudeart > elements
childNodes = XmlUtils . newXPath ( "io:gebaeudeart" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! gebaeudeartPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( "wohn" . equalsIgnoreCase ( value ) || "nichtwohn" . equalsIgnoreCase ( value ) || "ohne" . equalsIgnoreCase ( value ) ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_gebaeudeart" , value ) ) ; gebaeudeartPassed = true ; } } node . removeChild ( childNode ) ; } }


signature:
public class OpenImmo_1_2_7 { /** * Only use one & lt ; energiepass & gt ; element for each & lt ; immobilie & gt ; .
 * OpenImmo 1.2.6 does not allow more then one & lt ; energiepass & gt ; element
 * for each & lt ; immobilie & gt ; ( maxOccurs = 1 ) . Odd & lt ; energiepass & gt ; elements
 * are removed by this function .
 * @ param doc OpenImmo document in version 1.2.7
 * @ throws JaxenException if xpath evaluation failed */
protected void removeMultipleEnergiepassElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element parentNode = ( Element ) item ; List childNodes = XmlUtils . newXPath ( "io:energiepass" , doc ) . selectNodes ( parentNode ) ; if ( childNodes . size ( ) < 2 ) continue ; for ( int j = 1 ; j < childNodes . size ( ) ; j ++ ) { parentNode . removeChild ( ( Node ) childNodes . get ( j ) ) ; } }


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

implementation:
// init logging
PropertyConfigurator . configure ( FilemakerWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a mapping from the example document , if no files were specified as command line arguments
FilemakerResultMapping mapping = null ; if ( args . length < 1 ) { try { mapping = new FilemakerResultDocument ( buildExampleDocument ( ) ) . toMapping ( ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create mapping!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } } // read file , that was specified as command line argument
else { try { mapping = new FilemakerResultDocument ( XmlUtils . newDocument ( new File ( args [ 0 ] ) ) ) . toMapping ( ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create mapping from file '" + args [ 0 ] + "'!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } } if ( mapping == null ) { LOGGER . error ( "No mapping was created!" ) ; System . exit ( 1 ) ; } // loop through available rows and access their values through the field name
for ( int i = 0 ; i < mapping . getRowCount ( ) ; i ++ ) { FilemakerResultMapping . Row row = mapping . getRow ( i ) ; LOGGER . info ( StringUtils . repeat ( "-" , 50 ) ) ; LOGGER . info ( "record at row " + i ) ; LOGGER . info ( "> recordId = " + row . getRecordId ( ) ) ; LOGGER . info ( "> modId = " + row . getModId ( ) ) ; // access record values through their field name
for ( String field : row . getFieldNames ( ) ) { LOGGER . info ( "> " + field + " = " + row . getValue ( field ) ) ; } }


signature:
public class UserDefinedAnyfield { /** * Gets the value of the content 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 content property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getContent ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Element }
 * { @ link Object }
 * { @ link String } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < Object > getContent ( ) { } }

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


signature:
public class FilemakerResultMapping { /** * Returns the names of specified fields .
 * @ return names of the fields */
public String [ ] getFieldNames ( ) { } }

implementation: List < String > names = new ArrayList < > ( ) ; for ( MetaDataType . FIELD field : this . fields ) { names . add ( field . getNAME ( ) ) ; } return names . toArray ( new String [ 0 ] ) ;


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

implementation: this . blick = value ;


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

implementation: this . pauschalmiete = value ;


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

implementation: this . monatsmiete = value ;


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

implementation: if ( parkplatz == null ) { return StellplatzKategorieTyp . KEINE_ANGABE ; } else { return parkplatz ; }


signature:
public class ObjectFactory { /** * Create an instance of { @ link Container . Realestateitems . Realestate . Images . Advertismentimage } */
public Container . Realestateitems . Realestate . Images . Advertismentimage createContainerRealestateitemsRealestateImagesAdvertismentimage ( ) { } }

implementation: return new Container . Realestateitems . Realestate . Images . Advertismentimage ( ) ;


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

implementation: this . lastenaufzug = value ;


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

implementation: if ( objektkategorie2 == null ) { return EinzelhandelKategorienTyp . KEINE_ANGABE ; } else { return objektkategorie2 ; }


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

implementation: this . zustandArt = value ;


signature:
public class ImmobiliareItReadingExample { /** * Read a { @ link InputStream } into an { @ link ImmobiliareItDocument } 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" ) ; ImmobiliareItDocument doc = ImmobiliareItUtils . createDocument ( xmlInputStream ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else { printToConsole ( doc ) ; }


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

implementation:
LOGGER . info ( "> process document in version " + doc . getDocumentVersion ( ) ) ; Feed feed = doc . toObject ( ) ; // process properties
if ( feed . getProperties ( ) != null ) { for ( Property object : feed . getProperties ( ) . getProperty ( ) ) { // get object nr
String objectNr = StringUtils . trimToNull ( object . getUniqueId ( ) ) ; if ( objectNr == null ) objectNr = "???" ; // get object description
String objectInfo = ( object . getFeatures ( ) != null && ! object . getFeatures ( ) . getDescription ( ) . isEmpty ( ) ) ? StringUtils . trimToNull ( object . getFeatures ( ) . getDescription ( ) . get ( 0 ) . getValue ( ) ) : null ; if ( objectInfo == null ) objectInfo = "???" ; // print object information to console
LOGGER . info ( "> found object " + "'" + objectNr + "': " + objectInfo ) ; } }


signature:
public class Bewertung { /** * Gets the value of the feld 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 feld property .
 * For example , to add a new item , do as follows :
 * < pre >
 * getFeld ( ) . add ( newItem ) ;
 * < / pre >
 * Objects of the following type ( s ) are allowed in the list
 * { @ link Bewertung . Feld } */
@ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:54:50+02:00" , comments = "JAXB RI v2.2.11" ) public List < Bewertung . Feld > getFeld ( ) { } }

implementation: if ( feld == null ) { feld = new ArrayList < Bewertung . Feld > ( ) ; } return this . feld ;


signature:
public class XmlValidationHandler { /** * Receive notification of a validation warning or error .
 * The ValidationEvent will have a
 * { @ link javax . xml . bind . ValidationEventLocator } embedded in it that
 * indicates where the error or warning occurred .
 * If an unchecked runtime exception is thrown from this method , the JAXB
 * provider will treat it as if the method returned false and interrupt
 * the current unmarshal , validate , or marshal operation .
 * @ param event the encapsulated validation event information . It is a provider error if
 * this parameter is null .
 * @ return true if the JAXB Provider should attempt to continue the current unmarshal ,
 * validate , or marshal operation after handling this warning / error , false if
 * the provider should terminate the current operation with the appropriate
 * < tt > UnmarshalException < / tt > , < tt > ValidationException < / tt > , or
 * < tt > MarshalException < / tt > .
 * @ throws IllegalArgumentException if the event object is null . */
@ Override public boolean handleEvent ( ValidationEvent event ) { } }

implementation: if ( event == null ) throw new IllegalArgumentException ( "No validation event was provided!" ) ; int line = - 1 ; int col = - 1 ; if ( event . getLocator ( ) != null ) { line = event . getLocator ( ) . getLineNumber ( ) ; col = event . getLocator ( ) . getColumnNumber ( ) ; } if ( ValidationEvent . FATAL_ERROR == event . getSeverity ( ) ) { LOGGER . warn ( "fatal validation error" ) ; if ( line > - 1 && col > - 1 ) LOGGER . warn ( "> at line " + line + " / column " + col ) ; LOGGER . warn ( "> " + event . getMessage ( ) ) ; return false ; } if ( ValidationEvent . WARNING == event . getSeverity ( ) ) { LOGGER . warn ( "validation warning" ) ; if ( line > - 1 && col > - 1 ) LOGGER . warn ( "> at line " + line + " / column " + col ) ; LOGGER . warn ( "> " + event . getMessage ( ) ) ; } else { LOGGER . warn ( "validation error" ) ; if ( line > - 1 && col > - 1 ) LOGGER . warn ( "> at line " + line + " / column " + col ) ; LOGGER . warn ( "> " + event . getMessage ( ) ) ; } return true ;


signature:
public class CsvRecord { /** * Write content of the record in a human readable form .
 * @ param writer where the data is written to
 * @ param lineSeparator line separator for multi line values
 * @ throws IOException if the record can ' t be written */
public void dump ( Writer writer , String lineSeparator ) throws IOException { } }

implementation: for ( int i = 0 ; i < this . getRecordLenth ( ) ; i ++ ) { StringBuilder txt = new StringBuilder ( ) ; try ( StringReader reader = new StringReader ( StringUtils . trimToEmpty ( this . get ( i ) ) ) ) { for ( String line : IOUtils . readLines ( reader ) ) { if ( txt . length ( ) > 0 ) txt . append ( lineSeparator ) ; txt . append ( line ) ; } } writer . write ( i + ":" + txt . toString ( ) ) ; writer . write ( System . lineSeparator ( ) ) ; }


signature:
public class CsvRecord { /** * Returns the value of the record at a certain index position .
 * @ param pos index position
 * @ param defaultValue returned default value , if no value is available at the index position
 * @ return value at index position or the provided defaultValue , if not available */
protected final String get ( int pos , String defaultValue ) { } }

implementation: String value = StringUtils . trimToNull ( this . values . get ( pos ) ) ; return ( value != null ) ? value : defaultValue ;


signature:
public class CsvRecord { /** * Loads data from { @ link CsvParser } into the record .
 * @ param record the CSV record from
 * < a href = " http : / / commons . apache . org / proper / commons - csv / " > commons - csv < / a > */
protected void parse ( CSVRecord record ) { } }

implementation: this . values . clear ( ) ; for ( int i = 0 ; i < record . size ( ) ; i ++ ) { this . values . put ( i , this . parse ( record . get ( i ) ) ) ; }


signature:
public class CsvRecord { /** * Returns a list of values for this record as they are written into CSV .
 * @ return CSV values to write */
protected Iterable < String > print ( ) { } }

implementation: final int length = this . getRecordLenth ( ) ; List < String > row = new ArrayList < > ( ) ; for ( int i = 0 ; i < length ; i ++ ) { row . add ( this . get ( i ) ) ; } return row ;


signature:
public class CsvRecord { /** * Sets the value of this record at a certain index position .
 * @ param pos index position
 * @ param value the value to set */
protected final void set ( int pos , String value ) { } }

implementation: value = StringUtils . trimToNull ( value ) ; if ( value != null ) this . values . put ( pos , value ) ; else if ( this . values . containsKey ( pos ) ) this . values . remove ( pos ) ;


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

implementation: this . ctype = value ;


signature:
public class TrovitReadingExample { /** * Read a { @ link InputStream } into a { @ link TrovitDocument } 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" ) ; TrovitDocument doc = TrovitUtils . createDocument ( xmlInputStream ) ; if ( doc == null ) { LOGGER . warn ( "> provided XML is not supported" ) ; } else { printToConsole ( doc ) ; }


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

implementation:
Trovit trovit = doc . toObject ( ) ; // process ads
for ( AdType ad : trovit . getAd ( ) ) { // get object nr
String objectNr = StringUtils . trimToNull ( ad . getId ( ) ) ; if ( objectNr == null ) objectNr = "???" ; // get object title
String objectTitle = StringUtils . trimToNull ( ad . getTitle ( ) ) ; if ( objectTitle == null ) objectTitle = "???" ; // print object information to console
LOGGER . info ( "> found object '" + objectNr + "' " + "with title '" + objectTitle + "'" ) ; }