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

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


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

implementation:
if ( value == null ) throw new IllegalArgumentException ( "Can't print empty rooms value!" ) ; if ( value . compareTo ( BigDecimal . ZERO ) < 0 ) throw new IllegalArgumentException ( "Can't print rooms value '" + value + "' because it is below 0!" ) ; if ( value . compareTo ( new BigDecimal ( "20" ) ) > 0 ) throw new IllegalArgumentException ( "Can't print rooms value '" + value + "' because it is above 20!" ) ; value = value . setScale ( 1 , BigDecimal . ROUND_HALF_UP ) ; // return DatatypeConverter . printDecimal ( value ) ;
final BigInteger integerPart = value . toBigInteger ( ) ; final BigInteger decimalPart = value . subtract ( new BigDecimal ( integerPart , 1 ) ) . multiply ( BigDecimal . TEN ) . toBigInteger ( ) ; if ( decimalPart . compareTo ( BigInteger . ZERO ) != 0 ) return integerPart . toString ( ) + ".5" ; return DatatypeConverter . printInteger ( integerPart ) ;


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

implementation: if ( value == null ) throw new IllegalArgumentException ( "Can't print empty URI value!" ) ; if ( "http" . equalsIgnoreCase ( value . getScheme ( ) ) ) return value . toString ( ) ; if ( "https" . equalsIgnoreCase ( value . getScheme ( ) ) ) return value . toString ( ) ; throw new IllegalArgumentException ( "Can't print URI '" + value + "' because of an unsupported scheme!" ) ;


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

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


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

implementation: this . zimmertyp = value ;


signature:
public class XmlUtils { /** * Recursively remove any comments and unnecessary white spaces from a
 * { @ link Node } and its children .
 * @ param node the node to clean */
public static void clean ( Node node ) { } }

implementation: NodeList childNodes = node . getChildNodes ( ) ; for ( int n = childNodes . getLength ( ) - 1 ; n >= 0 ; n -- ) { Node child = childNodes . item ( n ) ; short nodeType = child . getNodeType ( ) ; if ( nodeType == Node . ELEMENT_NODE ) { XmlUtils . clean ( child ) ; } else if ( nodeType == Node . COMMENT_NODE ) { node . removeChild ( child ) ; } else if ( nodeType == Node . TEXT_NODE ) { String value = StringUtils . trimToNull ( child . getNodeValue ( ) ) ; if ( value == null ) node . removeChild ( child ) ; else child . setNodeValue ( value ) ; } }


signature:
public class XmlUtils { /** * Count the number of nodes , that are matching against an XPath expression .
 * @ param xpathExpression the XPath expression to match
 * @ param doc the document , on which the XPath expression is evaluated
 * @ return number of matching nodes
 * @ throws JaxenException if the XPath evaluation failed */
public static int countNodes ( String xpathExpression , Document doc ) throws JaxenException { } }

implementation: return XmlUtils . countNodes ( xpathExpression , doc , doc ) ;


signature:
public class XmlUtils { /** * Count the number of nodes , that are matching against an XPath expression .
 * @ param xpathExpression the XPath expression to match
 * @ param doc the document , on which the XPath expression is evaluated
 * @ param context the node , on which the XPath expression is evaluated
 * @ return number of matching nodes
 * @ throws JaxenException if the XPath evaluation failed */
public static int countNodes ( String xpathExpression , Document doc , Object context ) throws JaxenException { } }

implementation: return XmlUtils . newXPath ( xpathExpression , doc ) . selectNodes ( context ) . size ( ) ;


signature:
public class XmlUtils { /** * Return the root { @ link Element } of a { @ link Document } .
 * @ param doc the document , where the root element is looked up
 * @ return root element of the document or null , if not found */
public static Element getRootElement ( Document doc ) { } }

implementation: if ( doc == null ) return null ; NodeList children = doc . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { Node node = children . item ( i ) ; if ( node instanceof Element ) return ( Element ) node ; } return null ;


signature:
public class XmlUtils { /** * Create an empty { @ link Document } .
 * @ param namespaceAware if namespaces are used in the created document
 * @ return created document
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( boolean namespaceAware ) throws ParserConfigurationException { } }

implementation: DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( namespaceAware ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . newDocument ( ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from a XML string .
 * @ param xmlString the XML string , the document is created from
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( String xmlString ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: return XmlUtils . newDocument ( xmlString , true ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from a XML string .
 * @ param xmlString the XML string , the document is created from
 * @ param namespaceAware if namespaces are used in the created document
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( String xmlString , boolean namespaceAware ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: return XmlUtils . newDocument ( new InputSource ( new StringReader ( xmlString ) ) , namespaceAware ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from an { @ link InputSource } .
 * @ param xmlSource the XML input , the document is created from
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( InputSource xmlSource ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: return XmlUtils . newDocument ( xmlSource , true ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from an { @ link InputSource } .
 * @ param xmlSource the XML input , the document is created from
 * @ param namespaceAware if namespaces are used in the created document
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( InputSource xmlSource , boolean namespaceAware ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( namespaceAware ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . parse ( xmlSource ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from an { @ link InputStream } .
 * @ param xmlStream the XML input , the document is created from
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( InputStream xmlStream ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: return XmlUtils . newDocument ( xmlStream , true ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from an { @ link InputStream } .
 * @ param xmlStream the XML input , the document is created from
 * @ param namespaceAware if namespaces are used in the created document
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( InputStream xmlStream , boolean namespaceAware ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( namespaceAware ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . parse ( xmlStream ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from a { @ link File } .
 * @ param xmlFile the XML file , the document is created from
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( File xmlFile ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: return XmlUtils . newDocument ( xmlFile , true ) ;


signature:
public class XmlUtils { /** * Create a { @ link Document } from a { @ link File } .
 * @ param xmlFile the XML file , the document is created from
 * @ param namespaceAware if namespaces are used in the created document
 * @ return created document
 * @ throws SAXException if XML contains an error
 * @ throws IOException if XML is not readable
 * @ throws ParserConfigurationException if the parser is not properly configured */
public static Document newDocument ( File xmlFile , boolean namespaceAware ) throws SAXException , IOException , ParserConfigurationException { } }

implementation: DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( namespaceAware ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . parse ( xmlFile ) ;


signature:
public class XmlUtils { /** * Create a { @ link XPath } expression .
 * @ param expression string with the XPath expression to create
 * @ return the created XPath expression
 * @ throws JaxenException if the XPath is not creatable */
public static XPath newXPath ( String expression ) throws JaxenException { } }

implementation: return XmlUtils . newXPath ( expression , null , null ) ;


signature:
public class XmlUtils { /** * Create a { @ link XPath } expression .
 * @ param expression string with the XPath expression to create
 * @ param doc the document , whose namespace is bound to the XPath expression
 * @ return the created XPath expression
 * @ throws JaxenException if the XPath is not creatable */
public static XPath newXPath ( String expression , Document doc ) throws JaxenException { } }

implementation: return XmlUtils . newXPath ( expression , doc , "io" ) ;


signature:
public class XmlUtils { /** * Create a { @ link XPath } expression .
 * @ param expression string with the XPath expression to create
 * @ param doc the document , whose namespace is bound to the XPath expression
 * @ param namespacePrefix prefix of the document namespace , that is bound to the XPath expression
 * @ return the created XPath expression
 * @ throws JaxenException if the XPath is not creatable */
public static XPath newXPath ( String expression , Document doc , String namespacePrefix ) throws JaxenException { } }

implementation:
DOMXPath xpath = new DOMXPath ( expression ) ; // LOGGER . debug ( " new xpath : " + xpath . debug ( ) ) ;
if ( doc != null && namespacePrefix != null ) { Element root = XmlUtils . getRootElement ( doc ) ; String uri = StringUtils . trimToEmpty ( root . getNamespaceURI ( ) ) ; xpath . addNamespace ( namespacePrefix , uri ) ; } return xpath ;


signature:
public class XmlUtils { /** * Print nodes of a { @ link Document } recursively to the local logger .
 * @ param doc the document to print */
public static void printNodes ( Document doc ) { } }

implementation: NodeList children = doc . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { Node node = children . item ( i ) ; if ( node instanceof Element ) printNode ( ( Element ) node ) ; }


signature:
public class XmlUtils { /** * Replace the namespace of any { @ link Element } in a { @ link Document } .
 * @ param doc the document to update
 * @ param newNamespaceURI the new namespace URI */
public static void replaceNamespace ( Document doc , String newNamespaceURI ) { } }

implementation: NodeList children = doc . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { XmlUtils . replaceNamespace ( doc , children . item ( i ) , newNamespaceURI ) ; }


signature:
public class XmlUtils { /** * Replace the namespace of a { @ link Node } and its children .
 * @ param doc the document to update
 * @ param node the node to update
 * @ param newNamespaceURI the new namespace URI */
public static void replaceNamespace ( Document doc , Node node , String newNamespaceURI ) { } }

implementation: if ( node instanceof Attr ) { doc . renameNode ( node , newNamespaceURI , node . getLocalName ( ) ) ; } else if ( node instanceof Element ) { doc . renameNode ( node , newNamespaceURI , node . getLocalName ( ) ) ; NodeList children = node . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { XmlUtils . replaceNamespace ( doc , children . item ( i ) , newNamespaceURI ) ; } }


signature:
public class XmlUtils { /** * Replace all text values of a { @ link Document } with CDATA values .
 * @ param doc the document to update */
public static void replaceTextWithCData ( Document doc ) { } }

implementation: NodeList children = doc . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { XmlUtils . replaceTextWithCData ( doc , children . item ( i ) ) ; }


signature:
public class XmlUtils { /** * Replace all text values of a { @ link Node } with CDATA values .
 * @ param doc the document to update
 * @ param node the node to update */
public static void replaceTextWithCData ( Document doc , Node node ) { } }

implementation:
if ( node instanceof Text ) { Text text = ( Text ) node ; CDATASection cdata = doc . createCDATASection ( text . getTextContent ( ) ) ; Element parent = ( Element ) text . getParentNode ( ) ; parent . replaceChild ( cdata , text ) ; } else if ( node instanceof Element ) { // LOGGER . debug ( " ELEMENT " + element . getTagName ( ) ) ;
NodeList children = node . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { // LOGGER . debug ( " > " + children . item ( i ) . getClass ( ) . getName ( ) ) ;
XmlUtils . replaceTextWithCData ( doc , children . item ( i ) ) ; } }


signature:
public class XmlUtils { /** * Write a { @ link Document } to a { @ link File } .
 * @ param doc the document to write
 * @ param file the file , where the document is written to
 * @ throws TransformerException if XML transformation failed
 * @ throws IOException if writing failed */
public static void write ( Document doc , File file ) throws TransformerException , IOException { } }

implementation: XmlUtils . write ( doc , file , true ) ;


signature:
public class XmlUtils { /** * Write a { @ link Document } to a { @ link File } .
 * @ param doc the document to write
 * @ param file the file , where the document is written to
 * @ param prettyPrint if pretty printing is enabled for the generated XML code
 * @ throws TransformerException if XML transformation failed
 * @ throws IOException if writing failed */
public static void write ( Document doc , File file , boolean prettyPrint ) throws TransformerException , IOException { } }

implementation: try ( OutputStream output = new FileOutputStream ( file ) ) { XmlUtils . write ( doc , output , prettyPrint ) ; }


signature:
public class XmlUtils { /** * Write a { @ link Document } to an { @ link OutputStream } .
 * @ param doc the document to write
 * @ param output the output , where the document is written to
 * @ throws TransformerException if XML transformation failed */
public static void write ( Document doc , OutputStream output ) throws TransformerException { } }

implementation: XmlUtils . write ( doc , output , true ) ;


signature:
public class XmlUtils { /** * Write a { @ link Document } to a { @ link Writer } .
 * @ param doc the document to write
 * @ param output the output , where the document is written to
 * @ throws TransformerException if XML transformation failed */
public static void write ( Document doc , Writer output ) throws TransformerException { } }


signature:
public class XmlUtils { /** * Write a { @ link Document } to a { @ link Writer } .
 * @ param doc the document to write
 * @ param output the output , where the document is written to
 * @ param prettyPrint if pretty printing is enabled for the generated XML code
 * @ throws TransformerException if XML transformation failed */
public static void write ( Document doc , Writer output , boolean prettyPrint ) throws TransformerException { } }

implementation: XmlUtils . clean ( doc ) ; Transformer transformer = TransformerFactory . newInstance ( ) . newTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . OMIT_XML_DECLARATION , "no" ) ; transformer . setOutputProperty ( OutputKeys . METHOD , "xml" ) ; transformer . setOutputProperty ( OutputKeys . ENCODING , "UTF-8" ) ; transformer . setOutputProperty ( OutputKeys . STANDALONE , "yes" ) ; transformer . setOutputProperty ( OutputKeys . INDENT , ( prettyPrint ) ? "yes" : "no" ) ; if ( prettyPrint ) { transformer . setOutputProperty ( "{http://xml.apache.org/xslt}indent-amount" , "2" ) ; } transformer . transform ( new DOMSource ( doc ) , new StreamResult ( output ) ) ;


signature:
public class XmlDocument { /** * Generate XML for the contained { @ link Document } .
 * @ param xmlFile the file , where the XML code is written to
 * @ param prettyPrint if pretty printing is enabled for the generated XML code
 * @ throws TransformerException if XML transformation failed
 * @ throws IOException if writing failed */
public void toXml ( File xmlFile , boolean prettyPrint ) throws TransformerException , IOException { } }

implementation: if ( this . isTextWrittenAsCDATA ( ) ) { XmlUtils . replaceTextWithCData ( this . getDocument ( ) ) ; } prepareDocumentBeforeWritingToXml ( this . getDocument ( ) ) ; XmlUtils . write ( this . getDocument ( ) , xmlFile , prettyPrint ) ;


signature:
public class XmlDocument { /** * Generate XML for the contained { @ link Document } .
 * @ param output the output , where the XML code is written to
 * @ param prettyPrint if pretty printing is enabled for the generated XML code
 * @ throws TransformerException if XML transformation failed
 * @ throws IOException if writing failed */
public void toXml ( OutputStream output , boolean prettyPrint ) throws TransformerException , IOException { } }

implementation: if ( this . isTextWrittenAsCDATA ( ) ) { XmlUtils . replaceTextWithCData ( this . getDocument ( ) ) ; } prepareDocumentBeforeWritingToXml ( this . getDocument ( ) ) ; XmlUtils . write ( this . getDocument ( ) , output , prettyPrint ) ;


signature:
public class XmlDocument { /** * Returns XML for the contained { @ link Document } .
 * @ param prettyPrint if pretty printing is enabled for the generated XML code
 * @ return the generated XML code
 * @ throws TransformerException if XML transformation failed
 * @ throws IOException if writing failed */
public final String toXmlString ( boolean prettyPrint ) throws TransformerException , IOException { } }

implementation: try ( StringWriter w = new StringWriter ( ) ) { this . toXml ( w , prettyPrint ) ; return w . toString ( ) ; }


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

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


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

implementation:
doc . setDocumentVersion ( OpenImmoVersion . V1_2_4 ) ; // downgrade a feedback document
if ( doc instanceof OpenImmoFeedbackDocument ) { try { this . removeFeedbackObjektChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <objekt> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } } // downgrade a transfer document
else if ( doc instanceof OpenImmoTransferDocument ) { try { this . removeKontaktpersonChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <kontaktperson> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeMwstGesamtElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <mwst_gesamt> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeVerkehrswertElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <verkehrswert> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeAnzahlLogiaElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <anzahl_logia> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeErschliessungUmfangElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported <erschliessung_umfang> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeVerwaltungTechnChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <verwaltung_techn> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeZustandElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <zustand> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeBebaubarNachElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <bebaubar_nach> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeErschliessungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <erschliessung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeWohnungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <wohnung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeHausElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <haus> 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_5 { /** * Upgrade an OpenImmo document from version 1.2.4 to 1.2.5.
 * @ param doc OpenImmo document in version 1.2.4 */
@ Override @ SuppressWarnings ( "Duplicates" ) public void upgradeFromPreviousVersion ( OpenImmoDocument doc ) { } }

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_5 ) ; if ( doc instanceof OpenImmoTransferDocument ) { 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_5 { /** * Downgrade & lt ; energiepass & gt ; elements to OpenImmo 1.2.4.
 * The child elements & lt ; hwbwert & gt ; , & lt ; hwbklasse & gt ; ,
 * & lt ; fgeewert & gt ; , & lt ; fgeeklasse & gt ; are copied into separate
 * & lt ; user _ defined _ simplefield & gt ; elements as it was
 * suggested by OpenImmo e . V . .
 * @ param doc OpenImmo document in version 1.2.5
 * @ 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 hwbwertPassed = false ; boolean hwbklassePassed = false ; boolean fgeewertPassed = false ; boolean fgeeklassePassed = false ; List childNodes ; // create a < user _ defined _ simplefield > for < hwbwert > elements
childNodes = XmlUtils . newXPath ( "io:hwbwert" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! hwbwertPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_hwbwert" , value ) ) ; hwbwertPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < hwbklasse > elements
childNodes = XmlUtils . newXPath ( "io:hwbklasse" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! hwbklassePassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_hwbklasse" , value ) ) ; hwbklassePassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < fgeewert > elements
childNodes = XmlUtils . newXPath ( "io:fgeewert" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! fgeewertPassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_fgeewert" , value ) ) ; fgeewertPassed = true ; } } node . removeChild ( childNode ) ; } // create a < user _ defined _ simplefield > for < baujahr > elements
childNodes = XmlUtils . newXPath ( "io:fgeeklasse" , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! fgeeklassePassed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { parentNode . appendChild ( OpenImmoUtils . createUserDefinedSimplefield ( doc , "epass_fgeeklasse" , value ) ) ; fgeeklassePassed = true ; } } node . removeChild ( childNode ) ; } }


signature:
public class OpenImmo_1_2_5 { /** * Upgrade & lt ; energiepass & gt ; elements to OpenImmo 1.2.5.
 * The & lt ; user _ defined _ simplefield & gt ; elements for Austria , that were
 * suggested by OpenImmo e . V . , are explicitly supported in OpenImmo 1.2.5 as
 * child elements of & lt ; energiepass & gt ; . Any matching
 * & lt ; user _ defined _ simplefield & gt ; elements are moved into the
 * & lt ; energiepass & gt ; element .
 * @ param doc OpenImmo document in version 1.2.4
 * @ throws JaxenException if xpath evaluation failed */
@ SuppressWarnings ( "Duplicates" ) protected void upgradeEnergiepassElements ( Document doc ) throws JaxenException { } }

implementation: Map < String , String > fields = new HashMap < > ( ) ; fields . put ( "hwbwert" , "user_defined_simplefield[@feldname='epass_hwbwert']" ) ; fields . put ( "hwbklasse" , "user_defined_simplefield[@feldname='epass_hwbklasse']" ) ; fields . put ( "fgeewert" , "user_defined_simplefield[@feldname='epass_fgeewert']" ) ; fields . put ( "fgeeklasse" , "user_defined_simplefield[@feldname='epass_fgeeklasse']" ) ; List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; Element energiepassNode = ( Element ) XmlUtils . newXPath ( "io:energiepass" , doc ) . selectSingleNode ( node ) ; if ( energiepassNode == null ) { energiepassNode = doc . createElementNS ( StringUtils . EMPTY , "energiepass" ) ; } for ( Map . Entry < String , String > entry : fields . entrySet ( ) ) { boolean fieldProcessed = false ; List childNodes = XmlUtils . newXPath ( entry . getValue ( ) , doc ) . selectNodes ( node ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( ! fieldProcessed ) { String value = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( value != null ) { Element newElement = doc . createElementNS ( StringUtils . EMPTY , entry . getKey ( ) ) ; newElement . setTextContent ( value ) ; energiepassNode . appendChild ( newElement ) ; fieldProcessed = true ; } } node . removeChild ( childNode ) ; } } if ( energiepassNode . getParentNode ( ) == null && energiepassNode . hasChildNodes ( ) ) { node . appendChild ( energiepassNode ) ; } }


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

implementation: this . keineAngabe = value ;


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

implementation: this . erdwaerme = value ;


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

implementation: this . solarheizung = value ;


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

implementation: this . pelletheizung = value ;


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

implementation: this . gas = value ;


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

implementation: this . oel = value ;


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

implementation: this . fernwaerme = value ;


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

implementation: this . strom = value ;


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

implementation: this . kohle = value ;


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

implementation:
// init logging
PropertyConfigurator . configure ( ImmobiliareItWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a Feed object with some example data
// this object corresponds to the < feed > root element in XML
Feed feed = FACTORY . createFeed ( ) ; // append some example objects to the Feed object
feed . setProperties ( FACTORY . createFeedProperties ( ) ) ; feed . getProperties ( ) . getProperty ( ) . add ( createProperty ( ) ) ; feed . getProperties ( ) . getProperty ( ) . add ( createProperty ( ) ) ; // convert the Feed object into a XML document
ImmobiliareItDocument doc = null ; try { doc = ImmobiliareItDocument . newDocument ( feed ) ; } 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 ImmobiliareItWritingExample { /** * Create a { @ link Property } with some example data .
 * @ return created example object */
protected static Property createProperty ( ) { } }

implementation:
// create an example real estate for rent
Property obj = FACTORY . createFeedPropertiesProperty ( ) ; obj . setBuildingStatus ( Status . ABITABILE ) ; obj . setCategory ( Category . COMMERCIALE ) ; obj . setDateExpiration ( Calendar . getInstance ( ) ) ; obj . setDateUpdated ( Calendar . getInstance ( ) ) ; obj . setOperation ( Operation . WRITE ) ; obj . setUniqueId ( RandomStringUtils . random ( 5 ) ) ; obj . setAgent ( FACTORY . createFeedPropertiesPropertyAgent ( ) ) ; obj . getAgent ( ) . setEmail ( "agency@test.org" ) ; obj . getAgent ( ) . setOfficeName ( "agency name" ) ; obj . setBlueprints ( FACTORY . createFeedPropertiesPropertyBlueprints ( ) ) ; obj . getBlueprints ( ) . getBlueprint ( ) . add ( createPictureExtended ( ) ) ; obj . getBlueprints ( ) . getBlueprint ( ) . add ( createPictureExtended ( ) ) ; obj . getBlueprints ( ) . getBlueprint ( ) . add ( createPictureExtended ( ) ) ; obj . setBuilding ( FACTORY . createBuilding ( ) ) ; obj . getBuilding ( ) . setCategory ( Category . COMMERCIALE ) ; obj . getBuilding ( ) . setClazz ( Clazz . SIGNORILE ) ; obj . getBuilding ( ) . setDetail ( PropertyTypeBusiness . ALBERGO ) ; obj . getBuilding ( ) . setStatus ( Status . DISCRETO ) ; obj . getBuilding ( ) . setType ( PropertyType . APPARTAMENTO ) ; obj . setExtraFeatures ( FACTORY . createFeedPropertiesPropertyExtraFeatures ( ) ) ; obj . getExtraFeatures ( ) . setAirConditioning ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setBalcony ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setBathrooms ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . getExtraFeatures ( ) . setBeamHeight ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 10 ) ) ) ; obj . getExtraFeatures ( ) . setBedrooms ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . getExtraFeatures ( ) . setBuildYear ( RandomUtils . nextInt ( 1900 , 2000 ) ) ; obj . getExtraFeatures ( ) . setDocDescription ( "some descriptions" ) ; obj . getExtraFeatures ( ) . setDocSpecification ( "some specifications" ) ; obj . getExtraFeatures ( ) . setElevator ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setFloorplannerUrl ( "http://floorplanner-url.it/" ) ; obj . getExtraFeatures ( ) . setFreeConditions ( "free conditions" ) ; obj . getExtraFeatures ( ) . setFurniture ( Furniture . PARZIALMENTE_ARREDATO ) ; obj . getExtraFeatures ( ) . setGarden ( Garden . NESSUNO ) ; obj . getExtraFeatures ( ) . setHeating ( Heat . AUTONOMO ) ; obj . getExtraFeatures ( ) . setKitchen ( Kitchen . SEMI_ABITABILE ) ; obj . getExtraFeatures ( ) . setNet ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setNumFloors ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . getExtraFeatures ( ) . setOverheadCrane ( YesNoReady . READY ) ; obj . getExtraFeatures ( ) . setReception ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setRentContract ( Rental . LIBERO ) ; obj . getExtraFeatures ( ) . setSecurityAlarm ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setTerrace ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getExtraFeatures ( ) . setVirtualTour ( "virtual tour" ) ; obj . getExtraFeatures ( ) . setAdditionalCosts ( FACTORY . createAdditionalCostsType ( ) ) ; obj . getExtraFeatures ( ) . getAdditionalCosts ( ) . setCurrency ( Currency . getInstance ( "EUR" ) ) ; obj . getExtraFeatures ( ) . getAdditionalCosts ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 5000 ) ) ) ; obj . getExtraFeatures ( ) . setExternalArea ( FACTORY . createLandSizeType ( ) ) ; obj . getExtraFeatures ( ) . getExternalArea ( ) . setUnit ( LandSizeUnit . M2 ) ; obj . getExtraFeatures ( ) . getExternalArea ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 50 , 5000 ) ) ) ; obj . getExtraFeatures ( ) . setFloor ( FACTORY . createFloor ( ) ) ; obj . getExtraFeatures ( ) . getFloor ( ) . setType ( Floor . FloorType . INTERMEDIO ) ; obj . getExtraFeatures ( ) . getFloor ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 10 ) ) ) ; obj . getExtraFeatures ( ) . setGarage ( FACTORY . createBox ( ) ) ; obj . getExtraFeatures ( ) . getGarage ( ) . setType ( Box . BoxType . POSTO_AUTO ) ; obj . getExtraFeatures ( ) . getGarage ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 10 ) ) ) ; obj . getExtraFeatures ( ) . setOfficeSize ( FACTORY . createSizeType ( ) ) ; obj . getExtraFeatures ( ) . getOfficeSize ( ) . setUnit ( SizeUnit . M2 ) ; obj . getExtraFeatures ( ) . getOfficeSize ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 5 , 50 ) ) ) ; obj . setFeatures ( FACTORY . createFeedPropertiesPropertyFeatures ( ) ) ; obj . getFeatures ( ) . setEnergyClass ( ClassEnergy . D ) ; obj . getFeatures ( ) . setRooms ( RandomUtils . nextInt ( 1 , 5 ) ) ; obj . getFeatures ( ) . setEnergyPerformance ( FACTORY . createClassEnergyPerformance ( ) ) ; obj . getFeatures ( ) . getEnergyPerformance ( ) . setCertified ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getFeatures ( ) . getEnergyPerformance ( ) . setUnit ( EnergyUnit . KWH_M2ANNO ) ; obj . getFeatures ( ) . getEnergyPerformance ( ) . setValue ( "energy performance" ) ; obj . getFeatures ( ) . setPrice ( FACTORY . createPriceType ( ) ) ; obj . getFeatures ( ) . getPrice ( ) . setCurrency ( Currency . getInstance ( "EUR" ) ) ; obj . getFeatures ( ) . getPrice ( ) . setReserved ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getFeatures ( ) . getPrice ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 500 , 5000000 ) ) ) ; obj . getFeatures ( ) . setSize ( FACTORY . createSizeType ( ) ) ; obj . getFeatures ( ) . getSize ( ) . setUnit ( SizeUnit . M2 ) ; obj . getFeatures ( ) . getSize ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextLong ( 50 , 5000 ) ) ) ; obj . setLocation ( FACTORY . createLocationStructure ( ) ) ; obj . getLocation ( ) . setAdministrativeArea ( "administrative area" ) ; obj . getLocation ( ) . setCountryCode ( "DE" ) ; obj . getLocation ( ) . setCity ( FACTORY . createLocationStructureCity ( ) ) ; obj . getLocation ( ) . getCity ( ) . setCode ( BigInteger . ZERO ) ; obj . getLocation ( ) . getCity ( ) . setValue ( "Berlin" ) ; obj . getLocation ( ) . setLocality ( FACTORY . createLocationStructureLocality ( ) ) ; obj . getLocation ( ) . getLocality ( ) . setLatitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getLocation ( ) . getLocality ( ) . setLongitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getLocation ( ) . getLocality ( ) . setPostalCode ( "13125" ) ; obj . getLocation ( ) . getLocality ( ) . setNeighbourhood ( FACTORY . createLocationStructureLocalityNeighbourhood ( ) ) ; obj . getLocation ( ) . getLocality ( ) . getNeighbourhood ( ) . setId ( BigInteger . ZERO ) ; obj . getLocation ( ) . getLocality ( ) . getNeighbourhood ( ) . setType ( LocationNeighbourhoodType . DISTRICT ) ; obj . getLocation ( ) . getLocality ( ) . getNeighbourhood ( ) . setValue ( "about the neighbourhood" ) ; obj . getLocation ( ) . getLocality ( ) . setThoroughfare ( FACTORY . createLocationStructureLocalityThoroughfare ( ) ) ; obj . getLocation ( ) . getLocality ( ) . getThoroughfare ( ) . setDisplay ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getLocation ( ) . getLocality ( ) . getThoroughfare ( ) . setValue ( "about thoroughfare" ) ; obj . getLocation ( ) . setSubAdministrativeArea ( FACTORY . createLocationStructureSubAdministrativeArea ( ) ) ; obj . getLocation ( ) . getSubAdministrativeArea ( ) . setCode ( RandomStringUtils . random ( 5 ) ) ; obj . getLocation ( ) . getSubAdministrativeArea ( ) . setValue ( "Berlin" ) ; obj . setPictures ( FACTORY . createFeedPropertiesPropertyPictures ( ) ) ; obj . getPictures ( ) . getPictureUrlAndPicture ( ) . add ( createPicture ( ) ) ; obj . getPictures ( ) . getPictureUrlAndPicture ( ) . add ( createPicture ( ) ) ; obj . getPictures ( ) . getPictureUrlAndPicture ( ) . add ( createPicture ( ) ) ; obj . setPropertyType ( FACTORY . createProptype ( ) ) ; obj . getPropertyType ( ) . setBusinessType ( FACTORY . createBusinessElement ( ) ) ; obj . getPropertyType ( ) . getBusinessType ( ) . setCategory ( BusinessElement . BusinessElementCategory . IMMOBILE ) ; obj . getPropertyType ( ) . getBusinessType ( ) . setValue ( PropertyTypeBusiness . ALTRO ) ; obj . getPropertyType ( ) . setTerrains ( FACTORY . createTerrains ( ) ) ; obj . getPropertyType ( ) . getTerrains ( ) . getTerrain ( ) . add ( TerrainType . SEMINATIVO ) ; obj . getPropertyType ( ) . setType ( PropertyTypeSimple . CASA_INDIPENDENTE ) ; obj . setTransactionType ( FACTORY . createTransactionType ( ) ) ; obj . getTransactionType ( ) . setAuction ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getTransactionType ( ) . setOwnership ( OwnershipType . PARZIALE ) ; obj . getTransactionType ( ) . setValue ( "notes about transaction" ) ; obj . setVideos ( FACTORY . createFeedPropertiesPropertyVideos ( ) ) ; obj . getVideos ( ) . getVideo ( ) . add ( createVideo ( ) ) ; obj . getVideos ( ) . getVideo ( ) . add ( createVideo ( ) ) ; return obj ;


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

implementation: PictureProject pic = FACTORY . createPictureProject ( ) ; pic . setPosition ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 100 ) ) ) ; pic . setValue ( "image-" + RandomUtils . nextInt ( 0 , 999 ) + ".jpg" ) ; return pic ;


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

implementation: PictureExtended pic = FACTORY . createPictureExtended ( ) ; pic . setPosition ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 100 ) ) ) ; pic . setValue ( "image-" + RandomUtils . nextInt ( 0 , 999 ) + ".jpg" ) ; pic . setUrl ( "http://mywebsite.org/" + pic . getValue ( ) ) ; return pic ;


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

implementation: VideoProject video = FACTORY . createVideoProject ( ) ; video . setType ( VideoType . LOCAL ) ; video . setValue ( "video-" + RandomUtils . nextInt ( 0 , 999 ) + ".mp4" ) ; return video ;


signature:
public class RandomStringUtils { /** * Generate a random string with ASCII letters and digits .
 * @ param length length of the generated string
 * @ return generated string */
public static String random ( int length ) { } }

implementation: return new RandomStringGenerator . Builder ( ) . filteredBy ( NUMBERS , LETTERS ) . build ( ) . generate ( length ) ;


signature:
public class RandomStringUtils { /** * Generate a random string with ASCII letters .
 * @ param length length of the generated string
 * @ return generated string */
public static String randomLetters ( int length ) { } }

implementation: return new RandomStringGenerator . Builder ( ) . filteredBy ( LETTERS ) . build ( ) . generate ( length ) ;


signature:
public class RandomStringUtils { /** * Generate a random string with ASCII digits .
 * @ param length length of the generated string
 * @ return generated string */
public static String randomNumeric ( int length ) { } }

implementation: return new RandomStringGenerator . Builder ( ) . filteredBy ( NUMBERS ) . build ( ) . generate ( length ) ;


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

implementation: if ( wohnungKategorie == null ) { return WohnungKategorienTyp . KEINE_ANGABE ; } else { return wohnungKategorie ; }


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

implementation: this . benutzer = value ;


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

implementation: this . objekte = value ;


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

implementation: if ( feed == null ) { feed = new ArrayList < Feedindex . Feed > ( ) ; } return this . feed ;


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

implementation: this . moeb = value ;


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

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


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

implementation: return newDocument ( Is24XmlUtils . getFactory ( ) . createIS24ImmobilienTransfer ( transfer ) ) ;


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

implementation: Document document = XmlUtils . newDocument ( ) ; Is24XmlUtils . createMarshaller ( "UTF-8" , true ) . marshal ( transfer , document ) ; return new Is24XmlDocument ( document ) ;


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

implementation: return ( ( IS24ImmobilienTransfer ) Is24XmlUtils . createUnmarshaller ( ) . unmarshal ( this . getDocument ( ) ) ) . getValue ( ) ;


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

implementation: this . subAdministrativeArea = value ;


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

implementation: this . city = value ;


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

implementation: this . locality = value ;


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

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_0 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . removeObjektartZusatzElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <objektart_zusatz> 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 ) ; } try { this . downgradeHausElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <haus> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } } try { this . downgradeXmlNamespace ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade the XML namespace!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; }


signature:
public class OpenImmo_1_2_1 { /** * Upgrade an OpenImmo document from version 1.2.0 to 1.2.1.
 * @ param doc OpenImmo document in version 1.2.0 */
@ Override @ SuppressWarnings ( "Duplicates" ) public void upgradeFromPreviousVersion ( OpenImmoDocument doc ) { } }

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


signature:
public class OpenImmo_1_2_1 { /** * Downgrade & lt ; energiepass & gt ; elements to OpenImmo 1.2.0.
 * The & lt ; mitwarmwasser & gt ; child element of the & lt ; energiepass & gt ; element
 * is not available in version 1.2.0.
 * The & lt ; energieverbrauchkennwert & gt ; , & lt ; endenergiebedarf & gt ; child
 * elements of the & lt ; energiepass & gt ; element are moved into
 * & lt ; energiebedarf & gt ; and & lt ; skala & gt ; in version 1.2.0.
 * @ param doc OpenImmo document in version 1.2.1
 * @ 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 parentNode = ( Element ) item ; boolean skalaProcessed = false ; String artValue = XmlUtils . newXPath ( "io:art/text()" , doc ) . stringValueOf ( parentNode ) ; List childNodes = XmlUtils . newXPath ( "io:mitwarmwasser" , doc ) . selectNodes ( parentNode ) ; for ( Object child : childNodes ) { Node childNode = ( Node ) child ; childNode . getParentNode ( ) . removeChild ( childNode ) ; } childNodes = XmlUtils . newXPath ( "io:energieverbrauchkennwert" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; String childValue = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( ! skalaProcessed && "VERBRAUCH" . equalsIgnoreCase ( artValue ) && childValue != null ) { skalaProcessed = true ; Element skalaNode = doc . createElementNS ( OpenImmoUtils . OLD_NAMESPACE , "skala" ) ; skalaNode . setAttribute ( "type" , "ZAHL" ) ; skalaNode . setTextContent ( childValue ) ; parentNode . appendChild ( skalaNode ) ; } childNode . getParentNode ( ) . removeChild ( childNode ) ; } childNodes = XmlUtils . newXPath ( "io:endenergiebedarf" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; String childValue = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; if ( ! skalaProcessed && "BEDARF" . equalsIgnoreCase ( artValue ) && childValue != null ) { skalaProcessed = true ; Element skalaNode = doc . createElementNS ( OpenImmoUtils . OLD_NAMESPACE , "skala" ) ; skalaNode . setAttribute ( "type" , "ZAHL" ) ; skalaNode . setTextContent ( childValue ) ; parentNode . appendChild ( skalaNode ) ; Element newNode = doc . createElementNS ( OpenImmoUtils . OLD_NAMESPACE , "energiebedarf" ) ; newNode . setTextContent ( childValue ) ; parentNode . appendChild ( newNode ) ; } childNode . getParentNode ( ) . removeChild ( childNode ) ; } }


signature:
public class OpenImmo_1_2_1 { /** * Upgrade & lt ; energiepass & gt ; elements to OpenImmo 1.2.1.
 * Make sure , that a valid value for & lt ; art & gt ; is used .
 * Remove unsupported & lt ; heizwert & gt ; element .
 * Replace & lt ; energiebedarf & gt ; , & lt ; skala & gt ; with
 * & lt ; energieverbrauchkennwert & gt ; or & lt ; endenergiebedarf & gt ; according to
 * the provided & lt ; art & gt ; .
 * @ param doc OpenImmo document in version 1.2.0
 * @ throws JaxenException if xpath evaluation failed */
protected void upgradeEnergiepassElements ( 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 parentNode = ( Element ) item ; String energiebedarfValue = null ; String skalaValue = null ; Element artNode = ( Element ) XmlUtils . newXPath ( "io:art" , doc ) . selectSingleNode ( parentNode ) ; String artValue = ( artNode != null ) ? StringUtils . trimToNull ( artNode . getTextContent ( ) ) : null ; List childNodes = XmlUtils . newXPath ( "io:heizwert" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; childNode . getParentNode ( ) . removeChild ( childNode ) ; } childNodes = XmlUtils . newXPath ( "io:energiebedarf" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Node childNode = ( Node ) childItem ; if ( energiebedarfValue == null ) energiebedarfValue = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; childNode . getParentNode ( ) . removeChild ( childNode ) ; } childNodes = XmlUtils . newXPath ( "io:skala" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Element childNode = ( Element ) childItem ; if ( skalaValue == null && "ZAHL" . equalsIgnoreCase ( childNode . getAttribute ( "type" ) ) ) skalaValue = StringUtils . trimToNull ( childNode . getTextContent ( ) ) ; childNode . getParentNode ( ) . removeChild ( childNode ) ; } if ( artNode != null && "VERBRAUCH" . equalsIgnoreCase ( artValue ) ) { artNode . setTextContent ( "VERBRAUCH" ) ; String value = skalaValue ; if ( value != null ) { Element newNode = doc . createElementNS ( StringUtils . EMPTY , "energieverbrauchkennwert" ) ; newNode . setTextContent ( value ) ; parentNode . appendChild ( newNode ) ; } } else if ( artNode != null && "BEDARF" . equalsIgnoreCase ( artValue ) ) { artNode . setTextContent ( "BEDARF" ) ; String value = ( energiebedarfValue != null ) ? energiebedarfValue : skalaValue ; if ( value != null ) { Element newNode = doc . createElementNS ( StringUtils . EMPTY , "endenergiebedarf" ) ; newNode . setTextContent ( value ) ; parentNode . appendChild ( newNode ) ; } } }


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

implementation: this . miete = value ;


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

implementation: this . kauf = value ;


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

implementation: this . landTyp = value ;


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

implementation: if ( field == null ) { field = new ArrayList < MetaDataType . FIELD > ( ) ; } return this . field ;


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

implementation:
// init logging
PropertyConfigurator . configure ( Is24XmlWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a ImmobilienTransferTyp object with some example data
// this object corresponds to the < IS24ImmobilienTransfer > root element in XML
ImmobilienTransferTyp transfer = FACTORY . createImmobilienTransferTyp ( ) ; transfer . setEmailBeiFehler ( "test@test.org" ) ; transfer . setErstellerSoftware ( "OpenEstate-IO" ) ; transfer . setErstellerSoftwareVersion ( "1.4" ) ; transfer . setAnbieter ( createAnbieter ( ) ) ; // convert the ImmobilienTransferTyp object into a XML document
Is24XmlDocument doc = null ; try { doc = Is24XmlDocument . newDocument ( transfer ) ; } 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 Is24XmlWritingExample { /** * Create an { @ link Anbieter } with some example data .
 * @ return created example object */
protected static Anbieter createAnbieter ( ) { } }

implementation:
// create an example agency
Anbieter anbieter = FACTORY . createImmobilienTransferTypAnbieter ( ) ; anbieter . setScoutKundenID ( "123456" ) ; // add some real estates to the agency
anbieter . getImmobilie ( ) . add ( createImmobilieHausKauf ( ) ) ; anbieter . getImmobilie ( ) . add ( createImmobilieHausKauf ( ) ) ; anbieter . getImmobilie ( ) . add ( createImmobilieHausMiete ( ) ) ; anbieter . getImmobilie ( ) . add ( createImmobilieHausMiete ( ) ) ; return anbieter ;


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

implementation:
// create an example real estate
HausKauf . Type obj = FACTORY . createHausKaufType ( ) ; initImmobilie ( obj ) ; obj . setAlsFerienwohnungGeeignet ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setAnzahlBadezimmer ( RandomUtils . nextLong ( 1 , 5 ) ) ; obj . setAnzahlGaragenStellplaetze ( RandomUtils . nextLong ( 0 , 3 ) ) ; obj . setAnzahlSchlafzimmer ( RandomUtils . nextLong ( 1 , 5 ) ) ; obj . setAusstattungsqualitaet ( AusstattungsqualitaetsTyp . LUXUS ) ; obj . setBarrierefrei ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBaujahr ( RandomUtils . nextLong ( 1900 , 2010 ) ) ; obj . setBauphase ( BauphaseTyp . HAUS_FERTIG_GESTELLT ) ; obj . setDenkmalschutzobjekt ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEtagenzahl ( RandomUtils . nextLong ( 1 , 10 ) ) ; obj . setFreiAb ( "notes about availability" ) ; obj . setGaesteWC ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGrundstuecksFlaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1500 ) ) ) ; obj . setHausKategorie ( HausKategorienTyp . MEHRFAMILIENHAUS ) ; obj . setHeizungsart ( HeizungsartTyp . ETAGENHEIZUNG ) ; obj . setJahrLetzteModernisierung ( RandomUtils . nextLong ( 1980 , 2000 ) ) ; obj . setKeller ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMitEinliegerwohnung ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNutzflaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1000 ) ) ) ; obj . setObjektzustand ( ObjektZustandTyp . NEUWERTIG ) ; obj . setParkplatz ( StellplatzKategorieTyp . TIEFGARAGE ) ; obj . setRollstuhlgerecht ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setVermietet ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setWohnflaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 500 ) ) ) ; obj . setZimmer ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1 , 10 ) ) ) ; obj . setBefeuerungsArt ( FACTORY . createBefeuerungsArtTyp ( ) ) ; obj . getBefeuerungsArt ( ) . setOel ( FACTORY . createBefeuerungsArtTypOel ( Boolean . TRUE ) ) ; obj . getBefeuerungsArt ( ) . setGas ( FACTORY . createBefeuerungsArtTypGas ( Boolean . TRUE ) ) ; obj . setEnergieausweis ( FACTORY . createEnergieausweisTyp ( ) ) ; obj . getEnergieausweis ( ) . setEnergieausweistyp ( EnergieausweistypTyp . ENERGIEVERBRAUCHSKENNWERT ) ; obj . getEnergieausweis ( ) . setEnergieverbrauchskennwert ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 500 ) ) ) ; obj . getEnergieausweis ( ) . setWarmwasserEnthalten ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setKaufpreise ( FACTORY . createVermarktungWohnKaufTyp ( ) ) ; obj . getKaufpreise ( ) . setKaufpreis ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100000 , 9999999 ) ) ) ; obj . getKaufpreise ( ) . setMieteinnahmenProMonat ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 5000 , 50000 ) ) ) ; obj . getKaufpreise ( ) . setStellplatzKaufpreis ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1000 , 10000 ) ) ) ; obj . getKaufpreise ( ) . setWohngeld ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 500 , 5000 ) ) ) ; return FACTORY . createHausKauf ( obj ) ;


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

implementation:
// create an example real estate
HausMiete . Type obj = FACTORY . createHausMieteType ( ) ; initImmobilie ( obj ) ; obj . setAnzahlBadezimmer ( RandomUtils . nextLong ( 1 , 5 ) ) ; obj . setAnzahlGaragenStellplaetze ( RandomUtils . nextLong ( 0 , 3 ) ) ; obj . setAnzahlSchlafzimmer ( RandomUtils . nextLong ( 1 , 5 ) ) ; obj . setAusstattungsqualitaet ( AusstattungsqualitaetsTyp . GEHOBEN ) ; obj . setBarrierefrei ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setBaujahr ( RandomUtils . nextLong ( 1900 , 2010 ) ) ; obj . setBetreutesWohnen ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEinbaukueche ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setEtagenzahl ( RandomUtils . nextLong ( 1 , 10 ) ) ; obj . setFreiAb ( "notes about availability" ) ; obj . setGaesteWC ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setGrundstuecksFlaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 1500 ) ) ) ; obj . setHausKategorie ( HausKategorienTyp . EINFAMILIENHAUS ) ; obj . setHaustiere ( GenehmigungTyp . NACH_VEREINBARUNG ) ; obj . setHeizungsart ( HeizungsartTyp . ZENTRALHEIZUNG ) ; obj . setJahrLetzteModernisierung ( RandomUtils . nextLong ( 1980 , 2000 ) ) ; obj . setKeller ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNutzflaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 150 , 500 ) ) ) ; obj . setObjektzustand ( ObjektZustandTyp . GEPFLEGT ) ; obj . setParkplatz ( StellplatzKategorieTyp . CARPORT ) ; obj . setRollstuhlgerecht ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setWohnflaeche ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 300 ) ) ) ; obj . setZimmer ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1 , 5 ) ) ) ; obj . setBefeuerungsArt ( FACTORY . createBefeuerungsArtTyp ( ) ) ; obj . getBefeuerungsArt ( ) . setErdwaerme ( FACTORY . createBefeuerungsArtTypErdwaerme ( Boolean . TRUE ) ) ; obj . getBefeuerungsArt ( ) . setPelletheizung ( FACTORY . createBefeuerungsArtTypPelletheizung ( Boolean . TRUE ) ) ; obj . setEnergieausweis ( FACTORY . createEnergieausweisTyp ( ) ) ; obj . getEnergieausweis ( ) . setEnergieausweistyp ( EnergieausweistypTyp . ENERGIEVERBRAUCHSKENNWERT ) ; obj . getEnergieausweis ( ) . setEnergieverbrauchskennwert ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 500 ) ) ) ; obj . getEnergieausweis ( ) . setWarmwasserEnthalten ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setMietpreise ( FACTORY . createVermarktungWohnMieteTyp ( ) ) ; obj . getMietpreise ( ) . setHeizkosten ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 500 ) ) ) ; obj . getMietpreise ( ) . setHeizkostenInWarmmieteEnthalten ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getMietpreise ( ) . setKaltmiete ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 150 , 1500 ) ) ) ; obj . getMietpreise ( ) . setKaution ( "notes about deposit" ) ; obj . getMietpreise ( ) . setNebenkosten ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 500 ) ) ) ; obj . getMietpreise ( ) . setStellplatzMiete ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 50 , 500 ) ) ) ; obj . getMietpreise ( ) . setWarmmiete ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 250 , 2500 ) ) ) ; return FACTORY . createHausMiete ( obj ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link Feed . Projects . Project . Lots . Lot } */
public Feed . Projects . Project . Lots . Lot createFeedProjectsProjectLotsLot ( ) { } }

implementation: return new Feed . Projects . Project . Lots . Lot ( ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link Feed . Projects . Project . Agent . SalesOffice } */
public Feed . Projects . Project . Agent . SalesOffice createFeedProjectsProjectAgentSalesOffice ( ) { } }

implementation: return new Feed . Projects . Project . Agent . SalesOffice ( ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link Feed . Projects . Project . Lots . Lot . Pictures } */
public Feed . Projects . Project . Lots . Lot . Pictures createFeedProjectsProjectLotsLotPictures ( ) { } }

implementation: return new Feed . Projects . Project . Lots . Lot . Pictures ( ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link Feed . Projects . Project . Agent . SalesOffice . City } */
public Feed . Projects . Project . Agent . SalesOffice . City createFeedProjectsProjectAgentSalesOfficeCity ( ) { } }

implementation: return new Feed . Projects . Project . Agent . SalesOffice . City ( ) ;


signature:
public class ObjectFactory { /** * Create an instance of { @ link Feed . Projects . Project . Agent . SalesOffice . Locality } */
public Feed . Projects . Project . Agent . SalesOffice . Locality createFeedProjectsProjectAgentSalesOfficeLocality ( ) { } }

implementation: return new Feed . Projects . Project . Agent . SalesOffice . Locality ( ) ;


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

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_1 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . downgradeUebertragungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <uebertragung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeUserDefinedExtendElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <user_defined_extend> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeAnbieterChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <anbieter> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeBieterverfahrenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <bieterverfahren> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeBewertungElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <bewertung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeGeoChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <geo> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeHeizkostenEnthaltenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <heizkosten_enthalten> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeAusstattungChildElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove unsupported children of <ausstattung> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . removeEnergiepassElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't remove <energiepass> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } try { this . downgradeMieteinnahmenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <mieteinnahmen_ist> and <mieteinnahmen_soll> 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 . downgradeHausElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't downgrade <haus> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } }


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

implementation: doc . setDocumentVersion ( OpenImmoVersion . V1_2_0 ) ; if ( doc instanceof OpenImmoTransferDocument ) { try { this . upgradeMieteinnahmenElements ( doc . getDocument ( ) ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't upgrade <mieteinnahmen_ist> and <mieteinnahmen_soll> elements!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } }


signature:
public class OpenImmo_1_2_0 { /** * Downgrade & lt ; mieteinnahmen _ ist & gt ; , & lt ; mieteinnahmen _ soll & gt ; elements
 * to OpenImmo 1.1.
 * The " periode " attribute of the & lt ; mieteinnahmen _ ist & gt ; and
 * & lt ; mieteinnahmen _ soll & gt ; elements is not available in version 1.1.
 * Any occurences of these values is removed .
 * The numeric value within the & lt ; mieteinnahmen _ ist & gt ; and
 * & lt ; mieteinnahmen _ soll & gt ; elements is converted according to the value of
 * the " periode " attribute .
 * @ param doc OpenImmo document in version 1.2.0
 * @ throws JaxenException if xpath evaluation failed */
protected void downgradeMieteinnahmenElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:preise/io:mieteinnahmen_ist[@periode] |" + "/io:openimmo/io:anbieter/io:immobilie/io:preise/io:mieteinnahmen_soll[@periode]" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; String value = StringUtils . trimToNull ( node . getTextContent ( ) ) ; Double numericValue = null ; try { numericValue = ( value != null ) ? DatatypeConverter . parseDouble ( value ) : null ; } catch ( Exception ex ) { String tagName = node . getTagName ( ) ; LOGGER . warn ( "Can't parse <" + tagName + ">" + value + "</" + tagName + "> as number!" ) ; LOGGER . warn ( "> " + ex . getLocalizedMessage ( ) , ex ) ; } if ( numericValue != null && numericValue > 0 ) { String periode = StringUtils . trimToNull ( node . getAttribute ( "periode" ) ) ; if ( "MONAT" . equalsIgnoreCase ( periode ) ) { node . setTextContent ( DatatypeConverter . printDouble ( numericValue * 12 ) ) ; } else if ( "WOCHE" . equalsIgnoreCase ( periode ) ) { node . setTextContent ( DatatypeConverter . printDouble ( numericValue * 52 ) ) ; } else if ( "TAG" . equalsIgnoreCase ( periode ) ) { node . setTextContent ( DatatypeConverter . printDouble ( numericValue * 365 ) ) ; } } node . removeAttribute ( "periode" ) ; }


signature:
public class OpenImmo_1_2_0 { /** * Remove unsupported children from all & lt ; ausstattung & gt ; elements .
 * OpenImmo 1.1 does not support the following children for
 * & lt ; ausstattung & gt ; elements : & lt ; dvbt & gt ; , & lt ; breitband _ zugang & gt ; ,
 * & lt ; umts _ empfang & gt ; , & lt ; abstellraum & gt ; , & lt ; fahrradraum & gt ; ,
 * & lt ; rolladen & gt ;
 * These elements are removed by this function .
 * @ param doc OpenImmo document in version 1.2.0
 * @ throws JaxenException if xpath evaluation failed */
protected void removeAusstattungChildElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:dvbt | " + "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:breitband_zugang | " + "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:umts_empfang | " + "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:abstellraum | " + "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:fahrradraum | " + "/io:openimmo/io:anbieter/io:immobilie/io:ausstattung/io:rolladen" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; Element parentNode = ( Element ) node . getParentNode ( ) ; parentNode . removeChild ( node ) ; }


signature:
public class OpenImmo_1_2_0 { /** * Upgrade & lt ; mieteinnahmen _ ist & gt ; , & lt ; mieteinnahmen _ soll & gt ; elements
 * to OpenImmo 1.2.0.
 * The " periode " attribute with the value " JAHR " is added to any
 * & lt ; mieteinnahmen _ ist & gt ; and & lt ; mieteinnahmen _ soll & gt ; elements .
 * @ param doc OpenImmo document in version 1.1
 * @ throws JaxenException if xpath evaluation failed */
protected void upgradeMieteinnahmenElements ( Document doc ) throws JaxenException { } }

implementation: List nodes = XmlUtils . newXPath ( "/io:openimmo/io:anbieter/io:immobilie/io:preise/io:mieteinnahmen_ist |" + "/io:openimmo/io:anbieter/io:immobilie/io:preise/io:mieteinnahmen_soll" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element node = ( Element ) item ; node . setAttribute ( "periode" , "JAHR" ) ; }


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

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


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

implementation: this . gastgewTyp = value ;


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

implementation: this . platzart = value ;


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

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


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

implementation: if ( datenVerkabelung == null ) { return DatenVerkabelungsTyp . KEINE_ANGABE ; } else { return datenVerkabelung ; }


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

implementation: if ( klimaanlage == null ) { return JaNeinVereinbarungTyp . KEINE_ANGABE ; } else { return klimaanlage ; }


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

implementation: if ( image == null ) { image = new ArrayList < ImagesType . Image > ( ) ; } return this . image ;


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

implementation:
// init logging
PropertyConfigurator . configure ( CasaItWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a Container object with some example data
// this object corresponds to the < container > root element in XML
Container container = FACTORY . createContainer ( ) ; container . setRealestateitems ( FACTORY . createContainerRealestateitems ( ) ) ; // append some example objects to the Container object
container . getRealestateitems ( ) . getRealestate ( ) . add ( createRealestate ( ) ) ; container . getRealestateitems ( ) . getRealestate ( ) . add ( createRealestate ( ) ) ; container . getRealestateitems ( ) . getRealestate ( ) . add ( createRealestate ( ) ) ; // convert the Container object into a XML document
CasaItDocument doc = null ; try { doc = CasaItDocument . newDocument ( container ) ; } 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 CasaItWritingExample { /** * Create a { @ link Realestate } with some example data .
 * @ return created example object */
protected static Realestate createRealestate ( ) { } }

implementation:
// create an example real estate
Realestate obj = FACTORY . createContainerRealestateitemsRealestate ( ) ; obj . setAction ( BigInteger . ONE ) ; obj . setAgencycode ( 0 ) ; obj . setBathrooms ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . setCondition ( BigInteger . ONE ) ; obj . setContracttype ( BigInteger . ONE ) ; obj . setFloor ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . setHasbalcony ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setHasterrace ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setHeatingtype ( BigInteger . ONE ) ; obj . setHousetypology ( BigInteger . ONE ) ; obj . setOccupationstate ( BigInteger . ONE ) ; obj . setRealestatetype ( BigInteger . ONE ) ; obj . setReference ( RandomStringUtils . random ( 5 ) ) ; obj . setReferenceID ( RandomUtils . nextInt ( 1 , 1000 ) ) ; obj . setRooms ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 10 ) ) ) ; obj . setSize ( BigInteger . valueOf ( RandomUtils . nextLong ( 50 , 5000 ) ) ) ; obj . setAddress ( FACTORY . createContainerRealestateitemsRealestateAddress ( ) ) ; obj . getAddress ( ) . setCity ( "Berlin" ) ; obj . getAddress ( ) . setNumber ( "123" ) ; obj . getAddress ( ) . setStreet ( "example street" ) ; obj . getAddress ( ) . setZip ( "12345" ) ; obj . getAddress ( ) . setZone ( "Berlin" ) ; obj . setBox ( FACTORY . createContainerRealestateitemsRealestateBox ( ) ) ; obj . getBox ( ) . setSize ( BigInteger . valueOf ( RandomUtils . nextLong ( 50 , 1000 ) ) ) ; obj . getBox ( ) . setType ( BigInteger . ONE ) ; obj . setBuilding ( FACTORY . createContainerRealestateitemsRealestateBuilding ( ) ) ; obj . getBuilding ( ) . setAge ( BigInteger . valueOf ( RandomUtils . nextLong ( 5 , 50 ) ) ) ; obj . getBuilding ( ) . setExpenses ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1000 , 1000000 ) ) ) ; obj . getBuilding ( ) . setHaslift ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getBuilding ( ) . setTotalfloors ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 5 ) ) ) ; obj . getBuilding ( ) . setUnits ( BigInteger . ONE ) ; obj . setConfiguration ( FACTORY . createContainerRealestateitemsRealestateConfiguration ( ) ) ; obj . getConfiguration ( ) . setIsaddressvisibleonsite ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getConfiguration ( ) . setIsmapvisible ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . getConfiguration ( ) . setIsrealestatevisibleonmap ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setDescription ( FACTORY . createContainerRealestateitemsRealestateDescription ( ) ) ; obj . getDescription ( ) . setValue ( "a nice little description for the object" ) ; obj . setGarden ( FACTORY . createContainerRealestateitemsRealestateGarden ( ) ) ; obj . getGarden ( ) . setSize ( BigInteger . valueOf ( RandomUtils . nextLong ( 10 , 100 ) ) ) ; obj . getGarden ( ) . setType ( BigInteger . ONE ) ; obj . setGooglemapcoordinate ( FACTORY . createContainerRealestateitemsRealestateGooglemapcoordinate ( ) ) ; obj . getGooglemapcoordinate ( ) . setLatitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getGooglemapcoordinate ( ) . setLatitudemapcenter ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getGooglemapcoordinate ( ) . setLongitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getGooglemapcoordinate ( ) . setLongitudemapcenter ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getGooglemapcoordinate ( ) . setMapzoom ( 10 ) ; obj . setImages ( FACTORY . createContainerRealestateitemsRealestateImages ( ) ) ; obj . getImages ( ) . getAdvertismentimage ( ) . add ( createAdvertismentimage ( ) ) ; obj . getImages ( ) . getAdvertismentimage ( ) . add ( createAdvertismentimage ( ) ) ; obj . getImages ( ) . getAdvertismentimage ( ) . add ( createAdvertismentimage ( ) ) ; obj . setPrice ( FACTORY . createContainerRealestateitemsRealestatePrice ( ) ) ; obj . getPrice ( ) . setMax ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1000 , 1000000 ) ) ) ; obj . getPrice ( ) . setMin ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1000 , 1000000 ) ) ) ; obj . getPrice ( ) . setValue ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1000 , 1000000 ) ) ) ; return obj ;


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

implementation: Advertismentimage img = FACTORY . createContainerRealestateitemsRealestateImagesAdvertismentimage ( ) ; img . setImagetype ( "image/jpeg" ) ; img . setPath ( "image-" + RandomStringUtils . randomNumeric ( 3 ) + ".jpg" ) ; return img ;


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

implementation: this . priceType = value ;


signature:
public class OverseasSaleAdType { /** * Sets the value of the newDevelopmentAvailability 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 setNewDevelopmentAvailability ( java . lang . String value ) { } }

implementation: this . newDevelopmentAvailability = value ;


signature:
public class OverseasSaleAdType { /** * Sets the value of the directions 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 setDirections ( java . lang . String value ) { } }

implementation: this . directions = value ;


signature:
public class OverseasSaleAdType { /** * Sets the value of the co2Rating 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 setCo2Rating ( java . lang . String value ) { } }

implementation: this . co2Rating = value ;


signature:
public class OverseasSaleAdType { /** * Sets the value of the energyRating 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 setEnergyRating ( java . lang . String value ) { } }

implementation: this . energyRating = value ;


signature:
public class OverseasSaleAdType { /** * Sets the value of the viewingDetails 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 setViewingDetails ( java . lang . String value ) { } }

implementation: this . viewingDetails = value ;


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

implementation: this . propertyStatus = value ;


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

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


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

implementation: this . pictures = value ;