public class OpenImmo_1_2_2 extends XmlConverter<OpenImmoDocument,OpenImmoVersion>
Constructor and Description |
---|
OpenImmo_1_2_2() |
Modifier and Type | Method and Description |
---|---|
protected void |
downgradeBefeuerungElements(Document doc)
Downgrade <befeuerung> elements to OpenImmo 1.2.1.
|
protected void |
downgradeBodenElements(Document doc)
Downgrade <boden> elements to OpenImmo 1.2.1.
|
protected void |
downgradeBueroPraxenElements(Document doc)
Downgrade <buero_praxen> elements to OpenImmo 1.2.1.
|
protected void |
downgradeEinzelhandelElements(Document doc)
Downgrade <einzelhandel> elements to OpenImmo 1.2.1.
|
protected void |
downgradeEnergiepassElements(Document doc)
Downgrade <energiepass> elements to OpenImmo 1.2.1.
|
protected void |
downgradeFreizeitimmobilieGewerblichElements(Document doc)
Downgrade <freizeitimmobilie_gewerblich> elements to OpenImmo 1.2.1.
|
protected void |
downgradeGastgewerbeElements(Document doc)
Downgrade <einzelhandel> elements to OpenImmo 1.2.1.
|
protected void |
downgradeGrundstueckElements(Document doc)
Downgrade <grundstueck> elements to OpenImmo 1.2.1.
|
protected void |
downgradeHallenLagerProdElements(Document doc)
Downgrade <hallen_lager_prod> elements to OpenImmo 1.2.1.
|
protected void |
downgradeHausElements(Document doc)
Downgrade <haus> elements to OpenImmo 1.2.1.
|
protected void |
downgradeLandUndForstwirtschaftElements(Document doc)
Downgrade <land_und_forstwirtschaft> elements to OpenImmo 1.2.1.
|
protected void |
downgradeObjektartElements(Document doc)
Downgrade <objektart> elements to OpenImmo 1.2.1.
|
void |
downgradeToPreviousVersion(OpenImmoDocument doc)
Downgrade an OpenImmo document from version 1.2.2 to 1.2.1.
|
protected void |
downgradeUebertragungElements(Document doc)
Downgrade <uebertragung> elements to OpenImmo 1.2.1.
|
protected void |
downgradeWohnungElements(Document doc)
Downgrade <wohnung> elements to OpenImmo 1.2.1.
|
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 |
removeProvisionspflichtigElements(Document doc)
Remove <provisionspflichtig> elements.
|
protected void |
removeVersteigerungElements(Document doc)
Remove <versteigerung> elements.
|
protected void |
upgradeEnergiepassElements(Document doc)
Upgrade <energiepass> elements to OpenImmo 1.2.2.
|
void |
upgradeFromPreviousVersion(OpenImmoDocument doc)
Upgrade an OpenImmo document from version 1.2.1 to 1.2.2.
|
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.2public void upgradeFromPreviousVersion(OpenImmoDocument doc)
upgradeFromPreviousVersion
in class XmlConverter<OpenImmoDocument,OpenImmoVersion>
doc
- OpenImmo document in version 1.2.1protected void downgradeBefeuerungElements(Document doc) throws org.jaxen.JaxenException
The attribute "LUFTWP" for <befeuerung> elements is not available in version 1.2.1.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeBodenElements(Document doc) throws org.jaxen.JaxenException
The attributes "FERTIGPARKETT", "LAMINAT", "LINOLEUM" for <boden> elements are not available in version 1.2.1.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeBueroPraxenElements(Document doc) throws org.jaxen.JaxenException
The options "BUEROZENTRUM", "LOFT_ATELIER", "PRAXISFLAECHE", "PRAXISHAUS" for the "buero_typ" attribute of <buero_praxen> elements are not available in version 1.2.1.
Any occurence of these values is replaced by the general "BUEROFLAECHE" value.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeEinzelhandelElements(Document doc) throws org.jaxen.JaxenException
The options "KAUFHAUS", "FACTORY_OUTLET", "KIOSK", "VERKAUFSFLAECHE", "AUSSTELLUNGSFLAECHE" for the "handel_typ" attribute of <einzelhandel> elements are not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeEnergiepassElements(Document doc) throws org.jaxen.JaxenException
The <epart> child element of the <energiepass> element is renamed to <art> in version 1.2.1.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeFreizeitimmobilieGewerblichElements(Document doc) throws org.jaxen.JaxenException
The option "FREIZEITANLAGE" for the "freizeit_typ" attribute of <freizeitimmobilie_gewerblich> elements is not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeGastgewerbeElements(Document doc) throws org.jaxen.JaxenException
The options "BAR", "CAFE", "DISCOTHEK", "RESTAURANT", "RAUCHERLOKAL", "EINRAUMLOKAL" for the "gastgew_typ" attribute of <gastgewerbe> elements are not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeGrundstueckElements(Document doc) throws org.jaxen.JaxenException
The option "GEWERBEPARK" for the "grundst_typ" attribute of <grundstueck> elements is not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeHallenLagerProdElements(Document doc) throws org.jaxen.JaxenException
The options "INDUSTRIEHALLE", "LAGERFLAECHEN", "LAGER_MIT_FREIFLAECHE", "SPEDITIONSLAGER", "KUEHLHAUS" for the "hallen_typ" attribute of <hallen_lager_prod> elements are not available in version 1.2.1.
Any occurence of "KUEHLHAUS" is removed. Other unsupported options are replaced by "HALLE" or "LAGER".
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeHausElements(Document doc) throws org.jaxen.JaxenException
The option "KEINE_ANGABE" for the "haustyp" attribute of <haus> elements are not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeLandUndForstwirtschaftElements(Document doc) throws org.jaxen.JaxenException
The option "ANWESEN" for the "land_typ" attribute of <land_und_forstwirtschaft> elements is not available in version 1.2.1.
Any occurence of these values is replaced by the "SONSTIGE_LANDWIRTSCHAFTSIMMOBILIEN" value.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeObjektartElements(Document doc) throws org.jaxen.JaxenException
The <objektart> element does only allow the samte type of child element in version 1.2.1.
Any child type, that differs from the first child type, is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeUebertragungElements(Document doc) throws org.jaxen.JaxenException
The attribute "timestamp" for <uebertragung> elements is not available in version 1.2.1.
Any occurences of these values are removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void downgradeWohnungElements(Document doc) throws org.jaxen.JaxenException
The option "KEINE_ANGABE" for the "wohnungtyp" attribute of <wohnung> elements is not available in version 1.2.1.
Any occurence of these values is removed.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void removeAusstattungChildElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.1 does not support the following children for <ausstattung> elements: <ausstatt_kategorie>, <dachform>, <bauweise>, <ausbaustufe>
These elements are removed by this function.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void removeProvisionspflichtigElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.1 does not support <provisionspflichtig> elements.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void removeVersteigerungElements(Document doc) throws org.jaxen.JaxenException
OpenImmo 1.2.1 does not support <versteigerung> elements.
doc
- OpenImmo document in version 1.2.2org.jaxen.JaxenException
protected void upgradeEnergiepassElements(Document doc) throws org.jaxen.JaxenException
The <art> child element of the <energiepass> element is renamed to <epart> in version 1.2.2.
doc
- OpenImmo document in version 1.2.1org.jaxen.JaxenException
Copyright © 2015 OpenEstate. All rights reserved.