Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2010.07.14 at 01:45:55 PM PDT 
  //
  
  
  package com.google.code.facebookapi.schema;
 

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="story_fbid" type="{http://api.facebook.com/1.0/}id"/>
         <element name="modified" type="{http://api.facebook.com/1.0/}time"/>
         <element name="object_id" type="{http://www.w3.org/2001/XMLSchema}long"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "photo", propOrder = {
     "pid",
     "aid",
     "owner",
     "src",
     "srcBig",
     "srcSmall",
     "link",
     "caption",
     "created",
     "storyFbid",
     "modified",
     "objectId"
 })
 public class Photo
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected String pid;
     @XmlElement(required = true)
     protected String 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;
     @XmlElement(name = "story_fbid")
     protected long storyFbid;
     protected long modified;
     @XmlElement(name = "object_id")
     protected long objectId;

    
Gets the value of the pid property.

Returns:
possible object is
    public String getPid() {
        return ;
    }

    
Sets the value of the pid property.

Parameters:
value allowed object is
    public void setPid(String value) {
        this. = value;
    }

    
Gets the value of the aid property.

Returns:
possible object is
    public String getAid() {
        return ;
    }

    
Sets the value of the aid property.

Parameters:
value allowed object is
    public void setAid(String value) {
        this. = value;
    }

    
Gets the value of the owner property.
    public long getOwner() {
        return ;
    }

    
Sets the value of the owner property.
    public void setOwner(long value) {
        this. = value;
    }

    
Gets the value of the src property.

Returns:
possible object is
    public String getSrc() {
        return ;
    }

    
Sets the value of the src property.

Parameters:
value allowed object is
    public void setSrc(String value) {
        this. = value;
    }

    
Gets the value of the srcBig property.

Returns:
possible object is
    public String getSrcBig() {
        return ;
    }

    
Sets the value of the srcBig property.

Parameters:
value allowed object is
    public void setSrcBig(String value) {
        this. = value;
    }

    
Gets the value of the srcSmall property.

Returns:
possible object is
    public String getSrcSmall() {
        return ;
    }

    
Sets the value of the srcSmall property.

Parameters:
value allowed object is
    public void setSrcSmall(String value) {
        this. = value;
    }

    
Gets the value of the link property.

Returns:
possible object is
    public String getLink() {
        return ;
    }

    
Sets the value of the link property.

Parameters:
value allowed object is
    public void setLink(String value) {
        this. = value;
    }

    
Gets the value of the caption property.

Returns:
possible object is
    public String getCaption() {
        return ;
    }

    
Sets the value of the caption property.

Parameters:
value allowed object is
    public void setCaption(String value) {
        this. = value;
    }

    
Gets the value of the created property.
    public long getCreated() {
        return ;
    }

    
Sets the value of the created property.
    public void setCreated(long value) {
        this. = value;
    }

    
Gets the value of the storyFbid property.
    public long getStoryFbid() {
        return ;
    }

    
Sets the value of the storyFbid property.
    public void setStoryFbid(long value) {
        this. = value;
    }

    
Gets the value of the modified property.
    public long getModified() {
        return ;
    }

    
Sets the value of the modified property.
    public void setModified(long value) {
        this. = value;
    }

    
Gets the value of the objectId property.
    public long getObjectId() {
        return ;
    }

    
Sets the value of the objectId property.
    public void setObjectId(long value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String thePid;
            thePid = this.getPid();
            toStringBuilder.append("pid"thePid);
        }
        {
            String 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 theStoryFbid;
            theStoryFbid = this.getStoryFbid();
            toStringBuilder.append("storyFbid"theStoryFbid);
        }
        {
            long theModified;
            theModified = this.getModified();
            toStringBuilder.append("modified"theModified);
        }
        {
            long theObjectId;
            theObjectId = this.getObjectId();
            toStringBuilder.append("objectId"theObjectId);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof Photo)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final Photo that = ((Photoobject);
        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.getStoryFbid(), that.getStoryFbid());
        equalsBuilder.append(this.getModified(), that.getModified());
        equalsBuilder.append(this.getObjectId(), that.getObjectId());
    }
    public boolean equals(Object object) {
        if (!(object instanceof Photo)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
        equals(objectequalsBuilder);
        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.getStoryFbid());
        hashCodeBuilder.append(this.getModified());
        hashCodeBuilder.append(this.getObjectId());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }
New to GrepCode? Check out our FAQ X