org.openestate.io.is24_xml.xml.Grundstueck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenEstate-IO-IS24-XML Show documentation
Show all versions of OpenEstate-IO-IS24-XML Show documentation
OpenEstate-IO-IS24-XML is a Java library to read and write real estate data in the IS24-XML format, that was used by immobilienscout24.de until 2014.
package org.openestate.io.is24_xml.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy;
import org.jvnet.jaxb2_commons.lang.CopyTo;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <extension base="{http://www.immobilienscout24.de/immobilientransfer}GrundstueckTypBase">
* <sequence>
* <element name="Vermarktung" type="{http://www.immobilienscout24.de/immobilientransfer}VermarktungGrundstueckTypAlt"/>
* <element name="BebaubarMit" type="{http://www.immobilienscout24.de/immobilientransfer}GrundstueckEmpfohleneNutzung" minOccurs="0"/>
* </sequence>
* <attribute name="Objektkategorie2" type="{http://www.immobilienscout24.de/immobilientransfer}GrundstueckKategorienTyp" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"vermarktung",
"bebaubarMit"
})
public class Grundstueck
extends GrundstueckTypBase
implements Cloneable, CopyTo, Equals, ToString
{
@XmlElement(name = "Vermarktung", required = true)
protected VermarktungGrundstueckTypAlt vermarktung;
@XmlElement(name = "BebaubarMit")
protected GrundstueckEmpfohleneNutzung bebaubarMit;
@XmlAttribute(name = "Objektkategorie2")
protected GrundstueckKategorienTyp objektkategorie2;
/**
* Gets the value of the vermarktung property.
*
* @return
* possible object is
* {@link VermarktungGrundstueckTypAlt }
*
*/
public VermarktungGrundstueckTypAlt getVermarktung() {
return vermarktung;
}
/**
* Sets the value of the vermarktung property.
*
* @param value
* allowed object is
* {@link VermarktungGrundstueckTypAlt }
*
*/
public void setVermarktung(VermarktungGrundstueckTypAlt value) {
this.vermarktung = value;
}
/**
* Gets the value of the bebaubarMit property.
*
* @return
* possible object is
* {@link GrundstueckEmpfohleneNutzung }
*
*/
public GrundstueckEmpfohleneNutzung getBebaubarMit() {
return bebaubarMit;
}
/**
* Sets the value of the bebaubarMit property.
*
* @param value
* allowed object is
* {@link GrundstueckEmpfohleneNutzung }
*
*/
public void setBebaubarMit(GrundstueckEmpfohleneNutzung value) {
this.bebaubarMit = value;
}
/**
* Gets the value of the objektkategorie2 property.
*
* @return
* possible object is
* {@link GrundstueckKategorienTyp }
*
*/
public GrundstueckKategorienTyp getObjektkategorie2() {
return objektkategorie2;
}
/**
* Sets the value of the objektkategorie2 property.
*
* @param value
* allowed object is
* {@link GrundstueckKategorienTyp }
*
*/
public void setObjektkategorie2(GrundstueckKategorienTyp value) {
this.objektkategorie2 = value;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
super.appendFields(locator, buffer, strategy);
{
VermarktungGrundstueckTypAlt theVermarktung;
theVermarktung = this.getVermarktung();
strategy.appendField(locator, this, "vermarktung", buffer, theVermarktung);
}
{
GrundstueckEmpfohleneNutzung theBebaubarMit;
theBebaubarMit = this.getBebaubarMit();
strategy.appendField(locator, this, "bebaubarMit", buffer, theBebaubarMit);
}
{
GrundstueckKategorienTyp theObjektkategorie2;
theObjektkategorie2 = this.getObjektkategorie2();
strategy.appendField(locator, this, "objektkategorie2", buffer, theObjektkategorie2);
}
return buffer;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
super.copyTo(locator, draftCopy, strategy);
if (draftCopy instanceof Grundstueck) {
final Grundstueck copy = ((Grundstueck) draftCopy);
if (this.vermarktung!= null) {
VermarktungGrundstueckTypAlt sourceVermarktung;
sourceVermarktung = this.getVermarktung();
VermarktungGrundstueckTypAlt copyVermarktung = ((VermarktungGrundstueckTypAlt) strategy.copy(LocatorUtils.property(locator, "vermarktung", sourceVermarktung), sourceVermarktung));
copy.setVermarktung(copyVermarktung);
} else {
copy.vermarktung = null;
}
if (this.bebaubarMit!= null) {
GrundstueckEmpfohleneNutzung sourceBebaubarMit;
sourceBebaubarMit = this.getBebaubarMit();
GrundstueckEmpfohleneNutzung copyBebaubarMit = ((GrundstueckEmpfohleneNutzung) strategy.copy(LocatorUtils.property(locator, "bebaubarMit", sourceBebaubarMit), sourceBebaubarMit));
copy.setBebaubarMit(copyBebaubarMit);
} else {
copy.bebaubarMit = null;
}
if (this.objektkategorie2 != null) {
GrundstueckKategorienTyp sourceObjektkategorie2;
sourceObjektkategorie2 = this.getObjektkategorie2();
GrundstueckKategorienTyp copyObjektkategorie2 = ((GrundstueckKategorienTyp) strategy.copy(LocatorUtils.property(locator, "objektkategorie2", sourceObjektkategorie2), sourceObjektkategorie2));
copy.setObjektkategorie2(copyObjektkategorie2);
} else {
copy.objektkategorie2 = null;
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Grundstueck();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final Grundstueck that = ((Grundstueck) object);
{
VermarktungGrundstueckTypAlt lhsVermarktung;
lhsVermarktung = this.getVermarktung();
VermarktungGrundstueckTypAlt rhsVermarktung;
rhsVermarktung = that.getVermarktung();
if (!strategy.equals(LocatorUtils.property(thisLocator, "vermarktung", lhsVermarktung), LocatorUtils.property(thatLocator, "vermarktung", rhsVermarktung), lhsVermarktung, rhsVermarktung)) {
return false;
}
}
{
GrundstueckEmpfohleneNutzung lhsBebaubarMit;
lhsBebaubarMit = this.getBebaubarMit();
GrundstueckEmpfohleneNutzung rhsBebaubarMit;
rhsBebaubarMit = that.getBebaubarMit();
if (!strategy.equals(LocatorUtils.property(thisLocator, "bebaubarMit", lhsBebaubarMit), LocatorUtils.property(thatLocator, "bebaubarMit", rhsBebaubarMit), lhsBebaubarMit, rhsBebaubarMit)) {
return false;
}
}
{
GrundstueckKategorienTyp lhsObjektkategorie2;
lhsObjektkategorie2 = this.getObjektkategorie2();
GrundstueckKategorienTyp rhsObjektkategorie2;
rhsObjektkategorie2 = that.getObjektkategorie2();
if (!strategy.equals(LocatorUtils.property(thisLocator, "objektkategorie2", lhsObjektkategorie2), LocatorUtils.property(thatLocator, "objektkategorie2", rhsObjektkategorie2), lhsObjektkategorie2, rhsObjektkategorie2)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy