public class OpenImmo_1_2_4 extends XmlConverter<OpenImmoDocument,OpenImmoVersion>
Constructor and Description |
---|
OpenImmo_1_2_4() |
Modifier and Type | Method and Description |
---|---|
protected void |
downgradeAnhangElements(Document doc)
Downgrade <anhang> elements to OpenImmo 1.2.3.
|
protected void |
downgradeBebaubarNachElements(Document doc)
Downgrade <bebaubar_nach> elements to OpenImmo 1.2.3.
|
protected void |
downgradeEnergietypElements(Document doc)
Downgrade <energietyp> elements to OpenImmo 1.2.3.
|
protected void |
downgradeGrundstueckElements(Document doc)
Downgrade <grundstueck> elements to OpenImmo 1.2.3.
|
protected void |
downgradeLandUndForstwirtschaftElements(Document doc)
Downgrade <land_und_forstwirtschaft> elements to OpenImmo 1.2.3.
|
protected void |
downgradeParkenElements(Document doc)
Downgrade <parken> elements to OpenImmo 1.2.3.
|
void |
downgradeToPreviousVersion(OpenImmoDocument doc)
Downgrade an OpenImmo document from version 1.2.4 to 1.2.3.
|
protected void |
downgradeWohnungElements(Document doc)
Downgrade <wohnung> elements to OpenImmo 1.2.3.
|
OpenImmoVersion |
getVersion()
Returns the version, that this converter is implemented for.
|
protected void |
removeFeedbackInteressentChildElements(Document doc)
Remove unsupported children from all <interessent> elements in
feedback XML.
|
protected void |
removeFeedbackVersionElements(Document doc)
Remove <version> elements in feedback XML.
|
protected void |
removePreiseChildElements(Document doc)
Remove unsupported children from all <preise> elements.
|
protected void |
removeWintergartenElements(Document doc)
Remove <wintergarten> elements.
|
protected void |
upgradeAnhangElements(Document doc)
Upgrade <anhang> elements to OpenImmo 1.2.4.
|
protected void |
upgradeAnzahlBalkonTerrassenElements(Document doc)
Upgrade <anzahl_balkon_terrassen> elements to OpenImmo 1.2.4.
|
void |
upgradeFromPreviousVersion(OpenImmoDocument doc)
Upgrade an OpenImmo document from version 1.2.3 to 1.2.4.
|
protected void |
upgradeSonstigeElements(Document doc)
Upgrade <sonstige> elements to OpenImmo 1.2.4.
|
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.4public void upgradeFromPreviousVersion(OpenImmoDocument doc)
upgradeFromPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.2.3protected void downgradeAnhangElements(Document doc) throws org.jaxen.JaxenException
The options "QRCODE", "FILM", "FILMLINK" for the "gruppe" attribute of <anhang> elements are not available in version 1.2.3.
The option "REMOTE" for the "location" attribute of <anhang> elements is not available in version 1.2.3.
The the child element <check> of <anhang> elements is not available in version 1.2.3.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeBebaubarNachElements(Document doc) throws org.jaxen.JaxenException
The option "LAENDERSPEZIFISCH" for the "bebaubar_attr" attribute of <bebaubar_nach> elements is not available in version 1.2.3.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeEnergietypElements(Document doc) throws org.jaxen.JaxenException
The attributes "KFW55", "KFW70" of <energietyp> elements are not available in OpenImmo 1.2.3.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeGrundstueckElements(Document doc) throws org.jaxen.JaxenException
The option "SEELIEGENSCHAFT" for the "grundst_typ" attribute of <grundstueck> elements is not available in version 1.2.3.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeLandUndForstwirtschaftElements(Document doc) throws org.jaxen.JaxenException
The option "JAGDREVIER" for the "land_typ" attribute of <land_und_forstwirtschaft> elements is not available in version 1.2.3.
Any occurence of these values is replaced by the "SONSTIGE_LANDWIRTSCHAFTSIMMOBILIEN" value.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeParkenElements(Document doc) throws org.jaxen.JaxenException
The options "EINZELGARAGE", "PARKHAUS", "TIEFGARAGENSTELLPLATZ", "PARKPLATZ_STROM" for the "parken_typ" attribute of <parken> elements are not available in version 1.2.3.
Any occurence of these values is replaced by the "STELLPLATZ" value.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void downgradeWohnungElements(Document doc) throws org.jaxen.JaxenException
The option "ROHDACHBODEN" for the "wohnungtyp" attribute of <wohnung> elements is not available in version 1.2.3.
Any occurence of these values is replaced by the "KEINE_ANGABE" value.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void removeFeedbackInteressentChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.3 does not support more then one <bevorzugt>, <wunsch> elements in feedback XML.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void removeFeedbackVersionElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.3 does not support <version> elements in feedback XML.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void removePreiseChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.3 does not support the following children for <preise> elements: <provision_teilen>, <kaution_text>, <richtpreis>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void removeWintergartenElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.3 does not support <wintergarten> elements.
doc
- OpenImmo document in version 1.2.4org.jaxen.JaxenException
protected void upgradeAnhangElements(Document doc) throws org.jaxen.JaxenException
The option "REMOTE" for the "location" attribute of <anhang> elements is introduced with OpenImmo 1.2.4.
If the <pfad> element of an <anhang> element contains an URL (beginning with "http://" / "https://" / "ftp://" / "ftps://"), the value of the "location" attribute is changed to "REMOTE".
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void upgradeAnzahlBalkonTerrassenElements(Document doc) throws org.jaxen.JaxenException
The <anzahl_balkon_terrassen> is not supported anymore in version 1.2.4. The element is replaced by <anzahl_balkone> and <anzahl_terrassen>.
Any <anzahl_balkon_terrassen> element is removed. Its content is copied into <anzahl_balkone>, if this element is not already present.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void upgradeSonstigeElements(Document doc) throws org.jaxen.JaxenException
The options "GARAGEN", "PARKFLACHE" for the "sonstige_typ" attribute of <sonstige> elements were removed with OpenImmo 1.2.4.
For any occurence of these values the corresponding <sonstige> element is replaced with a <parken> element.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
Copyright © 2015 OpenEstate. All rights reserved.