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

com.google.code.facebookapi.schema.StreamPost 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 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 stream_post complex type. * *

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

 * <complexType name="stream_post">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="post_id" type="{http://api.facebook.com/1.0/}post_id"/>
 *         <element name="viewer_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="view" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="source_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="app_id" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="attribution" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="actor_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="target_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="attachment" type="{http://api.facebook.com/1.0/}stream_attachment"/>
 *         <element name="app_data" type="{http://api.facebook.com/1.0/}stream_app_data"/>
 *         <element name="action_links">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence maxOccurs="unbounded" minOccurs="0">
 *                   <element name="stream_action_link" type="{http://api.facebook.com/1.0/}stream_action_link" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="comments" type="{http://api.facebook.com/1.0/}stream_comments"/>
 *         <element name="likes" type="{http://api.facebook.com/1.0/}stream_likes"/>
 *         <element name="privacy" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="updated_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="created_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="tagged_ids">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence maxOccurs="unbounded" minOccurs="0">
 *                   <element name="id" type="{http://api.facebook.com/1.0/}id" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="is_hidden" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "stream_post", propOrder = { "postId", "viewerId", "view", "sourceId", "type", "appId", "attribution", "actorId", "targetId", "message", "attachment", "appData", "actionLinks", "comments", "likes", "privacy", "updatedTime", "createdTime", "taggedIds", "isHidden" }) public class StreamPost implements Equals, HashCode, ToString { @XmlElement(name = "post_id", required = true) protected String postId; @XmlElement(name = "viewer_id") protected long viewerId; @XmlElement(required = true) protected String view; @XmlElement(name = "source_id") protected long sourceId; @XmlElement(required = true) protected String type; @XmlElement(name = "app_id") protected long appId; @XmlElement(required = true) protected String attribution; @XmlElement(name = "actor_id") protected long actorId; @XmlElement(name = "target_id") protected long targetId; @XmlElement(required = true) protected String message; @XmlElement(required = true) protected StreamAttachment attachment; @XmlElement(name = "app_data", required = true) protected StreamAppData appData; @XmlElement(name = "action_links", required = true) protected StreamPost.ActionLinks actionLinks; @XmlElement(required = true) protected StreamComments comments; @XmlElement(required = true) protected StreamLikes likes; @XmlElement(required = true) protected String privacy; @XmlElement(name = "updated_time") protected long updatedTime; @XmlElement(name = "created_time") protected long createdTime; @XmlElement(name = "tagged_ids", required = true) protected StreamPost.TaggedIds taggedIds; @XmlElement(name = "is_hidden") protected boolean isHidden; /** * 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; } /** * Gets the value of the viewerId property. * */ public long getViewerId() { return viewerId; } /** * Sets the value of the viewerId property. * */ public void setViewerId(long value) { this.viewerId = value; } /** * Gets the value of the view property. * * @return * possible object is * {@link String } * */ public String getView() { return view; } /** * Sets the value of the view property. * * @param value * allowed object is * {@link String } * */ public void setView(String value) { this.view = value; } /** * Gets the value of the sourceId property. * */ public long getSourceId() { return sourceId; } /** * Sets the value of the sourceId property. * */ public void setSourceId(long value) { this.sourceId = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the appId property. * */ public long getAppId() { return appId; } /** * Sets the value of the appId property. * */ public void setAppId(long value) { this.appId = value; } /** * Gets the value of the attribution property. * * @return * possible object is * {@link String } * */ public String getAttribution() { return attribution; } /** * Sets the value of the attribution property. * * @param value * allowed object is * {@link String } * */ public void setAttribution(String value) { this.attribution = value; } /** * Gets the value of the actorId property. * */ public long getActorId() { return actorId; } /** * Sets the value of the actorId property. * */ public void setActorId(long value) { this.actorId = value; } /** * Gets the value of the targetId property. * */ public long getTargetId() { return targetId; } /** * Sets the value of the targetId property. * */ public void setTargetId(long value) { this.targetId = value; } /** * Gets the value of the message property. * * @return * possible object is * {@link String } * */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value * allowed object is * {@link String } * */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the attachment property. * * @return * possible object is * {@link StreamAttachment } * */ public StreamAttachment getAttachment() { return attachment; } /** * Sets the value of the attachment property. * * @param value * allowed object is * {@link StreamAttachment } * */ public void setAttachment(StreamAttachment value) { this.attachment = value; } /** * Gets the value of the appData property. * * @return * possible object is * {@link StreamAppData } * */ public StreamAppData getAppData() { return appData; } /** * Sets the value of the appData property. * * @param value * allowed object is * {@link StreamAppData } * */ public void setAppData(StreamAppData value) { this.appData = value; } /** * Gets the value of the actionLinks property. * * @return * possible object is * {@link StreamPost.ActionLinks } * */ public StreamPost.ActionLinks getActionLinks() { return actionLinks; } /** * Sets the value of the actionLinks property. * * @param value * allowed object is * {@link StreamPost.ActionLinks } * */ public void setActionLinks(StreamPost.ActionLinks value) { this.actionLinks = value; } /** * Gets the value of the comments property. * * @return * possible object is * {@link StreamComments } * */ public StreamComments getComments() { return comments; } /** * Sets the value of the comments property. * * @param value * allowed object is * {@link StreamComments } * */ public void setComments(StreamComments value) { this.comments = value; } /** * Gets the value of the likes property. * * @return * possible object is * {@link StreamLikes } * */ public StreamLikes getLikes() { return likes; } /** * Sets the value of the likes property. * * @param value * allowed object is * {@link StreamLikes } * */ public void setLikes(StreamLikes value) { this.likes = value; } /** * Gets the value of the privacy property. * * @return * possible object is * {@link String } * */ public String getPrivacy() { return privacy; } /** * Sets the value of the privacy property. * * @param value * allowed object is * {@link String } * */ public void setPrivacy(String value) { this.privacy = 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 createdTime property. * */ public long getCreatedTime() { return createdTime; } /** * Sets the value of the createdTime property. * */ public void setCreatedTime(long value) { this.createdTime = value; } /** * Gets the value of the taggedIds property. * * @return * possible object is * {@link StreamPost.TaggedIds } * */ public StreamPost.TaggedIds getTaggedIds() { return taggedIds; } /** * Sets the value of the taggedIds property. * * @param value * allowed object is * {@link StreamPost.TaggedIds } * */ public void setTaggedIds(StreamPost.TaggedIds value) { this.taggedIds = value; } /** * Gets the value of the isHidden property. * */ public boolean isIsHidden() { return isHidden; } /** * Sets the value of the isHidden property. * */ public void setIsHidden(boolean value) { this.isHidden = value; } public void toString(ToStringBuilder toStringBuilder) { { String thePostId; thePostId = this.getPostId(); toStringBuilder.append("postId", thePostId); } { long theViewerId; theViewerId = this.getViewerId(); toStringBuilder.append("viewerId", theViewerId); } { String theView; theView = this.getView(); toStringBuilder.append("view", theView); } { long theSourceId; theSourceId = this.getSourceId(); toStringBuilder.append("sourceId", theSourceId); } { String theType; theType = this.getType(); toStringBuilder.append("type", theType); } { long theAppId; theAppId = this.getAppId(); toStringBuilder.append("appId", theAppId); } { String theAttribution; theAttribution = this.getAttribution(); toStringBuilder.append("attribution", theAttribution); } { long theActorId; theActorId = this.getActorId(); toStringBuilder.append("actorId", theActorId); } { long theTargetId; theTargetId = this.getTargetId(); toStringBuilder.append("targetId", theTargetId); } { String theMessage; theMessage = this.getMessage(); toStringBuilder.append("message", theMessage); } { StreamAttachment theAttachment; theAttachment = this.getAttachment(); toStringBuilder.append("attachment", theAttachment); } { StreamAppData theAppData; theAppData = this.getAppData(); toStringBuilder.append("appData", theAppData); } { StreamPost.ActionLinks theActionLinks; theActionLinks = this.getActionLinks(); toStringBuilder.append("actionLinks", theActionLinks); } { StreamComments theComments; theComments = this.getComments(); toStringBuilder.append("comments", theComments); } { StreamLikes theLikes; theLikes = this.getLikes(); toStringBuilder.append("likes", theLikes); } { String thePrivacy; thePrivacy = this.getPrivacy(); toStringBuilder.append("privacy", thePrivacy); } { long theUpdatedTime; theUpdatedTime = this.getUpdatedTime(); toStringBuilder.append("updatedTime", theUpdatedTime); } { long theCreatedTime; theCreatedTime = this.getCreatedTime(); toStringBuilder.append("createdTime", theCreatedTime); } { StreamPost.TaggedIds theTaggedIds; theTaggedIds = this.getTaggedIds(); toStringBuilder.append("taggedIds", theTaggedIds); } { boolean theIsHidden; theIsHidden = this.isIsHidden(); toStringBuilder.append("isHidden", theIsHidden); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof StreamPost)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final StreamPost that = ((StreamPost) object); equalsBuilder.append(this.getPostId(), that.getPostId()); equalsBuilder.append(this.getViewerId(), that.getViewerId()); equalsBuilder.append(this.getView(), that.getView()); equalsBuilder.append(this.getSourceId(), that.getSourceId()); equalsBuilder.append(this.getType(), that.getType()); equalsBuilder.append(this.getAppId(), that.getAppId()); equalsBuilder.append(this.getAttribution(), that.getAttribution()); equalsBuilder.append(this.getActorId(), that.getActorId()); equalsBuilder.append(this.getTargetId(), that.getTargetId()); equalsBuilder.append(this.getMessage(), that.getMessage()); equalsBuilder.append(this.getAttachment(), that.getAttachment()); equalsBuilder.append(this.getAppData(), that.getAppData()); equalsBuilder.append(this.getActionLinks(), that.getActionLinks()); equalsBuilder.append(this.getComments(), that.getComments()); equalsBuilder.append(this.getLikes(), that.getLikes()); equalsBuilder.append(this.getPrivacy(), that.getPrivacy()); equalsBuilder.append(this.getUpdatedTime(), that.getUpdatedTime()); equalsBuilder.append(this.getCreatedTime(), that.getCreatedTime()); equalsBuilder.append(this.getTaggedIds(), that.getTaggedIds()); equalsBuilder.append(this.isIsHidden(), that.isIsHidden()); } public boolean equals(Object object) { if (!(object instanceof StreamPost)) { 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.getPostId()); hashCodeBuilder.append(this.getViewerId()); hashCodeBuilder.append(this.getView()); hashCodeBuilder.append(this.getSourceId()); hashCodeBuilder.append(this.getType()); hashCodeBuilder.append(this.getAppId()); hashCodeBuilder.append(this.getAttribution()); hashCodeBuilder.append(this.getActorId()); hashCodeBuilder.append(this.getTargetId()); hashCodeBuilder.append(this.getMessage()); hashCodeBuilder.append(this.getAttachment()); hashCodeBuilder.append(this.getAppData()); hashCodeBuilder.append(this.getActionLinks()); hashCodeBuilder.append(this.getComments()); hashCodeBuilder.append(this.getLikes()); hashCodeBuilder.append(this.getPrivacy()); hashCodeBuilder.append(this.getUpdatedTime()); hashCodeBuilder.append(this.getCreatedTime()); hashCodeBuilder.append(this.getTaggedIds()); hashCodeBuilder.append(this.isIsHidden()); } 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="stream_action_link" type="{http://api.facebook.com/1.0/}stream_action_link" 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 = { "streamActionLink" }) public static class ActionLinks implements Equals, HashCode, ToString { @XmlElement(name = "stream_action_link") protected List streamActionLink; @XmlAttribute protected Boolean list; /** * Gets the value of the streamActionLink 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 streamActionLink property. * *

* For example, to add a new item, do as follows: *

         *    getStreamActionLink().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link StreamActionLink } * * */ public List getStreamActionLink() { if (streamActionLink == null) { streamActionLink = new ArrayList(); } return this.streamActionLink; } /** * 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 theStreamActionLink; theStreamActionLink = this.getStreamActionLink(); toStringBuilder.append("streamActionLink", theStreamActionLink); } { 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 StreamPost.ActionLinks)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final StreamPost.ActionLinks that = ((StreamPost.ActionLinks) object); equalsBuilder.append(this.getStreamActionLink(), that.getStreamActionLink()); equalsBuilder.append(this.isList(), that.isList()); } public boolean equals(Object object) { if (!(object instanceof StreamPost.ActionLinks)) { 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.getStreamActionLink()); 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="id" type="{http://api.facebook.com/1.0/}id" 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 = { "id" }) public static class TaggedIds implements Equals, HashCode, ToString { @XmlElement(type = Long.class) protected List id; @XmlAttribute protected Boolean list; /** * Gets the value of the id 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 id property. * *

* For example, to add a new item, do as follows: *

         *    getId().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List getId() { if (id == null) { id = new ArrayList(); } return this.id; } /** * 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 theId; theId = this.getId(); toStringBuilder.append("id", theId); } { 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 StreamPost.TaggedIds)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final StreamPost.TaggedIds that = ((StreamPost.TaggedIds) object); equalsBuilder.append(this.getId(), that.getId()); equalsBuilder.append(this.isList(), that.isList()); } public boolean equals(Object object) { if (!(object instanceof StreamPost.TaggedIds)) { 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.getId()); hashCodeBuilder.append(this.isList()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy