
com.google.code.facebookapi.schema.Comment Maven / Gradle / Ivy
//
// 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.10.29 at 05:48:56 PM PDT
//
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="comment_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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "comment", propOrder = {
"xid",
"fromid",
"time",
"text",
"commentId",
"username",
"replyXid"
})
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;
@XmlElement(name = "comment_id")
protected int commentId;
@XmlElement(required = true)
protected String username;
@XmlElement(name = "reply_xid", required = true)
protected String replyXid;
/**
* 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 commentId property.
*
*/
public int getCommentId() {
return commentId;
}
/**
* Sets the value of the commentId property.
*
*/
public void setCommentId(int value) {
this.commentId = 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;
}
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 theCommentId;
theCommentId = this.getCommentId();
toStringBuilder.append("commentId", theCommentId);
}
{
String theUsername;
theUsername = this.getUsername();
toStringBuilder.append("username", theUsername);
}
{
String theReplyXid;
theReplyXid = this.getReplyXid();
toStringBuilder.append("replyXid", theReplyXid);
}
}
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.getCommentId(), that.getCommentId());
equalsBuilder.append(this.getUsername(), that.getUsername());
equalsBuilder.append(this.getReplyXid(), that.getReplyXid());
}
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.getCommentId());
hashCodeBuilder.append(this.getUsername());
hashCodeBuilder.append(this.getReplyXid());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy