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

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

 <complexType name="photo_tag">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="pid" type="{http://api.facebook.com/1.0/}pid"/>
         <element name="subject" type="{http://api.facebook.com/1.0/}uid" minOccurs="0"/>
         <element name="text" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="xcoord" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
         <element name="ycoord" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
         <element name="created" type="{http://api.facebook.com/1.0/}time"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "photo_tag", propOrder = {
     "pid",
     "subject",
     "text",
     "xcoord",
     "ycoord",
     "created"
 })
 public class PhotoTag
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected String pid;
     protected Long subject;
     protected String text;
     @XmlElement(required = true)
     protected BigDecimal xcoord;
     @XmlElement(required = true)
     protected BigDecimal ycoord;
     protected long created;

    
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 subject property.

Returns:
possible object is
    public Long getSubject() {
        return ;
    }

    
Sets the value of the subject property.

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

    
Gets the value of the text property.

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

    
Sets the value of the text property.

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

    
Gets the value of the xcoord property.

Returns:
possible object is
    public BigDecimal getXcoord() {
        return ;
    }

    
Sets the value of the xcoord property.

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

    
Gets the value of the ycoord property.

Returns:
possible object is
    public BigDecimal getYcoord() {
        return ;
    }

    
Sets the value of the ycoord property.

Parameters:
value allowed object is
    public void setYcoord(BigDecimal 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;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String thePid;
            thePid = this.getPid();
            toStringBuilder.append("pid"thePid);
        }
        {
            Long theSubject;
            theSubject = this.getSubject();
            toStringBuilder.append("subject"theSubject);
        }
        {
            String theText;
            theText = this.getText();
            toStringBuilder.append("text"theText);
        }
        {
            BigDecimal theXcoord;
            theXcoord = this.getXcoord();
            toStringBuilder.append("xcoord"theXcoord);
        }
        {
            BigDecimal theYcoord;
            theYcoord = this.getYcoord();
            toStringBuilder.append("ycoord"theYcoord);
        }
        {
            long theCreated;
            theCreated = this.getCreated();
            toStringBuilder.append("created"theCreated);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof PhotoTag)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final PhotoTag that = ((PhotoTagobject);
        equalsBuilder.append(this.getPid(), that.getPid());
        equalsBuilder.append(this.getSubject(), that.getSubject());
        equalsBuilder.append(this.getText(), that.getText());
        equalsBuilder.append(this.getXcoord(), that.getXcoord());
        equalsBuilder.append(this.getYcoord(), that.getYcoord());
        equalsBuilder.append(this.getCreated(), that.getCreated());
    }
    public boolean equals(Object object) {
        if (!(object instanceof PhotoTag)) {
            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.getSubject());
        hashCodeBuilder.append(this.getText());
        hashCodeBuilder.append(this.getXcoord());
        hashCodeBuilder.append(this.getYcoord());
        hashCodeBuilder.append(this.getCreated());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }
New to GrepCode? Check out our FAQ X