org.openestate.is24.restapi.xml.realestateproject.RealEstateProjectEntries Maven / Gradle / Ivy
Show all versions of OpenEstate-IS24-REST Show documentation
package org.openestate.is24.restapi.xml.realestateproject;
import java.io.Serializable;
import java.net.URL;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
import org.openestate.is24.restapi.xml.Adapter4;
/**
* Liste von Realestateprojectseintr\u00e4gen
*
* Java class for RealEstateProjectEntries complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RealEstateProjectEntries">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="realEstateProjectEntry" type="{http://rest.immobilienscout24.de/schema/offer/realestateproject/1.0}RealEstateProjectEntry" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute ref="{http://www.w3.org/1999/xlink}href"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RealEstateProjectEntries", propOrder = {
"realEstateProjectEntry"
})
public class RealEstateProjectEntries implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{
protected List realEstateProjectEntry;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
@XmlJavaTypeAdapter(Adapter4 .class)
@XmlSchemaType(name = "anyURI")
protected URL href;
/**
* Gets the value of the realEstateProjectEntry 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 realEstateProjectEntry property.
*
*
* For example, to add a new item, do as follows:
*
* getRealEstateProjectEntry().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RealEstateProjectEntry }
*
*
*/
public List getRealEstateProjectEntry() {
if (realEstateProjectEntry == null) {
realEstateProjectEntry = new ArrayList();
}
return this.realEstateProjectEntry;
}
/**
* Link zum Abruf der Eintragsliste.
*
* @return
* possible object is
* {@link String }
*
*/
public URL getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(URL value) {
this.href = 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) {
{
List theRealEstateProjectEntry;
theRealEstateProjectEntry = (((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty()))?this.getRealEstateProjectEntry():null);
strategy.appendField(locator, this, "realEstateProjectEntry", buffer, theRealEstateProjectEntry, ((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty())));
}
{
URL theHref;
theHref = this.getHref();
strategy.appendField(locator, this, "href", buffer, theHref, (this.href!= 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 RealEstateProjectEntries) {
final RealEstateProjectEntries copy = ((RealEstateProjectEntries) draftCopy);
{
Boolean realEstateProjectEntryShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty())));
if (realEstateProjectEntryShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceRealEstateProjectEntry;
sourceRealEstateProjectEntry = (((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty()))?this.getRealEstateProjectEntry():null);
@SuppressWarnings("unchecked")
List copyRealEstateProjectEntry = ((List ) strategy.copy(LocatorUtils.property(locator, "realEstateProjectEntry", sourceRealEstateProjectEntry), sourceRealEstateProjectEntry, ((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty()))));
copy.realEstateProjectEntry = null;
if (copyRealEstateProjectEntry!= null) {
List uniqueRealEstateProjectEntryl = copy.getRealEstateProjectEntry();
uniqueRealEstateProjectEntryl.addAll(copyRealEstateProjectEntry);
}
} else {
if (realEstateProjectEntryShouldBeCopiedAndSet == Boolean.FALSE) {
copy.realEstateProjectEntry = null;
}
}
}
{
Boolean hrefShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.href!= null));
if (hrefShouldBeCopiedAndSet == Boolean.TRUE) {
URL sourceHref;
sourceHref = this.getHref();
URL copyHref = ((URL) strategy.copy(LocatorUtils.property(locator, "href", sourceHref), sourceHref, (this.href!= null)));
copy.setHref(copyHref);
} else {
if (hrefShouldBeCopiedAndSet == Boolean.FALSE) {
copy.href = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new RealEstateProjectEntries();
}
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 RealEstateProjectEntries that = ((RealEstateProjectEntries) object);
{
List lhsRealEstateProjectEntry;
lhsRealEstateProjectEntry = (((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty()))?this.getRealEstateProjectEntry():null);
List rhsRealEstateProjectEntry;
rhsRealEstateProjectEntry = (((that.realEstateProjectEntry!= null)&&(!that.realEstateProjectEntry.isEmpty()))?that.getRealEstateProjectEntry():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "realEstateProjectEntry", lhsRealEstateProjectEntry), LocatorUtils.property(thatLocator, "realEstateProjectEntry", rhsRealEstateProjectEntry), lhsRealEstateProjectEntry, rhsRealEstateProjectEntry, ((this.realEstateProjectEntry!= null)&&(!this.realEstateProjectEntry.isEmpty())), ((that.realEstateProjectEntry!= null)&&(!that.realEstateProjectEntry.isEmpty())))) {
return false;
}
}
{
URL lhsHref;
lhsHref = this.getHref();
URL rhsHref;
rhsHref = that.getHref();
if (!strategy.equals(LocatorUtils.property(thisLocator, "href", lhsHref), LocatorUtils.property(thatLocator, "href", rhsHref), lhsHref, rhsHref, (this.href!= null), (that.href!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}