public class OpenImmo_1_2_5 extends XmlConverter<OpenImmoDocument,OpenImmoVersion>
Constructor and Description |
---|
OpenImmo_1_2_5() |
Modifier and Type | Method and Description |
---|---|
protected void |
downgradeBebaubarNachElements(Document doc)
Downgrade <bebaubar_nach> elements to OpenImmo 1.2.4.
|
protected void |
downgradeEnergiepassElements(Document doc)
Downgrade <energiepass> elements to OpenImmo 1.2.4.
|
protected void |
downgradeErschliessungElements(Document doc)
Downgrade <erschliessung> elements to OpenImmo 1.2.4.
|
protected void |
downgradeHausElements(Document doc)
Downgrade <haus> elements to OpenImmo 1.2.4.
|
void |
downgradeToPreviousVersion(OpenImmoDocument doc)
Downgrade an OpenImmo document from version 1.2.5 to 1.2.4.
|
protected void |
downgradeWohnungElements(Document doc)
Downgrade <wohnung> elements to OpenImmo 1.2.4.
|
protected void |
downgradeZustandElements(Document doc)
Downgrade <zustand> elements to OpenImmo 1.2.4.
|
OpenImmoVersion |
getVersion()
Returns the version, that this converter is implemented for.
|
protected void |
removeAnzahlLogiaElements(Document doc)
Remove <anzahl_logia> elements.
|
protected void |
removeErschliessungUmfangElements(Document doc)
Remove <erschliessung_umfang> elements.
|
protected void |
removeFeedbackObjektChildElements(Document doc)
Remove unsupported children from all <objekt> elements in feedback
XML.
|
protected void |
removeKontaktpersonChildElements(Document doc)
Remove unsupported children from all <kontaktperson> elements.
|
protected void |
removeMwstGesamtElements(Document doc)
Remove <mwst_gesamt> elements.
|
protected void |
removeVerkehrswertElements(Document doc)
Remove <verkehrswert> elements.
|
protected void |
removeVerwaltungTechnChildElements(Document doc)
Remove unsupported children from all <verwaltung_techn> elements.
|
protected void |
upgradeEnergiepassElements(Document doc)
Upgrade <energiepass> elements to OpenImmo 1.2.5.
|
void |
upgradeFromPreviousVersion(OpenImmoDocument doc)
Upgrade an OpenImmo document from version 1.2.4 to 1.2.5.
|
public OpenImmoVersion getVersion()
XmlConverter
getVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
public void downgradeToPreviousVersion(OpenImmoDocument doc)
downgradeToPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.2.5public void upgradeFromPreviousVersion(OpenImmoDocument doc)
upgradeFromPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.2.4protected void downgradeBebaubarNachElements(Document doc) throws org.jaxen.JaxenException
The option "BAULAND_OHNE_B_PLAN" for the "bebaubar_attr" attribute of <bebaubar_nach> elements is not available in version 1.2.4.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void downgradeEnergiepassElements(Document doc) throws org.jaxen.JaxenException
The child elements <hwbwert>, <hwbklasse>, <fgeewert>, <fgeeklasse> are copied into separate <user_defined_simplefield> elements as it was suggested by OpenImmo e.V..
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void downgradeErschliessungElements(Document doc) throws org.jaxen.JaxenException
The option "ORTSUEBLICHERSCHLOSSEN" for the "erschl_attr" attribute of <erschliessung> elements is not available in version 1.2.4.
Any occurence of these values are removed.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void downgradeHausElements(Document doc) throws org.jaxen.JaxenException
The option "FERTIGHAUS" for the "haustyp" attribute of <haus> elements is not available in version 1.2.4.
Any occurence of these values is replaced by the "KEINE_ANGABE" value.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void downgradeWohnungElements(Document doc) throws org.jaxen.JaxenException
The option "ATTIKAWOHNUNG" for the "wohnungtyp" attribute of <wohnung> elements is not available in version 1.2.4.
Any occurence of these values is replaced by the "KEINE_ANGABE" value.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void downgradeZustandElements(Document doc) throws org.jaxen.JaxenException
The options "TEIL_SANIERT", "VOLL_SANIERT", "SANIERUNGSBEDUERFTIG" for the "zustand_art" attribute of <zustand> elements are not available in version 1.2.4.
Any occurence of the "TEIL_SANIERT" value is replaced by the "TEIL_VOLLSANIERT" value.
Any occurence of the "VOLL_SANIERT" value is replaced by the "TEIL_VOLLSANIERT" value.
Any occurence of the "SANIERUNGSBEDUERFTIG" value is removed.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeAnzahlLogiaElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support <anzahl_logia> elements.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeErschliessungUmfangElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support <erschliessung_umfang> elements.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeFeedbackObjektChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support the following children in feedback XML's for <objekt> elements: <land>, <stadtbezirk>, <anzahl_zimmer>, <flaeche>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeKontaktpersonChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support the following children for <kontaktperson> elements: <position>, <immobilientreuhaenderid>, <foto>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeMwstGesamtElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support <mwst_gesamt> elements.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeVerkehrswertElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support <verkehrswert> elements.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void removeVerwaltungTechnChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.4 does not support the following children for <verwaltung_techn> elements: <gruppen_kennung>, <master>, <sprache>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.5org.jaxen.JaxenException
protected void upgradeEnergiepassElements(Document doc) throws org.jaxen.JaxenException
The <user_defined_simplefield> elements for Austria, that were suggested by OpenImmo e.V., are explicitly supported in OpenImmo 1.2.5 as child elements of <energiepass>. Any matching <user_defined_simplefield> elements are moved into the <energiepass> element.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
Copyright © 2015 OpenEstate. All rights reserved.