public class OpenImmo_1_2_0 extends XmlConverter<OpenImmoDocument,OpenImmoVersion>
Constructor and Description |
---|
OpenImmo_1_2_0() |
Modifier and Type | Method and Description |
---|---|
protected void |
downgradeBefeuerungElements(Document doc)
Downgrade <befeuerung> elements to OpenImmo 1.1.
|
protected void |
downgradeHausElements(Document doc)
Downgrade <haus> elements to OpenImmo 1.1.
|
protected void |
downgradeMieteinnahmenElements(Document doc)
Downgrade <mieteinnahmen_ist>, <mieteinnahmen_soll> elements
to OpenImmo 1.1.
|
void |
downgradeToPreviousVersion(OpenImmoDocument doc)
Downgrade an OpenImmo document from version 1.2.0 to 1.1.
|
protected void |
downgradeUebertragungElements(Document doc)
Downgrade <uebertragung> elements to OpenImmo 1.1.
|
OpenImmoVersion |
getVersion()
Returns the version, that this converter is implemented for.
|
protected void |
removeAnbieterChildElements(Document doc)
Remove unsupported children from all <anbieter> elements.
|
protected void |
removeAusstattungChildElements(Document doc)
Remove unsupported children from all <ausstattung> elements.
|
protected void |
removeBewertungElements(Document doc)
Remove <bewertung> elements.
|
protected void |
removeBieterverfahrenElements(Document doc)
Remove <bieterverfahren> elements.
|
protected void |
removeEnergiepassElements(Document doc)
Remove <energiepass> elements.
|
protected void |
removeGeoChildElements(Document doc)
Remove unsupported children from all <geo> elements.
|
protected void |
removeHeizkostenEnthaltenElements(Document doc)
Remove <heizkosten_enthalten> elements.
|
protected void |
removeUserDefinedExtendElements(Document doc)
Remove <user_defined_extend> elements.
|
void |
upgradeFromPreviousVersion(OpenImmoDocument doc)
Upgrade an OpenImmo document from version 1.1 to 1.2.0.
|
protected void |
upgradeMieteinnahmenElements(Document doc)
Upgrade <mieteinnahmen_ist>, <mieteinnahmen_soll> elements
to OpenImmo 1.2.0.
|
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.0public void upgradeFromPreviousVersion(OpenImmoDocument doc)
upgradeFromPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.1protected void downgradeBefeuerungElements(Document doc) throws org.jaxen.JaxenException
The attributes "FERN", "BLOCK", "WASSER-ELEKTRO" for <befeuerung> elements are not available in version 1.1.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void downgradeHausElements(Document doc) throws org.jaxen.JaxenException
The options "KRANKENHAUS", "PFLEGEHEIM", "SANATORIUM", "SENIORENHEIM", "BETREUTES-WOHNEN" for the "haustyp" attribute of <haus> elements are not available in version 1.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void downgradeMieteinnahmenElements(Document doc) throws org.jaxen.JaxenException
The "periode" attribute of the <mieteinnahmen_ist> and <mieteinnahmen_soll> elements is not available in version 1.1.
Any occurences of these values is removed.
The numeric value within the <mieteinnahmen_ist> and <mieteinnahmen_soll> elements is converted according to the value of the "periode" attribute.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void downgradeUebertragungElements(Document doc) throws org.jaxen.JaxenException
The attributes "senderversion", "regi_id", "modus" for <uebertragung> elements are not available in version 1.1.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeAnbieterChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support the following children for <anbieter> elements: <lizenzkennung>, <impressum_strukt>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeAusstattungChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support the following children for <ausstattung> elements: <dvbt>, <breitband_zugang>, <umts_empfang>, <abstellraum>, <fahrradraum>, <rolladen>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeBewertungElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support <bewertung> elements.
Any occurences of these elements are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeBieterverfahrenElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support <bieterverfahren> elements.
Any occurences of these elements are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeEnergiepassElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support <energiepass> elements.
Any occurences of these elements are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeGeoChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support the following children for <geo> elements: <anzahl_etagen>, <karten_makro>, <karten_mikro>, <virtuelletour>, <luftbildern>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeHeizkostenEnthaltenElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support <heizkosten_enthalten> elements.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void removeUserDefinedExtendElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.1 does not support <user_defined_extend> elements .
Any occurences of these elements are removed.
doc
- OpenImmo document in version 1.2.0org.jaxen.JaxenException
protected void upgradeMieteinnahmenElements(Document doc) throws org.jaxen.JaxenException
The "periode" attribute with the value "JAHR" is added to any <mieteinnahmen_ist> and <mieteinnahmen_soll> elements.
doc
- OpenImmo document in version 1.1org.jaxen.JaxenException
Copyright © 2015 OpenEstate. All rights reserved.