All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openestate.io.immoxml.xml.Serviceleistungen Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.4
Show newest version

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 <serviceleistungen> element.
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "serviceleistungen")
public class Serviceleistungen implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{

    @XmlAttribute(name = "BETREUTES_WOHNEN")
    protected Boolean betreuteswohnen;
    @XmlAttribute(name = "CATERING")
    protected Boolean catering;
    @XmlAttribute(name = "REINIGUNG")
    protected Boolean reinigung;
    @XmlAttribute(name = "EINKAUF")
    protected Boolean einkauf;
    @XmlAttribute(name = "WACHDIENST")
    protected Boolean wachdienst;

    /**
     * Gets the value of the betreuteswohnen property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isBETREUTESWOHNEN() {
        return betreuteswohnen;
    }

    /**
     * Sets the value of the betreuteswohnen property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setBETREUTESWOHNEN(Boolean value) {
        this.betreuteswohnen = value;
    }

    /**
     * Gets the value of the catering property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isCATERING() {
        return catering;
    }

    /**
     * Sets the value of the catering property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setCATERING(Boolean value) {
        this.catering = value;
    }

    /**
     * Gets the value of the reinigung property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isREINIGUNG() {
        return reinigung;
    }

    /**
     * Sets the value of the reinigung property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setREINIGUNG(Boolean value) {
        this.reinigung = value;
    }

    /**
     * Gets the value of the einkauf property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isEINKAUF() {
        return einkauf;
    }

    /**
     * Sets the value of the einkauf property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setEINKAUF(Boolean value) {
        this.einkauf = value;
    }

    /**
     * Gets the value of the wachdienst property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isWACHDIENST() {
        return wachdienst;
    }

    /**
     * Sets the value of the wachdienst property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setWACHDIENST(Boolean value) {
        this.wachdienst = 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 theBETREUTESWOHNEN;
            theBETREUTESWOHNEN = this.isBETREUTESWOHNEN();
            strategy.appendField(locator, this, "betreuteswohnen", buffer, theBETREUTESWOHNEN, (this.betreuteswohnen!= null));
        }
        {
            Boolean theCATERING;
            theCATERING = this.isCATERING();
            strategy.appendField(locator, this, "catering", buffer, theCATERING, (this.catering!= null));
        }
        {
            Boolean theREINIGUNG;
            theREINIGUNG = this.isREINIGUNG();
            strategy.appendField(locator, this, "reinigung", buffer, theREINIGUNG, (this.reinigung!= null));
        }
        {
            Boolean theEINKAUF;
            theEINKAUF = this.isEINKAUF();
            strategy.appendField(locator, this, "einkauf", buffer, theEINKAUF, (this.einkauf!= null));
        }
        {
            Boolean theWACHDIENST;
            theWACHDIENST = this.isWACHDIENST();
            strategy.appendField(locator, this, "wachdienst", buffer, theWACHDIENST, (this.wachdienst!= 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 Serviceleistungen) {
            final Serviceleistungen copy = ((Serviceleistungen) draftCopy);
            {
                Boolean betreuteswohnenShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.betreuteswohnen!= null));
                if (betreuteswohnenShouldBeCopiedAndSet == Boolean.TRUE) {
                    Boolean sourceBETREUTESWOHNEN;
                    sourceBETREUTESWOHNEN = this.isBETREUTESWOHNEN();
                    Boolean copyBETREUTESWOHNEN = ((Boolean) strategy.copy(LocatorUtils.property(locator, "betreuteswohnen", sourceBETREUTESWOHNEN), sourceBETREUTESWOHNEN, (this.betreuteswohnen!= null)));
                    copy.setBETREUTESWOHNEN(copyBETREUTESWOHNEN);
                } else {
                    if (betreuteswohnenShouldBeCopiedAndSet == Boolean.FALSE) {
                        copy.betreuteswohnen = null;
                    }
                }
            }
            {
                Boolean cateringShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.catering!= null));
                if (cateringShouldBeCopiedAndSet == Boolean.TRUE) {
                    Boolean sourceCATERING;
                    sourceCATERING = this.isCATERING();
                    Boolean copyCATERING = ((Boolean) strategy.copy(LocatorUtils.property(locator, "catering", sourceCATERING), sourceCATERING, (this.catering!= null)));
                    copy.setCATERING(copyCATERING);
                } else {
                    if (cateringShouldBeCopiedAndSet == Boolean.FALSE) {
                        copy.catering = null;
                    }
                }
            }
            {
                Boolean reinigungShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.reinigung!= null));
                if (reinigungShouldBeCopiedAndSet == Boolean.TRUE) {
                    Boolean sourceREINIGUNG;
                    sourceREINIGUNG = this.isREINIGUNG();
                    Boolean copyREINIGUNG = ((Boolean) strategy.copy(LocatorUtils.property(locator, "reinigung", sourceREINIGUNG), sourceREINIGUNG, (this.reinigung!= null)));
                    copy.setREINIGUNG(copyREINIGUNG);
                } else {
                    if (reinigungShouldBeCopiedAndSet == Boolean.FALSE) {
                        copy.reinigung = null;
                    }
                }
            }
            {
                Boolean einkaufShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.einkauf!= null));
                if (einkaufShouldBeCopiedAndSet == Boolean.TRUE) {
                    Boolean sourceEINKAUF;
                    sourceEINKAUF = this.isEINKAUF();
                    Boolean copyEINKAUF = ((Boolean) strategy.copy(LocatorUtils.property(locator, "einkauf", sourceEINKAUF), sourceEINKAUF, (this.einkauf!= null)));
                    copy.setEINKAUF(copyEINKAUF);
                } else {
                    if (einkaufShouldBeCopiedAndSet == Boolean.FALSE) {
                        copy.einkauf = null;
                    }
                }
            }
            {
                Boolean wachdienstShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.wachdienst!= null));
                if (wachdienstShouldBeCopiedAndSet == Boolean.TRUE) {
                    Boolean sourceWACHDIENST;
                    sourceWACHDIENST = this.isWACHDIENST();
                    Boolean copyWACHDIENST = ((Boolean) strategy.copy(LocatorUtils.property(locator, "wachdienst", sourceWACHDIENST), sourceWACHDIENST, (this.wachdienst!= null)));
                    copy.setWACHDIENST(copyWACHDIENST);
                } else {
                    if (wachdienstShouldBeCopiedAndSet == Boolean.FALSE) {
                        copy.wachdienst = null;
                    }
                }
            }
        }
        return draftCopy;
    }

    public Object createNewInstance() {
        return new Serviceleistungen();
    }

    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 Serviceleistungen that = ((Serviceleistungen) object);
        {
            Boolean lhsBETREUTESWOHNEN;
            lhsBETREUTESWOHNEN = this.isBETREUTESWOHNEN();
            Boolean rhsBETREUTESWOHNEN;
            rhsBETREUTESWOHNEN = that.isBETREUTESWOHNEN();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "betreuteswohnen", lhsBETREUTESWOHNEN), LocatorUtils.property(thatLocator, "betreuteswohnen", rhsBETREUTESWOHNEN), lhsBETREUTESWOHNEN, rhsBETREUTESWOHNEN, (this.betreuteswohnen!= null), (that.betreuteswohnen!= null))) {
                return false;
            }
        }
        {
            Boolean lhsCATERING;
            lhsCATERING = this.isCATERING();
            Boolean rhsCATERING;
            rhsCATERING = that.isCATERING();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "catering", lhsCATERING), LocatorUtils.property(thatLocator, "catering", rhsCATERING), lhsCATERING, rhsCATERING, (this.catering!= null), (that.catering!= null))) {
                return false;
            }
        }
        {
            Boolean lhsREINIGUNG;
            lhsREINIGUNG = this.isREINIGUNG();
            Boolean rhsREINIGUNG;
            rhsREINIGUNG = that.isREINIGUNG();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "reinigung", lhsREINIGUNG), LocatorUtils.property(thatLocator, "reinigung", rhsREINIGUNG), lhsREINIGUNG, rhsREINIGUNG, (this.reinigung!= null), (that.reinigung!= null))) {
                return false;
            }
        }
        {
            Boolean lhsEINKAUF;
            lhsEINKAUF = this.isEINKAUF();
            Boolean rhsEINKAUF;
            rhsEINKAUF = that.isEINKAUF();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "einkauf", lhsEINKAUF), LocatorUtils.property(thatLocator, "einkauf", rhsEINKAUF), lhsEINKAUF, rhsEINKAUF, (this.einkauf!= null), (that.einkauf!= null))) {
                return false;
            }
        }
        {
            Boolean lhsWACHDIENST;
            lhsWACHDIENST = this.isWACHDIENST();
            Boolean rhsWACHDIENST;
            rhsWACHDIENST = that.isWACHDIENST();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "wachdienst", lhsWACHDIENST), LocatorUtils.property(thatLocator, "wachdienst", rhsWACHDIENST), lhsWACHDIENST, rhsWACHDIENST, (this.wachdienst!= null), (that.wachdienst!= 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