
com.google.code.facebookapi.schema.Thread Maven / Gradle / Ivy
Show all versions of facebook-java-api-schema
//
// 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 java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
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 thread complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="thread">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="thread_id" type="{http://api.facebook.com/1.0/}thread_id"/>
* <element name="subject" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="recipients">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="uid" type="{http://api.facebook.com/1.0/}uid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="updated_time" type="{http://api.facebook.com/1.0/}time"/>
* <element name="parent_message_id" type="{http://api.facebook.com/1.0/}message_id"/>
* <element name="parent_thread_id" type="{http://api.facebook.com/1.0/}thread_id"/>
* <element name="message_count" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="snippet" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="snippet_author" type="{http://api.facebook.com/1.0/}uid"/>
* <element name="object_id" type="{http://api.facebook.com/1.0/}id"/>
* <element name="unread" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="messages">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="message" type="{http://api.facebook.com/1.0/}message" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "thread", propOrder = {
"threadId",
"subject",
"recipients",
"updatedTime",
"parentMessageId",
"parentThreadId",
"messageCount",
"snippet",
"snippetAuthor",
"objectId",
"unread",
"messages"
})
public class Thread
implements Equals, HashCode, ToString
{
@XmlElement(name = "thread_id")
protected long threadId;
@XmlElement(required = true)
protected String subject;
@XmlElement(required = true)
protected Thread.Recipients recipients;
@XmlElement(name = "updated_time")
protected long updatedTime;
@XmlElement(name = "parent_message_id", required = true)
protected String parentMessageId;
@XmlElement(name = "parent_thread_id")
protected long parentThreadId;
@XmlElement(name = "message_count")
protected int messageCount;
@XmlElement(required = true)
protected String snippet;
@XmlElement(name = "snippet_author")
protected long snippetAuthor;
@XmlElement(name = "object_id")
protected long objectId;
protected boolean unread;
@XmlElement(required = true)
protected Thread.Messages messages;
/**
* Gets the value of the threadId property.
*
*/
public long getThreadId() {
return threadId;
}
/**
* Sets the value of the threadId property.
*
*/
public void setThreadId(long value) {
this.threadId = value;
}
/**
* Gets the value of the subject property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSubject() {
return subject;
}
/**
* Sets the value of the subject property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSubject(String value) {
this.subject = value;
}
/**
* Gets the value of the recipients property.
*
* @return
* possible object is
* {@link Thread.Recipients }
*
*/
public Thread.Recipients getRecipients() {
return recipients;
}
/**
* Sets the value of the recipients property.
*
* @param value
* allowed object is
* {@link Thread.Recipients }
*
*/
public void setRecipients(Thread.Recipients value) {
this.recipients = value;
}
/**
* Gets the value of the updatedTime property.
*
*/
public long getUpdatedTime() {
return updatedTime;
}
/**
* Sets the value of the updatedTime property.
*
*/
public void setUpdatedTime(long value) {
this.updatedTime = value;
}
/**
* Gets the value of the parentMessageId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getParentMessageId() {
return parentMessageId;
}
/**
* Sets the value of the parentMessageId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setParentMessageId(String value) {
this.parentMessageId = value;
}
/**
* Gets the value of the parentThreadId property.
*
*/
public long getParentThreadId() {
return parentThreadId;
}
/**
* Sets the value of the parentThreadId property.
*
*/
public void setParentThreadId(long value) {
this.parentThreadId = value;
}
/**
* Gets the value of the messageCount property.
*
*/
public int getMessageCount() {
return messageCount;
}
/**
* Sets the value of the messageCount property.
*
*/
public void setMessageCount(int value) {
this.messageCount = value;
}
/**
* Gets the value of the snippet property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSnippet() {
return snippet;
}
/**
* Sets the value of the snippet property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSnippet(String value) {
this.snippet = value;
}
/**
* Gets the value of the snippetAuthor property.
*
*/
public long getSnippetAuthor() {
return snippetAuthor;
}
/**
* Sets the value of the snippetAuthor property.
*
*/
public void setSnippetAuthor(long value) {
this.snippetAuthor = value;
}
/**
* Gets the value of the objectId property.
*
*/
public long getObjectId() {
return objectId;
}
/**
* Sets the value of the objectId property.
*
*/
public void setObjectId(long value) {
this.objectId = value;
}
/**
* Gets the value of the unread property.
*
*/
public boolean isUnread() {
return unread;
}
/**
* Sets the value of the unread property.
*
*/
public void setUnread(boolean value) {
this.unread = value;
}
/**
* Gets the value of the messages property.
*
* @return
* possible object is
* {@link Thread.Messages }
*
*/
public Thread.Messages getMessages() {
return messages;
}
/**
* Sets the value of the messages property.
*
* @param value
* allowed object is
* {@link Thread.Messages }
*
*/
public void setMessages(Thread.Messages value) {
this.messages = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
long theThreadId;
theThreadId = this.getThreadId();
toStringBuilder.append("threadId", theThreadId);
}
{
String theSubject;
theSubject = this.getSubject();
toStringBuilder.append("subject", theSubject);
}
{
Thread.Recipients theRecipients;
theRecipients = this.getRecipients();
toStringBuilder.append("recipients", theRecipients);
}
{
long theUpdatedTime;
theUpdatedTime = this.getUpdatedTime();
toStringBuilder.append("updatedTime", theUpdatedTime);
}
{
String theParentMessageId;
theParentMessageId = this.getParentMessageId();
toStringBuilder.append("parentMessageId", theParentMessageId);
}
{
long theParentThreadId;
theParentThreadId = this.getParentThreadId();
toStringBuilder.append("parentThreadId", theParentThreadId);
}
{
int theMessageCount;
theMessageCount = this.getMessageCount();
toStringBuilder.append("messageCount", theMessageCount);
}
{
String theSnippet;
theSnippet = this.getSnippet();
toStringBuilder.append("snippet", theSnippet);
}
{
long theSnippetAuthor;
theSnippetAuthor = this.getSnippetAuthor();
toStringBuilder.append("snippetAuthor", theSnippetAuthor);
}
{
long theObjectId;
theObjectId = this.getObjectId();
toStringBuilder.append("objectId", theObjectId);
}
{
boolean theUnread;
theUnread = this.isUnread();
toStringBuilder.append("unread", theUnread);
}
{
Thread.Messages theMessages;
theMessages = this.getMessages();
toStringBuilder.append("messages", theMessages);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Thread)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Thread that = ((Thread) object);
equalsBuilder.append(this.getThreadId(), that.getThreadId());
equalsBuilder.append(this.getSubject(), that.getSubject());
equalsBuilder.append(this.getRecipients(), that.getRecipients());
equalsBuilder.append(this.getUpdatedTime(), that.getUpdatedTime());
equalsBuilder.append(this.getParentMessageId(), that.getParentMessageId());
equalsBuilder.append(this.getParentThreadId(), that.getParentThreadId());
equalsBuilder.append(this.getMessageCount(), that.getMessageCount());
equalsBuilder.append(this.getSnippet(), that.getSnippet());
equalsBuilder.append(this.getSnippetAuthor(), that.getSnippetAuthor());
equalsBuilder.append(this.getObjectId(), that.getObjectId());
equalsBuilder.append(this.isUnread(), that.isUnread());
equalsBuilder.append(this.getMessages(), that.getMessages());
}
public boolean equals(Object object) {
if (!(object instanceof Thread)) {
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.getThreadId());
hashCodeBuilder.append(this.getSubject());
hashCodeBuilder.append(this.getRecipients());
hashCodeBuilder.append(this.getUpdatedTime());
hashCodeBuilder.append(this.getParentMessageId());
hashCodeBuilder.append(this.getParentThreadId());
hashCodeBuilder.append(this.getMessageCount());
hashCodeBuilder.append(this.getSnippet());
hashCodeBuilder.append(this.getSnippetAuthor());
hashCodeBuilder.append(this.getObjectId());
hashCodeBuilder.append(this.isUnread());
hashCodeBuilder.append(this.getMessages());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="message" type="{http://api.facebook.com/1.0/}message" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"message"
})
public static class Messages
implements Equals, HashCode, ToString
{
protected List message;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the message property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the message property.
*
*
* For example, to add a new item, do as follows:
*
* getMessage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Message }
*
*
*/
public List getMessage() {
if (message == null) {
message = new ArrayList();
}
return this.message;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theMessage;
theMessage = this.getMessage();
toStringBuilder.append("message", theMessage);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Thread.Messages)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Thread.Messages that = ((Thread.Messages) object);
equalsBuilder.append(this.getMessage(), that.getMessage());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Thread.Messages)) {
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.getMessage());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="uid" type="{http://api.facebook.com/1.0/}uid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"uid"
})
public static class Recipients
implements Equals, HashCode, ToString
{
@XmlElement(type = Long.class)
protected List uid;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the uid property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the uid property.
*
*
* For example, to add a new item, do as follows:
*
* getUid().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List getUid() {
if (uid == null) {
uid = new ArrayList();
}
return this.uid;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theUid;
theUid = this.getUid();
toStringBuilder.append("uid", theUid);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Thread.Recipients)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Thread.Recipients that = ((Thread.Recipients) object);
equalsBuilder.append(this.getUid(), that.getUid());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Thread.Recipients)) {
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.getUid());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
}