org.openestate.io.daft_ie.xml.Daft Maven / Gradle / Ivy
package org.openestate.io.daft_ie.xml;
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.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 anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="overseas_sales" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="overseas_sale_ad" type="{}overseasSaleAdType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="overseas_rental" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="overseas_rental_ad" type="{}overseasRentalAdType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </all>
* <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
@XmlRootElement(name = "daft")
public class Daft implements Cloneable, CopyTo2, Equals2, ToString2
{
@XmlElement(name = "overseas_sales")
protected Daft.OverseasSales overseasSales;
@XmlElement(name = "overseas_rental")
protected Daft.OverseasRental overseasRental;
@XmlAttribute(name = "version")
protected String version;
/**
* Gets the value of the overseasSales property.
*
* @return
* possible object is
* {@link Daft.OverseasSales }
*
*/
public Daft.OverseasSales getOverseasSales() {
return overseasSales;
}
/**
* Sets the value of the overseasSales property.
*
* @param value
* allowed object is
* {@link Daft.OverseasSales }
*
*/
public void setOverseasSales(Daft.OverseasSales value) {
this.overseasSales = value;
}
/**
* Gets the value of the overseasRental property.
*
* @return
* possible object is
* {@link Daft.OverseasRental }
*
*/
public Daft.OverseasRental getOverseasRental() {
return overseasRental;
}
/**
* Sets the value of the overseasRental property.
*
* @param value
* allowed object is
* {@link Daft.OverseasRental }
*
*/
public void setOverseasRental(Daft.OverseasRental value) {
this.overseasRental = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = 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) {
{
Daft.OverseasSales theOverseasSales;
theOverseasSales = this.getOverseasSales();
strategy.appendField(locator, this, "overseasSales", buffer, theOverseasSales, (this.overseasSales!= null));
}
{
Daft.OverseasRental theOverseasRental;
theOverseasRental = this.getOverseasRental();
strategy.appendField(locator, this, "overseasRental", buffer, theOverseasRental, (this.overseasRental!= null));
}
{
String theVersion;
theVersion = this.getVersion();
strategy.appendField(locator, this, "version", buffer, theVersion, (this.version!= 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 Daft) {
final Daft copy = ((Daft) draftCopy);
{
Boolean overseasSalesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.overseasSales!= null));
if (overseasSalesShouldBeCopiedAndSet == Boolean.TRUE) {
Daft.OverseasSales sourceOverseasSales;
sourceOverseasSales = this.getOverseasSales();
Daft.OverseasSales copyOverseasSales = ((Daft.OverseasSales) strategy.copy(LocatorUtils.property(locator, "overseasSales", sourceOverseasSales), sourceOverseasSales, (this.overseasSales!= null)));
copy.setOverseasSales(copyOverseasSales);
} else {
if (overseasSalesShouldBeCopiedAndSet == Boolean.FALSE) {
copy.overseasSales = null;
}
}
}
{
Boolean overseasRentalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.overseasRental!= null));
if (overseasRentalShouldBeCopiedAndSet == Boolean.TRUE) {
Daft.OverseasRental sourceOverseasRental;
sourceOverseasRental = this.getOverseasRental();
Daft.OverseasRental copyOverseasRental = ((Daft.OverseasRental) strategy.copy(LocatorUtils.property(locator, "overseasRental", sourceOverseasRental), sourceOverseasRental, (this.overseasRental!= null)));
copy.setOverseasRental(copyOverseasRental);
} else {
if (overseasRentalShouldBeCopiedAndSet == Boolean.FALSE) {
copy.overseasRental = null;
}
}
}
{
Boolean versionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.version!= null));
if (versionShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceVersion;
sourceVersion = this.getVersion();
String copyVersion = ((String) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion, (this.version!= null)));
copy.setVersion(copyVersion);
} else {
if (versionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.version = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Daft();
}
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 Daft that = ((Daft) object);
{
Daft.OverseasSales lhsOverseasSales;
lhsOverseasSales = this.getOverseasSales();
Daft.OverseasSales rhsOverseasSales;
rhsOverseasSales = that.getOverseasSales();
if (!strategy.equals(LocatorUtils.property(thisLocator, "overseasSales", lhsOverseasSales), LocatorUtils.property(thatLocator, "overseasSales", rhsOverseasSales), lhsOverseasSales, rhsOverseasSales, (this.overseasSales!= null), (that.overseasSales!= null))) {
return false;
}
}
{
Daft.OverseasRental lhsOverseasRental;
lhsOverseasRental = this.getOverseasRental();
Daft.OverseasRental rhsOverseasRental;
rhsOverseasRental = that.getOverseasRental();
if (!strategy.equals(LocatorUtils.property(thisLocator, "overseasRental", lhsOverseasRental), LocatorUtils.property(thatLocator, "overseasRental", rhsOverseasRental), lhsOverseasRental, rhsOverseasRental, (this.overseasRental!= null), (that.overseasRental!= null))) {
return false;
}
}
{
String lhsVersion;
lhsVersion = this.getVersion();
String rhsVersion;
rhsVersion = that.getVersion();
if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, (this.version!= null), (that.version!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="overseas_rental_ad" type="{}overseasRentalAdType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"overseasRentalAd"
})
public static class OverseasRental implements Cloneable, CopyTo2, Equals2, ToString2
{
@XmlElement(name = "overseas_rental_ad")
protected List overseasRentalAd;
/**
* Gets the value of the overseasRentalAd 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 overseasRentalAd property.
*
*
* For example, to add a new item, do as follows:
*
* getOverseasRentalAd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OverseasRentalAdType }
*
*
*/
public List getOverseasRentalAd() {
if (overseasRentalAd == null) {
overseasRentalAd = new ArrayList();
}
return this.overseasRentalAd;
}
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 theOverseasRentalAd;
theOverseasRentalAd = (((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty()))?this.getOverseasRentalAd():null);
strategy.appendField(locator, this, "overseasRentalAd", buffer, theOverseasRentalAd, ((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.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 Daft.OverseasRental) {
final Daft.OverseasRental copy = ((Daft.OverseasRental) draftCopy);
{
Boolean overseasRentalAdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty())));
if (overseasRentalAdShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceOverseasRentalAd;
sourceOverseasRentalAd = (((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty()))?this.getOverseasRentalAd():null);
@SuppressWarnings("unchecked")
List copyOverseasRentalAd = ((List ) strategy.copy(LocatorUtils.property(locator, "overseasRentalAd", sourceOverseasRentalAd), sourceOverseasRentalAd, ((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty()))));
copy.overseasRentalAd = null;
if (copyOverseasRentalAd!= null) {
List uniqueOverseasRentalAdl = copy.getOverseasRentalAd();
uniqueOverseasRentalAdl.addAll(copyOverseasRentalAd);
}
} else {
if (overseasRentalAdShouldBeCopiedAndSet == Boolean.FALSE) {
copy.overseasRentalAd = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Daft.OverseasRental();
}
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 Daft.OverseasRental that = ((Daft.OverseasRental) object);
{
List lhsOverseasRentalAd;
lhsOverseasRentalAd = (((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty()))?this.getOverseasRentalAd():null);
List rhsOverseasRentalAd;
rhsOverseasRentalAd = (((that.overseasRentalAd!= null)&&(!that.overseasRentalAd.isEmpty()))?that.getOverseasRentalAd():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "overseasRentalAd", lhsOverseasRentalAd), LocatorUtils.property(thatLocator, "overseasRentalAd", rhsOverseasRentalAd), lhsOverseasRentalAd, rhsOverseasRentalAd, ((this.overseasRentalAd!= null)&&(!this.overseasRentalAd.isEmpty())), ((that.overseasRentalAd!= null)&&(!that.overseasRentalAd.isEmpty())))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="overseas_sale_ad" type="{}overseasSaleAdType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"overseasSaleAd"
})
public static class OverseasSales implements Cloneable, CopyTo2, Equals2, ToString2
{
@XmlElement(name = "overseas_sale_ad")
protected List overseasSaleAd;
/**
* Gets the value of the overseasSaleAd 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 overseasSaleAd property.
*
*
* For example, to add a new item, do as follows:
*
* getOverseasSaleAd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OverseasSaleAdType }
*
*
*/
public List getOverseasSaleAd() {
if (overseasSaleAd == null) {
overseasSaleAd = new ArrayList();
}
return this.overseasSaleAd;
}
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 theOverseasSaleAd;
theOverseasSaleAd = (((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty()))?this.getOverseasSaleAd():null);
strategy.appendField(locator, this, "overseasSaleAd", buffer, theOverseasSaleAd, ((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.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 Daft.OverseasSales) {
final Daft.OverseasSales copy = ((Daft.OverseasSales) draftCopy);
{
Boolean overseasSaleAdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty())));
if (overseasSaleAdShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceOverseasSaleAd;
sourceOverseasSaleAd = (((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty()))?this.getOverseasSaleAd():null);
@SuppressWarnings("unchecked")
List copyOverseasSaleAd = ((List ) strategy.copy(LocatorUtils.property(locator, "overseasSaleAd", sourceOverseasSaleAd), sourceOverseasSaleAd, ((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty()))));
copy.overseasSaleAd = null;
if (copyOverseasSaleAd!= null) {
List uniqueOverseasSaleAdl = copy.getOverseasSaleAd();
uniqueOverseasSaleAdl.addAll(copyOverseasSaleAd);
}
} else {
if (overseasSaleAdShouldBeCopiedAndSet == Boolean.FALSE) {
copy.overseasSaleAd = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Daft.OverseasSales();
}
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 Daft.OverseasSales that = ((Daft.OverseasSales) object);
{
List lhsOverseasSaleAd;
lhsOverseasSaleAd = (((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty()))?this.getOverseasSaleAd():null);
List rhsOverseasSaleAd;
rhsOverseasSaleAd = (((that.overseasSaleAd!= null)&&(!that.overseasSaleAd.isEmpty()))?that.getOverseasSaleAd():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "overseasSaleAd", lhsOverseasSaleAd), LocatorUtils.property(thatLocator, "overseasSaleAd", rhsOverseasSaleAd), lhsOverseasSaleAd, rhsOverseasSaleAd, ((this.overseasSaleAd!= null)&&(!this.overseasSaleAd.isEmpty())), ((that.overseasSaleAd!= null)&&(!that.overseasSaleAd.isEmpty())))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
}