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

org.openestate.io.openimmo.xml.Anhaenge Maven / Gradle / Ivy


package org.openestate.io.openimmo.xml;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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 <anhaenge> element.
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "anhang",
    "userDefinedSimplefield",
    "userDefinedAnyfield",
    "userDefinedExtend"
})
@XmlRootElement(name = "anhaenge")
public class Anhaenge implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{

    protected List anhang;
    @XmlElement(name = "user_defined_simplefield")
    protected List userDefinedSimplefield;
    @XmlElement(name = "user_defined_anyfield")
    protected List userDefinedAnyfield;
    @XmlElement(name = "user_defined_extend")
    protected List userDefinedExtend;

    /**
     * Gets the value of the anhang property.
     * 
     * 

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the anhang property. * *

* For example, to add a new item, do as follows: *

     *    getAnhang().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Anhang } * * */ public List getAnhang() { if (anhang == null) { anhang = new ArrayList(); } return this.anhang; } /** * Gets the value of the userDefinedSimplefield property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the userDefinedSimplefield property. * *

* For example, to add a new item, do as follows: *

     *    getUserDefinedSimplefield().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link UserDefinedSimplefield } * * */ public List getUserDefinedSimplefield() { if (userDefinedSimplefield == null) { userDefinedSimplefield = new ArrayList(); } return this.userDefinedSimplefield; } /** * Gets the value of the userDefinedAnyfield property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the userDefinedAnyfield property. * *

* For example, to add a new item, do as follows: *

     *    getUserDefinedAnyfield().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link UserDefinedAnyfield } * * */ public List getUserDefinedAnyfield() { if (userDefinedAnyfield == null) { userDefinedAnyfield = new ArrayList(); } return this.userDefinedAnyfield; } /** * Gets the value of the userDefinedExtend property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the userDefinedExtend property. * *

* For example, to add a new item, do as follows: *

     *    getUserDefinedExtend().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link UserDefinedExtend } * * */ public List getUserDefinedExtend() { if (userDefinedExtend == null) { userDefinedExtend = new ArrayList(); } return this.userDefinedExtend; } 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) { { List theAnhang; theAnhang = (((this.anhang!= null)&&(!this.anhang.isEmpty()))?this.getAnhang():null); strategy.appendField(locator, this, "anhang", buffer, theAnhang, ((this.anhang!= null)&&(!this.anhang.isEmpty()))); } { List theUserDefinedSimplefield; theUserDefinedSimplefield = (((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty()))?this.getUserDefinedSimplefield():null); strategy.appendField(locator, this, "userDefinedSimplefield", buffer, theUserDefinedSimplefield, ((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty()))); } { List theUserDefinedAnyfield; theUserDefinedAnyfield = (((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty()))?this.getUserDefinedAnyfield():null); strategy.appendField(locator, this, "userDefinedAnyfield", buffer, theUserDefinedAnyfield, ((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty()))); } { List theUserDefinedExtend; theUserDefinedExtend = (((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty()))?this.getUserDefinedExtend():null); strategy.appendField(locator, this, "userDefinedExtend", buffer, theUserDefinedExtend, ((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty()))); } 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 Anhaenge) { final Anhaenge copy = ((Anhaenge) draftCopy); { Boolean anhangShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.anhang!= null)&&(!this.anhang.isEmpty()))); if (anhangShouldBeCopiedAndSet == Boolean.TRUE) { List sourceAnhang; sourceAnhang = (((this.anhang!= null)&&(!this.anhang.isEmpty()))?this.getAnhang():null); @SuppressWarnings("unchecked") List copyAnhang = ((List ) strategy.copy(LocatorUtils.property(locator, "anhang", sourceAnhang), sourceAnhang, ((this.anhang!= null)&&(!this.anhang.isEmpty())))); copy.anhang = null; if (copyAnhang!= null) { List uniqueAnhangl = copy.getAnhang(); uniqueAnhangl.addAll(copyAnhang); } } else { if (anhangShouldBeCopiedAndSet == Boolean.FALSE) { copy.anhang = null; } } } { Boolean userDefinedSimplefieldShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty()))); if (userDefinedSimplefieldShouldBeCopiedAndSet == Boolean.TRUE) { List sourceUserDefinedSimplefield; sourceUserDefinedSimplefield = (((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty()))?this.getUserDefinedSimplefield():null); @SuppressWarnings("unchecked") List copyUserDefinedSimplefield = ((List ) strategy.copy(LocatorUtils.property(locator, "userDefinedSimplefield", sourceUserDefinedSimplefield), sourceUserDefinedSimplefield, ((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty())))); copy.userDefinedSimplefield = null; if (copyUserDefinedSimplefield!= null) { List uniqueUserDefinedSimplefieldl = copy.getUserDefinedSimplefield(); uniqueUserDefinedSimplefieldl.addAll(copyUserDefinedSimplefield); } } else { if (userDefinedSimplefieldShouldBeCopiedAndSet == Boolean.FALSE) { copy.userDefinedSimplefield = null; } } } { Boolean userDefinedAnyfieldShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty()))); if (userDefinedAnyfieldShouldBeCopiedAndSet == Boolean.TRUE) { List sourceUserDefinedAnyfield; sourceUserDefinedAnyfield = (((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty()))?this.getUserDefinedAnyfield():null); @SuppressWarnings("unchecked") List copyUserDefinedAnyfield = ((List ) strategy.copy(LocatorUtils.property(locator, "userDefinedAnyfield", sourceUserDefinedAnyfield), sourceUserDefinedAnyfield, ((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty())))); copy.userDefinedAnyfield = null; if (copyUserDefinedAnyfield!= null) { List uniqueUserDefinedAnyfieldl = copy.getUserDefinedAnyfield(); uniqueUserDefinedAnyfieldl.addAll(copyUserDefinedAnyfield); } } else { if (userDefinedAnyfieldShouldBeCopiedAndSet == Boolean.FALSE) { copy.userDefinedAnyfield = null; } } } { Boolean userDefinedExtendShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty()))); if (userDefinedExtendShouldBeCopiedAndSet == Boolean.TRUE) { List sourceUserDefinedExtend; sourceUserDefinedExtend = (((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty()))?this.getUserDefinedExtend():null); @SuppressWarnings("unchecked") List copyUserDefinedExtend = ((List ) strategy.copy(LocatorUtils.property(locator, "userDefinedExtend", sourceUserDefinedExtend), sourceUserDefinedExtend, ((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty())))); copy.userDefinedExtend = null; if (copyUserDefinedExtend!= null) { List uniqueUserDefinedExtendl = copy.getUserDefinedExtend(); uniqueUserDefinedExtendl.addAll(copyUserDefinedExtend); } } else { if (userDefinedExtendShouldBeCopiedAndSet == Boolean.FALSE) { copy.userDefinedExtend = null; } } } } return draftCopy; } public Object createNewInstance() { return new Anhaenge(); } 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 Anhaenge that = ((Anhaenge) object); { List lhsAnhang; lhsAnhang = (((this.anhang!= null)&&(!this.anhang.isEmpty()))?this.getAnhang():null); List rhsAnhang; rhsAnhang = (((that.anhang!= null)&&(!that.anhang.isEmpty()))?that.getAnhang():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "anhang", lhsAnhang), LocatorUtils.property(thatLocator, "anhang", rhsAnhang), lhsAnhang, rhsAnhang, ((this.anhang!= null)&&(!this.anhang.isEmpty())), ((that.anhang!= null)&&(!that.anhang.isEmpty())))) { return false; } } { List lhsUserDefinedSimplefield; lhsUserDefinedSimplefield = (((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty()))?this.getUserDefinedSimplefield():null); List rhsUserDefinedSimplefield; rhsUserDefinedSimplefield = (((that.userDefinedSimplefield!= null)&&(!that.userDefinedSimplefield.isEmpty()))?that.getUserDefinedSimplefield():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "userDefinedSimplefield", lhsUserDefinedSimplefield), LocatorUtils.property(thatLocator, "userDefinedSimplefield", rhsUserDefinedSimplefield), lhsUserDefinedSimplefield, rhsUserDefinedSimplefield, ((this.userDefinedSimplefield!= null)&&(!this.userDefinedSimplefield.isEmpty())), ((that.userDefinedSimplefield!= null)&&(!that.userDefinedSimplefield.isEmpty())))) { return false; } } { List lhsUserDefinedAnyfield; lhsUserDefinedAnyfield = (((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty()))?this.getUserDefinedAnyfield():null); List rhsUserDefinedAnyfield; rhsUserDefinedAnyfield = (((that.userDefinedAnyfield!= null)&&(!that.userDefinedAnyfield.isEmpty()))?that.getUserDefinedAnyfield():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "userDefinedAnyfield", lhsUserDefinedAnyfield), LocatorUtils.property(thatLocator, "userDefinedAnyfield", rhsUserDefinedAnyfield), lhsUserDefinedAnyfield, rhsUserDefinedAnyfield, ((this.userDefinedAnyfield!= null)&&(!this.userDefinedAnyfield.isEmpty())), ((that.userDefinedAnyfield!= null)&&(!that.userDefinedAnyfield.isEmpty())))) { return false; } } { List lhsUserDefinedExtend; lhsUserDefinedExtend = (((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty()))?this.getUserDefinedExtend():null); List rhsUserDefinedExtend; rhsUserDefinedExtend = (((that.userDefinedExtend!= null)&&(!that.userDefinedExtend.isEmpty()))?that.getUserDefinedExtend():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "userDefinedExtend", lhsUserDefinedExtend), LocatorUtils.property(thatLocator, "userDefinedExtend", rhsUserDefinedExtend), lhsUserDefinedExtend, rhsUserDefinedExtend, ((this.userDefinedExtend!= null)&&(!this.userDefinedExtend.isEmpty())), ((that.userDefinedExtend!= null)&&(!that.userDefinedExtend.isEmpty())))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy