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

com.google.code.facebookapi.schema.Comment 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-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.12.02 at 03:06:46 PM PST 
//


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 comment complex type. * *

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

 * <complexType name="comment">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="xid" type="{http://api.facebook.com/1.0/}xid"/>
 *         <element name="fromid" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="id" type="{http://api.facebook.com/1.0/}comment_id"/>
 *         <element name="username" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="reply_xid" type="{http://api.facebook.com/1.0/}xid"/>
 *         <element name="post_id" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "comment", propOrder = { "xid", "fromid", "time", "text", "id", "username", "replyXid", "postId" }) public class Comment implements Equals, HashCode, ToString { @XmlElement(required = true) protected String xid; protected long fromid; protected long time; @XmlElement(required = true) protected String text; protected int id; @XmlElement(required = true) protected String username; @XmlElement(name = "reply_xid", required = true) protected String replyXid; @XmlElement(name = "post_id", required = true) protected String postId; /** * Gets the value of the xid property. * * @return * possible object is * {@link String } * */ public String getXid() { return xid; } /** * Sets the value of the xid property. * * @param value * allowed object is * {@link String } * */ public void setXid(String value) { this.xid = value; } /** * Gets the value of the fromid property. * */ public long getFromid() { return fromid; } /** * Sets the value of the fromid property. * */ public void setFromid(long value) { this.fromid = value; } /** * Gets the value of the time property. * */ public long getTime() { return time; } /** * Sets the value of the time property. * */ public void setTime(long value) { this.time = value; } /** * Gets the value of the text property. * * @return * possible object is * {@link String } * */ public String getText() { return text; } /** * Sets the value of the text property. * * @param value * allowed object is * {@link String } * */ public void setText(String value) { this.text = value; } /** * Gets the value of the id property. * */ public int getId() { return id; } /** * Sets the value of the id property. * */ public void setId(int value) { this.id = value; } /** * Gets the value of the username property. * * @return * possible object is * {@link String } * */ public String getUsername() { return username; } /** * Sets the value of the username property. * * @param value * allowed object is * {@link String } * */ public void setUsername(String value) { this.username = value; } /** * Gets the value of the replyXid property. * * @return * possible object is * {@link String } * */ public String getReplyXid() { return replyXid; } /** * Sets the value of the replyXid property. * * @param value * allowed object is * {@link String } * */ public void setReplyXid(String value) { this.replyXid = value; } /** * Gets the value of the postId property. * * @return * possible object is * {@link String } * */ public String getPostId() { return postId; } /** * Sets the value of the postId property. * * @param value * allowed object is * {@link String } * */ public void setPostId(String value) { this.postId = value; } public void toString(ToStringBuilder toStringBuilder) { { String theXid; theXid = this.getXid(); toStringBuilder.append("xid", theXid); } { long theFromid; theFromid = this.getFromid(); toStringBuilder.append("fromid", theFromid); } { long theTime; theTime = this.getTime(); toStringBuilder.append("time", theTime); } { String theText; theText = this.getText(); toStringBuilder.append("text", theText); } { int theId; theId = this.getId(); toStringBuilder.append("id", theId); } { String theUsername; theUsername = this.getUsername(); toStringBuilder.append("username", theUsername); } { String theReplyXid; theReplyXid = this.getReplyXid(); toStringBuilder.append("replyXid", theReplyXid); } { String thePostId; thePostId = this.getPostId(); toStringBuilder.append("postId", thePostId); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Comment)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Comment that = ((Comment) object); equalsBuilder.append(this.getXid(), that.getXid()); equalsBuilder.append(this.getFromid(), that.getFromid()); equalsBuilder.append(this.getTime(), that.getTime()); equalsBuilder.append(this.getText(), that.getText()); equalsBuilder.append(this.getId(), that.getId()); equalsBuilder.append(this.getUsername(), that.getUsername()); equalsBuilder.append(this.getReplyXid(), that.getReplyXid()); equalsBuilder.append(this.getPostId(), that.getPostId()); } public boolean equals(Object object) { if (!(object instanceof Comment)) { 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.getXid()); hashCodeBuilder.append(this.getFromid()); hashCodeBuilder.append(this.getTime()); hashCodeBuilder.append(this.getText()); hashCodeBuilder.append(this.getId()); hashCodeBuilder.append(this.getUsername()); hashCodeBuilder.append(this.getReplyXid()); hashCodeBuilder.append(this.getPostId()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy