
com.google.code.facebookapi.schema.Link Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.10.29 at 05:48:56 PM PDT
//
package com.google.code.facebookapi.schema;
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.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;
/**
* Java class for link complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="link">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="link_id" type="{http://api.facebook.com/1.0/}link_id"/>
* <element name="owner" type="{http://api.facebook.com/1.0/}uid"/>
* <element name="owner_comment" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="created_time" type="{http://api.facebook.com/1.0/}time"/>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="summary" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="image_urls">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="image_urls_elt" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "link", propOrder = {
"linkId",
"owner",
"ownerComment",
"createdTime",
"title",
"summary",
"url",
"imageUrls"
})
public class Link
implements Equals, HashCode, ToString
{
@XmlElement(name = "link_id")
protected long linkId;
protected long owner;
@XmlElement(name = "owner_comment", required = true)
protected String ownerComment;
@XmlElement(name = "created_time")
protected long createdTime;
@XmlElement(required = true)
protected String title;
@XmlElement(required = true)
protected String summary;
@XmlElement(required = true)
protected String url;
@XmlElement(name = "image_urls", required = true)
protected Link.ImageUrls imageUrls;
/**
* Gets the value of the linkId property.
*
*/
public long getLinkId() {
return linkId;
}
/**
* Sets the value of the linkId property.
*
*/
public void setLinkId(long value) {
this.linkId = value;
}
/**
* Gets the value of the owner property.
*
*/
public long getOwner() {
return owner;
}
/**
* Sets the value of the owner property.
*
*/
public void setOwner(long value) {
this.owner = value;
}
/**
* Gets the value of the ownerComment property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOwnerComment() {
return ownerComment;
}
/**
* Sets the value of the ownerComment property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOwnerComment(String value) {
this.ownerComment = value;
}
/**
* Gets the value of the createdTime property.
*
*/
public long getCreatedTime() {
return createdTime;
}
/**
* Sets the value of the createdTime property.
*
*/
public void setCreatedTime(long value) {
this.createdTime = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the summary property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSummary() {
return summary;
}
/**
* Sets the value of the summary property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSummary(String value) {
this.summary = value;
}
/**
* Gets the value of the url property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUrl(String value) {
this.url = value;
}
/**
* Gets the value of the imageUrls property.
*
* @return
* possible object is
* {@link Link.ImageUrls }
*
*/
public Link.ImageUrls getImageUrls() {
return imageUrls;
}
/**
* Sets the value of the imageUrls property.
*
* @param value
* allowed object is
* {@link Link.ImageUrls }
*
*/
public void setImageUrls(Link.ImageUrls value) {
this.imageUrls = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
long theLinkId;
theLinkId = this.getLinkId();
toStringBuilder.append("linkId", theLinkId);
}
{
long theOwner;
theOwner = this.getOwner();
toStringBuilder.append("owner", theOwner);
}
{
String theOwnerComment;
theOwnerComment = this.getOwnerComment();
toStringBuilder.append("ownerComment", theOwnerComment);
}
{
long theCreatedTime;
theCreatedTime = this.getCreatedTime();
toStringBuilder.append("createdTime", theCreatedTime);
}
{
String theTitle;
theTitle = this.getTitle();
toStringBuilder.append("title", theTitle);
}
{
String theSummary;
theSummary = this.getSummary();
toStringBuilder.append("summary", theSummary);
}
{
String theUrl;
theUrl = this.getUrl();
toStringBuilder.append("url", theUrl);
}
{
Link.ImageUrls theImageUrls;
theImageUrls = this.getImageUrls();
toStringBuilder.append("imageUrls", theImageUrls);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Link)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Link that = ((Link) object);
equalsBuilder.append(this.getLinkId(), that.getLinkId());
equalsBuilder.append(this.getOwner(), that.getOwner());
equalsBuilder.append(this.getOwnerComment(), that.getOwnerComment());
equalsBuilder.append(this.getCreatedTime(), that.getCreatedTime());
equalsBuilder.append(this.getTitle(), that.getTitle());
equalsBuilder.append(this.getSummary(), that.getSummary());
equalsBuilder.append(this.getUrl(), that.getUrl());
equalsBuilder.append(this.getImageUrls(), that.getImageUrls());
}
public boolean equals(Object object) {
if (!(object instanceof Link)) {
return false;
}
if (this == object) {
return true;
}
final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
equals(object, equalsBuilder);
return equalsBuilder.isEquals();
}
public void hashCode(HashCodeBuilder hashCodeBuilder) {
hashCodeBuilder.append(this.getLinkId());
hashCodeBuilder.append(this.getOwner());
hashCodeBuilder.append(this.getOwnerComment());
hashCodeBuilder.append(this.getCreatedTime());
hashCodeBuilder.append(this.getTitle());
hashCodeBuilder.append(this.getSummary());
hashCodeBuilder.append(this.getUrl());
hashCodeBuilder.append(this.getImageUrls());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
/**
* 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 maxOccurs="unbounded" minOccurs="0">
* <element name="image_urls_elt" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"imageUrlsElt"
})
public static class ImageUrls
implements Equals, HashCode, ToString
{
@XmlElement(name = "image_urls_elt")
protected List imageUrlsElt;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the imageUrlsElt 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 imageUrlsElt property.
*
*
* For example, to add a new item, do as follows:
*
* getImageUrlsElt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getImageUrlsElt() {
if (imageUrlsElt == null) {
imageUrlsElt = new ArrayList();
}
return this.imageUrlsElt;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theImageUrlsElt;
theImageUrlsElt = this.getImageUrlsElt();
toStringBuilder.append("imageUrlsElt", theImageUrlsElt);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Link.ImageUrls)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Link.ImageUrls that = ((Link.ImageUrls) object);
equalsBuilder.append(this.getImageUrlsElt(), that.getImageUrlsElt());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Link.ImageUrls)) {
return false;
}
if (this == object) {
return true;
}
final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
equals(object, equalsBuilder);
return equalsBuilder.isEquals();
}
public void hashCode(HashCodeBuilder hashCodeBuilder) {
hashCodeBuilder.append(this.getImageUrlsElt());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
}