![JAR search and dependency download from the Maven repository](/logo.png)
org.openestate.io.daft_ie.xml.Feedindex Maven / Gradle / Ivy
package org.openestate.io.daft_ie.xml;
import java.net.URL;
import java.util.ArrayList;
import java.util.Calendar;
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.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;
/**
* 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="feed" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="loc" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
* <element name="lastmod" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"feed"
})
@XmlRootElement(name = "feedindex")
public class Feedindex implements Cloneable, CopyTo2, Equals2, ToString2
{
protected List feed;
/**
* Gets the value of the feed 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 feed property.
*
*
* For example, to add a new item, do as follows:
*
* getFeed().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Feedindex.Feed }
*
*
*/
public List getFeed() {
if (feed == null) {
feed = new ArrayList();
}
return this.feed;
}
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 theFeed;
theFeed = (((this.feed!= null)&&(!this.feed.isEmpty()))?this.getFeed():null);
strategy.appendField(locator, this, "feed", buffer, theFeed, ((this.feed!= null)&&(!this.feed.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 Feedindex) {
final Feedindex copy = ((Feedindex) draftCopy);
{
Boolean feedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.feed!= null)&&(!this.feed.isEmpty())));
if (feedShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceFeed;
sourceFeed = (((this.feed!= null)&&(!this.feed.isEmpty()))?this.getFeed():null);
@SuppressWarnings("unchecked")
List copyFeed = ((List ) strategy.copy(LocatorUtils.property(locator, "feed", sourceFeed), sourceFeed, ((this.feed!= null)&&(!this.feed.isEmpty()))));
copy.feed = null;
if (copyFeed!= null) {
List uniqueFeedl = copy.getFeed();
uniqueFeedl.addAll(copyFeed);
}
} else {
if (feedShouldBeCopiedAndSet == Boolean.FALSE) {
copy.feed = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Feedindex();
}
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 Feedindex that = ((Feedindex) object);
{
List lhsFeed;
lhsFeed = (((this.feed!= null)&&(!this.feed.isEmpty()))?this.getFeed():null);
List rhsFeed;
rhsFeed = (((that.feed!= null)&&(!that.feed.isEmpty()))?that.getFeed():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "feed", lhsFeed), LocatorUtils.property(thatLocator, "feed", rhsFeed), lhsFeed, rhsFeed, ((this.feed!= null)&&(!this.feed.isEmpty())), ((that.feed!= null)&&(!that.feed.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">
* <all>
* <element name="loc" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
* <element name="lastmod" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
public static class Feed implements Cloneable, CopyTo2, Equals2, ToString2
{
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter3 .class)
@XmlSchemaType(name = "anyURI")
protected URL loc;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar lastmod;
/**
* Gets the value of the loc property.
*
* @return
* possible object is
* {@link String }
*
*/
public URL getLoc() {
return loc;
}
/**
* Sets the value of the loc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLoc(URL value) {
this.loc = value;
}
/**
* Gets the value of the lastmod property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getLastmod() {
return lastmod;
}
/**
* Sets the value of the lastmod property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastmod(Calendar value) {
this.lastmod = 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) {
{
URL theLoc;
theLoc = this.getLoc();
strategy.appendField(locator, this, "loc", buffer, theLoc, (this.loc!= null));
}
{
Calendar theLastmod;
theLastmod = this.getLastmod();
strategy.appendField(locator, this, "lastmod", buffer, theLastmod, (this.lastmod!= 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 Feedindex.Feed) {
final Feedindex.Feed copy = ((Feedindex.Feed) draftCopy);
{
Boolean locShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.loc!= null));
if (locShouldBeCopiedAndSet == Boolean.TRUE) {
URL sourceLoc;
sourceLoc = this.getLoc();
URL copyLoc = ((URL) strategy.copy(LocatorUtils.property(locator, "loc", sourceLoc), sourceLoc, (this.loc!= null)));
copy.setLoc(copyLoc);
} else {
if (locShouldBeCopiedAndSet == Boolean.FALSE) {
copy.loc = null;
}
}
}
{
Boolean lastmodShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.lastmod!= null));
if (lastmodShouldBeCopiedAndSet == Boolean.TRUE) {
Calendar sourceLastmod;
sourceLastmod = this.getLastmod();
Calendar copyLastmod = ((Calendar) strategy.copy(LocatorUtils.property(locator, "lastmod", sourceLastmod), sourceLastmod, (this.lastmod!= null)));
copy.setLastmod(copyLastmod);
} else {
if (lastmodShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lastmod = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Feedindex.Feed();
}
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 Feedindex.Feed that = ((Feedindex.Feed) object);
{
URL lhsLoc;
lhsLoc = this.getLoc();
URL rhsLoc;
rhsLoc = that.getLoc();
if (!strategy.equals(LocatorUtils.property(thisLocator, "loc", lhsLoc), LocatorUtils.property(thatLocator, "loc", rhsLoc), lhsLoc, rhsLoc, (this.loc!= null), (that.loc!= null))) {
return false;
}
}
{
Calendar lhsLastmod;
lhsLastmod = this.getLastmod();
Calendar rhsLastmod;
rhsLastmod = that.getLastmod();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lastmod", lhsLastmod), LocatorUtils.property(thatLocator, "lastmod", rhsLastmod), lhsLastmod, rhsLastmod, (this.lastmod!= null), (that.lastmod!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
}