public class OpenImmo_1_2_3 extends XmlConverter<OpenImmoDocument,OpenImmoVersion>
Constructor and Description |
---|
OpenImmo_1_2_3() |
Modifier and Type | Method and Description |
---|---|
protected void |
downgradeAusrichtBalkonTerrasseElements(Document doc)
Downgrade <ausricht_balkon_terrasse> elements to OpenImmo 1.2.2.
|
protected void |
downgradeBadElements(Document doc)
Downgrade <bad> elements to OpenImmo 1.2.2.
|
protected void |
downgradeBefeuerungElements(Document doc)
Downgrade <befeuerung> elements to OpenImmo 1.2.2.
|
protected void |
downgradeBodenElements(Document doc)
Downgrade <boden> elements to OpenImmo 1.2.2.
|
protected void |
downgradeDachformElements(Document doc)
Downgrade <dachform> elements to OpenImmo 1.2.2.
|
protected void |
downgradeFlaechenChildElements(Document doc)
Remove unsupported children from all <flaechen> elements.
|
protected void |
downgradeHausElements(Document doc)
Downgrade <haus> elements to OpenImmo 1.2.2.
|
protected void |
downgradeKuecheElements(Document doc)
Downgrade <kueche> elements to OpenImmo 1.2.2.
|
protected void |
downgradeParkenElements(Document doc)
Replace <parken> elements with <sonstige> elements.
|
protected void |
downgradeSonstigeElements(Document doc)
Downgrade <sonstige> elements to OpenImmo 1.2.2.
|
void |
downgradeToPreviousVersion(OpenImmoDocument doc)
Downgrade an OpenImmo document from version 1.2.3 to 1.2.2.
|
protected void |
downgradeWohnungElements(Document doc)
Downgrade <wohnung> elements to OpenImmo 1.2.2.
|
protected void |
downgradeZinshausRenditeobjektElements(Document doc)
Downgrade <zinshaus_renditeobjekt> elements to OpenImmo 1.2.2.
|
OpenImmoVersion |
getVersion()
Returns the version, that this converter is implemented for.
|
protected void |
removeAusstattungChildElements(Document doc)
Remove unsupported children from all <ausstattung> elements.
|
protected void |
removeEmailFeedbackElements(Document doc)
Remove <email_feedback> elements.
|
protected void |
removePreiseChildElements(Document doc)
Remove unsupported children from all <preise> elements.
|
protected void |
removeUserDefinedExtendElements(Document doc)
Remove <user_defined_extend> elements.
|
protected void |
removeZustandAngabenChildElements(Document doc)
Remove unsupported children from all <zustand_angaben> elements.
|
void |
upgradeFromPreviousVersion(OpenImmoDocument doc)
Upgrade an OpenImmo document from version 1.2.2 to 1.2.3.
|
protected void |
upgradeSonstigeElements(Document doc)
Upgrade <sonstige> elements to OpenImmo 1.2.3.
|
protected void |
upgradeZinshausRenditeobjektElements(Document doc)
Upgrade <zinshaus_renditeobjekt> elements to OpenImmo 1.2.3.
|
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.3public void upgradeFromPreviousVersion(OpenImmoDocument doc)
upgradeFromPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.2.2protected void downgradeAusrichtBalkonTerrasseElements(Document doc) throws org.jaxen.JaxenException
The attributes "NORDOST", "NORDWEST", "SUEDOST", "SUEDWEST" for <ausricht_balkon_terrasse> elements are not available in version 1.2.2.
Any occurences of these values are replaced by the single components - e.g. "NORDOST" is removed and "NORD" + "OST" is set.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeBadElements(Document doc) throws org.jaxen.JaxenException
The attributes "BIDET", "PISSOIR" for <bad> elements are not available in version 1.2.2.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeBefeuerungElements(Document doc) throws org.jaxen.JaxenException
The attribute "PELLET" for <befeuerung> elements is not available in version 1.2.2.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeBodenElements(Document doc) throws org.jaxen.JaxenException
The attributes "MARMOR", "TERRAKOTTA" for <boden> elements are not available in version 1.2.2.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeDachformElements(Document doc) throws org.jaxen.JaxenException
The attributes "FLACHDACH", "PYRAMIDENDACH" for <dachform> elements are not available in version 1.2.2.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeFlaechenChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support the following children for <flaechen> elements: <anzahl_balkone>, <anzahl_terrassen>
These elements are removed by this function. If <anzahl_balkon_terrassen> is not already specified, the sum values of <anzahl_balkone> and <anzahl_terrassen> are written into <anzahl_balkon_terrassen>.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeHausElements(Document doc) throws org.jaxen.JaxenException
The options "APARTMENTHAUS", "BURG", "HERRENHAUS", "FINCA", "RUSTICO" for the "haustyp" attribute of <haus> elements are not available in version 1.2.2.
Any occurence of these values is replaced by the "KEINE_ANGABE" value.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeKuecheElements(Document doc) throws org.jaxen.JaxenException
The attribute "PANTRY" for <kueche> elements is not available in version 1.2.2.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeParkenElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support <parken> elements. Any occurence is converted into <sonstige> elements.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeSonstigeElements(Document doc) throws org.jaxen.JaxenException
The option "KRANKENHAUS" for the "sonstige_typ" attribute of <sonstige> elements is placed in the <haus> element in version 1.2.2.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeWohnungElements(Document doc) throws org.jaxen.JaxenException
The options "APARTMENT", "FERIENWOHNUNG", "GALERIE" for the "wohnungtyp" attribute of <wohnung> elements are not available in version 1.2.2.
Any occurence of these values is replaced by the "KEINE_ANGABE" value.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void downgradeZinshausRenditeobjektElements(Document doc) throws org.jaxen.JaxenException
The options "PFLEGEHEIM", "SANATORIUM", "SENIORENHEIM", "BETREUTES-WOHNEN" for the "zins_typ" attribute of <zinshaus_renditeobjekt> elements are placed in the <haus> element in version 1.2.2.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void removeAusstattungChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support the following children for <ausstattung> elements: <energietyp>, <bibliothek>, <dachboden>, <gaestewc>, <kabelkanaele>, <seniorengerecht>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void removeEmailFeedbackElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support <email_feedback> elements.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void removePreiseChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support the following children for <preise> elements: <courtage_hinweis>, <nettorendite_soll>, <nettorendite_ist>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void removeUserDefinedExtendElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support <user_defined_extend> elements in <freitexte> and <anhaenge> elements.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void removeZustandAngabenChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.2 does not support the following children for <zustand_angaben> elements: <letztemodernisierung>, <verkaufstatus>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.3org.jaxen.JaxenException
protected void upgradeSonstigeElements(Document doc) throws org.jaxen.JaxenException
The option "KRANKENHAUS" for the "haustyp" attribute of <haus> elements is placed in the <sonstige> element in version 1.2.3.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void upgradeZinshausRenditeobjektElements(Document doc) throws org.jaxen.JaxenException
The options "PFLEGEHEIM", "SANATORIUM", "SENIORENHEIM", "BETREUTES-WOHNEN" for the "haustyp" attribute of <haus> elements are placed in the <zinshaus_renditeobjekt> element in version 1.2.3.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
Copyright © 2015 OpenEstate. All rights reserved.