org.openestate.io.immoxml.xml.Nutzungsart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenEstate-IO-ImmoXML Show documentation
Show all versions of OpenEstate-IO-ImmoXML Show documentation
OpenEstate-IO-ImmoXML is a Java library to read and write real estate data in the ImmoXML format, that is mostly used by immopool.de.
package org.openestate.io.immoxml.xml;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for <nutzungsart> element.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "nutzungsart")
public class Nutzungsart implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{
@XmlAttribute(name = "WOHNEN")
protected Boolean wohnen;
@XmlAttribute(name = "GEWERBE")
protected Boolean gewerbe;
@XmlAttribute(name = "ANLAGE")
protected Boolean anlage;
@XmlAttribute(name = "WAZ")
protected Boolean waz;
/**
* Gets the value of the wohnen property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isWOHNEN() {
return wohnen;
}
/**
* Sets the value of the wohnen property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWOHNEN(Boolean value) {
this.wohnen = value;
}
/**
* Gets the value of the gewerbe property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isGEWERBE() {
return gewerbe;
}
/**
* Sets the value of the gewerbe property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setGEWERBE(Boolean value) {
this.gewerbe = value;
}
/**
* Gets the value of the anlage property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isANLAGE() {
return anlage;
}
/**
* Sets the value of the anlage property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setANLAGE(Boolean value) {
this.anlage = value;
}
/**
* Gets the value of the waz property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isWAZ() {
return waz;
}
/**
* Sets the value of the waz property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWAZ(Boolean value) {
this.waz = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
Boolean theWOHNEN;
theWOHNEN = this.isWOHNEN();
strategy.appendField(locator, this, "wohnen", buffer, theWOHNEN, (this.wohnen!= null));
}
{
Boolean theGEWERBE;
theGEWERBE = this.isGEWERBE();
strategy.appendField(locator, this, "gewerbe", buffer, theGEWERBE, (this.gewerbe!= null));
}
{
Boolean theANLAGE;
theANLAGE = this.isANLAGE();
strategy.appendField(locator, this, "anlage", buffer, theANLAGE, (this.anlage!= null));
}
{
Boolean theWAZ;
theWAZ = this.isWAZ();
strategy.appendField(locator, this, "waz", buffer, theWAZ, (this.waz!= null));
}
return buffer;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Nutzungsart) {
final Nutzungsart copy = ((Nutzungsart) draftCopy);
{
Boolean wohnenShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.wohnen!= null));
if (wohnenShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceWOHNEN;
sourceWOHNEN = this.isWOHNEN();
Boolean copyWOHNEN = ((Boolean) strategy.copy(LocatorUtils.property(locator, "wohnen", sourceWOHNEN), sourceWOHNEN, (this.wohnen!= null)));
copy.setWOHNEN(copyWOHNEN);
} else {
if (wohnenShouldBeCopiedAndSet == Boolean.FALSE) {
copy.wohnen = null;
}
}
}
{
Boolean gewerbeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.gewerbe!= null));
if (gewerbeShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceGEWERBE;
sourceGEWERBE = this.isGEWERBE();
Boolean copyGEWERBE = ((Boolean) strategy.copy(LocatorUtils.property(locator, "gewerbe", sourceGEWERBE), sourceGEWERBE, (this.gewerbe!= null)));
copy.setGEWERBE(copyGEWERBE);
} else {
if (gewerbeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.gewerbe = null;
}
}
}
{
Boolean anlageShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.anlage!= null));
if (anlageShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceANLAGE;
sourceANLAGE = this.isANLAGE();
Boolean copyANLAGE = ((Boolean) strategy.copy(LocatorUtils.property(locator, "anlage", sourceANLAGE), sourceANLAGE, (this.anlage!= null)));
copy.setANLAGE(copyANLAGE);
} else {
if (anlageShouldBeCopiedAndSet == Boolean.FALSE) {
copy.anlage = null;
}
}
}
{
Boolean wazShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.waz!= null));
if (wazShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceWAZ;
sourceWAZ = this.isWAZ();
Boolean copyWAZ = ((Boolean) strategy.copy(LocatorUtils.property(locator, "waz", sourceWAZ), sourceWAZ, (this.waz!= null)));
copy.setWAZ(copyWAZ);
} else {
if (wazShouldBeCopiedAndSet == Boolean.FALSE) {
copy.waz = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Nutzungsart();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final Nutzungsart that = ((Nutzungsart) object);
{
Boolean lhsWOHNEN;
lhsWOHNEN = this.isWOHNEN();
Boolean rhsWOHNEN;
rhsWOHNEN = that.isWOHNEN();
if (!strategy.equals(LocatorUtils.property(thisLocator, "wohnen", lhsWOHNEN), LocatorUtils.property(thatLocator, "wohnen", rhsWOHNEN), lhsWOHNEN, rhsWOHNEN, (this.wohnen!= null), (that.wohnen!= null))) {
return false;
}
}
{
Boolean lhsGEWERBE;
lhsGEWERBE = this.isGEWERBE();
Boolean rhsGEWERBE;
rhsGEWERBE = that.isGEWERBE();
if (!strategy.equals(LocatorUtils.property(thisLocator, "gewerbe", lhsGEWERBE), LocatorUtils.property(thatLocator, "gewerbe", rhsGEWERBE), lhsGEWERBE, rhsGEWERBE, (this.gewerbe!= null), (that.gewerbe!= null))) {
return false;
}
}
{
Boolean lhsANLAGE;
lhsANLAGE = this.isANLAGE();
Boolean rhsANLAGE;
rhsANLAGE = that.isANLAGE();
if (!strategy.equals(LocatorUtils.property(thisLocator, "anlage", lhsANLAGE), LocatorUtils.property(thatLocator, "anlage", rhsANLAGE), lhsANLAGE, rhsANLAGE, (this.anlage!= null), (that.anlage!= null))) {
return false;
}
}
{
Boolean lhsWAZ;
lhsWAZ = this.isWAZ();
Boolean rhsWAZ;
rhsWAZ = that.isWAZ();
if (!strategy.equals(LocatorUtils.property(thisLocator, "waz", lhsWAZ), LocatorUtils.property(thatLocator, "waz", rhsWAZ), lhsWAZ, rhsWAZ, (this.waz!= null), (that.waz!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy