org.openestate.is24.restapi.xml.common.StrictEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenEstate-IS24-REST Show documentation
Show all versions of OpenEstate-IS24-REST Show documentation
OpenEstate-IS24-REST is a client library for the REST-Webservice of ImmobilienScout24.de written in Java.
package org.openestate.is24.restapi.xml.common;
import java.io.Serializable;
import java.net.URL;
import java.util.Calendar;
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.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.Adapter2;
import org.openestate.is24.restapi.xml.Adapter4;
/**
* To be done
*
* Java class for StrictEntry complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StrictEntry">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="wgs84Coordinate" type="{http://rest.immobilienscout24.de/schema/common/1.0}Wgs84Coordinate"/>
* <element name="preciseHouseNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="publishedAfterRequestedDate" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* <attGroup ref="{http://rest.immobilienscout24.de/schema/common/1.0}Reference"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StrictEntry", propOrder = {
"wgs84Coordinate",
"preciseHouseNumber",
"publishedAfterRequestedDate"
})
public class StrictEntry implements Serializable, Cloneable, CopyTo2, Equals2, ToString2
{
@XmlElement(required = true)
protected Wgs84Coordinate wgs84Coordinate;
protected Boolean preciseHouseNumber;
protected Boolean publishedAfterRequestedDate;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
@XmlJavaTypeAdapter(Adapter4 .class)
@XmlSchemaType(name = "anyURI")
protected URL href;
@XmlAttribute(name = "id")
protected Long id;
@XmlAttribute(name = "label")
protected String label;
@XmlAttribute(name = "modification")
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar modification;
@XmlAttribute(name = "creation")
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar creation;
@XmlAttribute(name = "publishDate")
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar publishDate;
/**
* Gets the value of the wgs84Coordinate property.
*
* @return
* possible object is
* {@link Wgs84Coordinate }
*
*/
public Wgs84Coordinate getWgs84Coordinate() {
return wgs84Coordinate;
}
/**
* Sets the value of the wgs84Coordinate property.
*
* @param value
* allowed object is
* {@link Wgs84Coordinate }
*
*/
public void setWgs84Coordinate(Wgs84Coordinate value) {
this.wgs84Coordinate = value;
}
/**
* Gets the value of the preciseHouseNumber property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPreciseHouseNumber() {
return preciseHouseNumber;
}
/**
* Sets the value of the preciseHouseNumber property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPreciseHouseNumber(Boolean value) {
this.preciseHouseNumber = value;
}
/**
* Gets the value of the publishedAfterRequestedDate property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPublishedAfterRequestedDate() {
return publishedAfterRequestedDate;
}
/**
* Sets the value of the publishedAfterRequestedDate property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPublishedAfterRequestedDate(Boolean value) {
this.publishedAfterRequestedDate = value;
}
/**
* Link zum Element.
*
* @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;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* Gets the value of the modification property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getModification() {
return modification;
}
/**
* Sets the value of the modification property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setModification(Calendar value) {
this.modification = value;
}
/**
* Gets the value of the creation property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getCreation() {
return creation;
}
/**
* Sets the value of the creation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreation(Calendar value) {
this.creation = value;
}
/**
* Gets the value of the publishDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getPublishDate() {
return publishDate;
}
/**
* Sets the value of the publishDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPublishDate(Calendar value) {
this.publishDate = 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) {
{
Wgs84Coordinate theWgs84Coordinate;
theWgs84Coordinate = this.getWgs84Coordinate();
strategy.appendField(locator, this, "wgs84Coordinate", buffer, theWgs84Coordinate, (this.wgs84Coordinate!= null));
}
{
Boolean thePreciseHouseNumber;
thePreciseHouseNumber = this.isPreciseHouseNumber();
strategy.appendField(locator, this, "preciseHouseNumber", buffer, thePreciseHouseNumber, (this.preciseHouseNumber!= null));
}
{
Boolean thePublishedAfterRequestedDate;
thePublishedAfterRequestedDate = this.isPublishedAfterRequestedDate();
strategy.appendField(locator, this, "publishedAfterRequestedDate", buffer, thePublishedAfterRequestedDate, (this.publishedAfterRequestedDate!= null));
}
{
URL theHref;
theHref = this.getHref();
strategy.appendField(locator, this, "href", buffer, theHref, (this.href!= null));
}
{
Long theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
}
{
String theLabel;
theLabel = this.getLabel();
strategy.appendField(locator, this, "label", buffer, theLabel, (this.label!= null));
}
{
Calendar theModification;
theModification = this.getModification();
strategy.appendField(locator, this, "modification", buffer, theModification, (this.modification!= null));
}
{
Calendar theCreation;
theCreation = this.getCreation();
strategy.appendField(locator, this, "creation", buffer, theCreation, (this.creation!= null));
}
{
Calendar thePublishDate;
thePublishDate = this.getPublishDate();
strategy.appendField(locator, this, "publishDate", buffer, thePublishDate, (this.publishDate!= 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 StrictEntry) {
final StrictEntry copy = ((StrictEntry) draftCopy);
{
Boolean wgs84CoordinateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.wgs84Coordinate!= null));
if (wgs84CoordinateShouldBeCopiedAndSet == Boolean.TRUE) {
Wgs84Coordinate sourceWgs84Coordinate;
sourceWgs84Coordinate = this.getWgs84Coordinate();
Wgs84Coordinate copyWgs84Coordinate = ((Wgs84Coordinate) strategy.copy(LocatorUtils.property(locator, "wgs84Coordinate", sourceWgs84Coordinate), sourceWgs84Coordinate, (this.wgs84Coordinate!= null)));
copy.setWgs84Coordinate(copyWgs84Coordinate);
} else {
if (wgs84CoordinateShouldBeCopiedAndSet == Boolean.FALSE) {
copy.wgs84Coordinate = null;
}
}
}
{
Boolean preciseHouseNumberShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.preciseHouseNumber!= null));
if (preciseHouseNumberShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourcePreciseHouseNumber;
sourcePreciseHouseNumber = this.isPreciseHouseNumber();
Boolean copyPreciseHouseNumber = ((Boolean) strategy.copy(LocatorUtils.property(locator, "preciseHouseNumber", sourcePreciseHouseNumber), sourcePreciseHouseNumber, (this.preciseHouseNumber!= null)));
copy.setPreciseHouseNumber(copyPreciseHouseNumber);
} else {
if (preciseHouseNumberShouldBeCopiedAndSet == Boolean.FALSE) {
copy.preciseHouseNumber = null;
}
}
}
{
Boolean publishedAfterRequestedDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.publishedAfterRequestedDate!= null));
if (publishedAfterRequestedDateShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourcePublishedAfterRequestedDate;
sourcePublishedAfterRequestedDate = this.isPublishedAfterRequestedDate();
Boolean copyPublishedAfterRequestedDate = ((Boolean) strategy.copy(LocatorUtils.property(locator, "publishedAfterRequestedDate", sourcePublishedAfterRequestedDate), sourcePublishedAfterRequestedDate, (this.publishedAfterRequestedDate!= null)));
copy.setPublishedAfterRequestedDate(copyPublishedAfterRequestedDate);
} else {
if (publishedAfterRequestedDateShouldBeCopiedAndSet == Boolean.FALSE) {
copy.publishedAfterRequestedDate = 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;
}
}
}
{
Boolean idShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.id!= null));
if (idShouldBeCopiedAndSet == Boolean.TRUE) {
Long sourceId;
sourceId = this.getId();
Long copyId = ((Long) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
copy.setId(copyId);
} else {
if (idShouldBeCopiedAndSet == Boolean.FALSE) {
copy.id = null;
}
}
}
{
Boolean labelShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.label!= null));
if (labelShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceLabel;
sourceLabel = this.getLabel();
String copyLabel = ((String) strategy.copy(LocatorUtils.property(locator, "label", sourceLabel), sourceLabel, (this.label!= null)));
copy.setLabel(copyLabel);
} else {
if (labelShouldBeCopiedAndSet == Boolean.FALSE) {
copy.label = null;
}
}
}
{
Boolean modificationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.modification!= null));
if (modificationShouldBeCopiedAndSet == Boolean.TRUE) {
Calendar sourceModification;
sourceModification = this.getModification();
Calendar copyModification = ((Calendar) strategy.copy(LocatorUtils.property(locator, "modification", sourceModification), sourceModification, (this.modification!= null)));
copy.setModification(copyModification);
} else {
if (modificationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.modification = null;
}
}
}
{
Boolean creationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.creation!= null));
if (creationShouldBeCopiedAndSet == Boolean.TRUE) {
Calendar sourceCreation;
sourceCreation = this.getCreation();
Calendar copyCreation = ((Calendar) strategy.copy(LocatorUtils.property(locator, "creation", sourceCreation), sourceCreation, (this.creation!= null)));
copy.setCreation(copyCreation);
} else {
if (creationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.creation = null;
}
}
}
{
Boolean publishDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.publishDate!= null));
if (publishDateShouldBeCopiedAndSet == Boolean.TRUE) {
Calendar sourcePublishDate;
sourcePublishDate = this.getPublishDate();
Calendar copyPublishDate = ((Calendar) strategy.copy(LocatorUtils.property(locator, "publishDate", sourcePublishDate), sourcePublishDate, (this.publishDate!= null)));
copy.setPublishDate(copyPublishDate);
} else {
if (publishDateShouldBeCopiedAndSet == Boolean.FALSE) {
copy.publishDate = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new StrictEntry();
}
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 StrictEntry that = ((StrictEntry) object);
{
Wgs84Coordinate lhsWgs84Coordinate;
lhsWgs84Coordinate = this.getWgs84Coordinate();
Wgs84Coordinate rhsWgs84Coordinate;
rhsWgs84Coordinate = that.getWgs84Coordinate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "wgs84Coordinate", lhsWgs84Coordinate), LocatorUtils.property(thatLocator, "wgs84Coordinate", rhsWgs84Coordinate), lhsWgs84Coordinate, rhsWgs84Coordinate, (this.wgs84Coordinate!= null), (that.wgs84Coordinate!= null))) {
return false;
}
}
{
Boolean lhsPreciseHouseNumber;
lhsPreciseHouseNumber = this.isPreciseHouseNumber();
Boolean rhsPreciseHouseNumber;
rhsPreciseHouseNumber = that.isPreciseHouseNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "preciseHouseNumber", lhsPreciseHouseNumber), LocatorUtils.property(thatLocator, "preciseHouseNumber", rhsPreciseHouseNumber), lhsPreciseHouseNumber, rhsPreciseHouseNumber, (this.preciseHouseNumber!= null), (that.preciseHouseNumber!= null))) {
return false;
}
}
{
Boolean lhsPublishedAfterRequestedDate;
lhsPublishedAfterRequestedDate = this.isPublishedAfterRequestedDate();
Boolean rhsPublishedAfterRequestedDate;
rhsPublishedAfterRequestedDate = that.isPublishedAfterRequestedDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "publishedAfterRequestedDate", lhsPublishedAfterRequestedDate), LocatorUtils.property(thatLocator, "publishedAfterRequestedDate", rhsPublishedAfterRequestedDate), lhsPublishedAfterRequestedDate, rhsPublishedAfterRequestedDate, (this.publishedAfterRequestedDate!= null), (that.publishedAfterRequestedDate!= null))) {
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;
}
}
{
Long lhsId;
lhsId = this.getId();
Long rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
String lhsLabel;
lhsLabel = this.getLabel();
String rhsLabel;
rhsLabel = that.getLabel();
if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLabel), LocatorUtils.property(thatLocator, "label", rhsLabel), lhsLabel, rhsLabel, (this.label!= null), (that.label!= null))) {
return false;
}
}
{
Calendar lhsModification;
lhsModification = this.getModification();
Calendar rhsModification;
rhsModification = that.getModification();
if (!strategy.equals(LocatorUtils.property(thisLocator, "modification", lhsModification), LocatorUtils.property(thatLocator, "modification", rhsModification), lhsModification, rhsModification, (this.modification!= null), (that.modification!= null))) {
return false;
}
}
{
Calendar lhsCreation;
lhsCreation = this.getCreation();
Calendar rhsCreation;
rhsCreation = that.getCreation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "creation", lhsCreation), LocatorUtils.property(thatLocator, "creation", rhsCreation), lhsCreation, rhsCreation, (this.creation!= null), (that.creation!= null))) {
return false;
}
}
{
Calendar lhsPublishDate;
lhsPublishDate = this.getPublishDate();
Calendar rhsPublishDate;
rhsPublishDate = that.getPublishDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "publishDate", lhsPublishDate), LocatorUtils.property(thatLocator, "publishDate", rhsPublishDate), lhsPublishDate, rhsPublishDate, (this.publishDate!= null), (that.publishDate!= 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