All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.facebookapi.schema.Photo Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.02.15 at 07:02:48 PM GMT-08:00 
//


package com.google.code.facebookapi.schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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 photo complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="photo">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="pid" type="{http://api.facebook.com/1.0/}pid"/>
 *         <element name="aid" type="{http://api.facebook.com/1.0/}aid"/>
 *         <element name="owner" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="src" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="src_big" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="src_small" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="link" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="caption" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="created" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="modified" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="story_fbid" type="{http://api.facebook.com/1.0/}id"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "photo", propOrder = { "pid", "aid", "owner", "src", "srcBig", "srcSmall", "link", "caption", "created", "modified", "storyFbid" }) public class Photo implements Equals, HashCode, ToString { protected long pid; protected long aid; protected long owner; @XmlElement(required = true) protected String src; @XmlElement(name = "src_big", required = true) protected String srcBig; @XmlElement(name = "src_small", required = true) protected String srcSmall; @XmlElement(required = true) protected String link; @XmlElement(required = true) protected String caption; protected long created; protected long modified; @XmlElement(name = "story_fbid") protected long storyFbid; /** * Gets the value of the pid property. * */ public long getPid() { return pid; } /** * Sets the value of the pid property. * */ public void setPid(long value) { this.pid = value; } /** * Gets the value of the aid property. * */ public long getAid() { return aid; } /** * Sets the value of the aid property. * */ public void setAid(long value) { this.aid = 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 src property. * * @return * possible object is * {@link String } * */ public String getSrc() { return src; } /** * Sets the value of the src property. * * @param value * allowed object is * {@link String } * */ public void setSrc(String value) { this.src = value; } /** * Gets the value of the srcBig property. * * @return * possible object is * {@link String } * */ public String getSrcBig() { return srcBig; } /** * Sets the value of the srcBig property. * * @param value * allowed object is * {@link String } * */ public void setSrcBig(String value) { this.srcBig = value; } /** * Gets the value of the srcSmall property. * * @return * possible object is * {@link String } * */ public String getSrcSmall() { return srcSmall; } /** * Sets the value of the srcSmall property. * * @param value * allowed object is * {@link String } * */ public void setSrcSmall(String value) { this.srcSmall = value; } /** * Gets the value of the link property. * * @return * possible object is * {@link String } * */ public String getLink() { return link; } /** * Sets the value of the link property. * * @param value * allowed object is * {@link String } * */ public void setLink(String value) { this.link = value; } /** * Gets the value of the caption property. * * @return * possible object is * {@link String } * */ public String getCaption() { return caption; } /** * Sets the value of the caption property. * * @param value * allowed object is * {@link String } * */ public void setCaption(String value) { this.caption = value; } /** * Gets the value of the created property. * */ public long getCreated() { return created; } /** * Sets the value of the created property. * */ public void setCreated(long value) { this.created = value; } /** * Gets the value of the modified property. * */ public long getModified() { return modified; } /** * Sets the value of the modified property. * */ public void setModified(long value) { this.modified = value; } /** * Gets the value of the storyFbid property. * */ public long getStoryFbid() { return storyFbid; } /** * Sets the value of the storyFbid property. * */ public void setStoryFbid(long value) { this.storyFbid = value; } public void toString(ToStringBuilder toStringBuilder) { { long thePid; thePid = this.getPid(); toStringBuilder.append("pid", thePid); } { long theAid; theAid = this.getAid(); toStringBuilder.append("aid", theAid); } { long theOwner; theOwner = this.getOwner(); toStringBuilder.append("owner", theOwner); } { String theSrc; theSrc = this.getSrc(); toStringBuilder.append("src", theSrc); } { String theSrcBig; theSrcBig = this.getSrcBig(); toStringBuilder.append("srcBig", theSrcBig); } { String theSrcSmall; theSrcSmall = this.getSrcSmall(); toStringBuilder.append("srcSmall", theSrcSmall); } { String theLink; theLink = this.getLink(); toStringBuilder.append("link", theLink); } { String theCaption; theCaption = this.getCaption(); toStringBuilder.append("caption", theCaption); } { long theCreated; theCreated = this.getCreated(); toStringBuilder.append("created", theCreated); } { long theModified; theModified = this.getModified(); toStringBuilder.append("modified", theModified); } { long theStoryFbid; theStoryFbid = this.getStoryFbid(); toStringBuilder.append("storyFbid", theStoryFbid); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Photo)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Photo that = ((Photo) object); equalsBuilder.append(this.getPid(), that.getPid()); equalsBuilder.append(this.getAid(), that.getAid()); equalsBuilder.append(this.getOwner(), that.getOwner()); equalsBuilder.append(this.getSrc(), that.getSrc()); equalsBuilder.append(this.getSrcBig(), that.getSrcBig()); equalsBuilder.append(this.getSrcSmall(), that.getSrcSmall()); equalsBuilder.append(this.getLink(), that.getLink()); equalsBuilder.append(this.getCaption(), that.getCaption()); equalsBuilder.append(this.getCreated(), that.getCreated()); equalsBuilder.append(this.getModified(), that.getModified()); equalsBuilder.append(this.getStoryFbid(), that.getStoryFbid()); } public boolean equals(Object object) { if (!(object instanceof Photo)) { 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.getPid()); hashCodeBuilder.append(this.getAid()); hashCodeBuilder.append(this.getOwner()); hashCodeBuilder.append(this.getSrc()); hashCodeBuilder.append(this.getSrcBig()); hashCodeBuilder.append(this.getSrcSmall()); hashCodeBuilder.append(this.getLink()); hashCodeBuilder.append(this.getCaption()); hashCodeBuilder.append(this.getCreated()); hashCodeBuilder.append(this.getModified()); hashCodeBuilder.append(this.getStoryFbid()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy