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 stream_photo complex type.

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

 <complexType name="stream_photo">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="aid" type="{http://api.facebook.com/1.0/}aid"/>
         <element name="pid" type="{http://api.facebook.com/1.0/}pid"/>
         <element name="owner" type="{http://api.facebook.com/1.0/}uid"/>
         <element name="index" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="width" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="height" type="{http://www.w3.org/2001/XMLSchema}int"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "stream_photo", propOrder = {
     "aid",
     "pid",
     "owner",
     "index",
     "width",
     "height"
 })
 public class StreamPhoto
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected String aid;
     @XmlElement(required = true)
     protected String pid;
     protected long owner;
     protected int index;
     protected int width;
     protected int height;

    
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 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 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 index property.
    public int getIndex() {
        return ;
    }

    
Sets the value of the index property.
    public void setIndex(int value) {
        this. = value;
    }

    
Gets the value of the width property.
    public int getWidth() {
        return ;
    }

    
Sets the value of the width property.
    public void setWidth(int value) {
        this. = value;
    }

    
Gets the value of the height property.
    public int getHeight() {
        return ;
    }

    
Sets the value of the height property.
    public void setHeight(int value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String theAid;
            theAid = this.getAid();
            toStringBuilder.append("aid"theAid);
        }
        {
            String thePid;
            thePid = this.getPid();
            toStringBuilder.append("pid"thePid);
        }
        {
            long theOwner;
            theOwner = this.getOwner();
            toStringBuilder.append("owner"theOwner);
        }
        {
            int theIndex;
            theIndex = this.getIndex();
            toStringBuilder.append("index"theIndex);
        }
        {
            int theWidth;
            theWidth = this.getWidth();
            toStringBuilder.append("width"theWidth);
        }
        {
            int theHeight;
            theHeight = this.getHeight();
            toStringBuilder.append("height"theHeight);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof StreamPhoto)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final StreamPhoto that = ((StreamPhotoobject);
        equalsBuilder.append(this.getAid(), that.getAid());
        equalsBuilder.append(this.getPid(), that.getPid());
        equalsBuilder.append(this.getOwner(), that.getOwner());
        equalsBuilder.append(this.getIndex(), that.getIndex());
        equalsBuilder.append(this.getWidth(), that.getWidth());
        equalsBuilder.append(this.getHeight(), that.getHeight());
    }
    public boolean equals(Object object) {
        if (!(object instanceof StreamPhoto)) {
            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.getAid());
        hashCodeBuilder.append(this.getPid());
        hashCodeBuilder.append(this.getOwner());
        hashCodeBuilder.append(this.getIndex());
        hashCodeBuilder.append(this.getWidth());
        hashCodeBuilder.append(this.getHeight());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }
New to GrepCode? Check out our FAQ X