
com.google.code.facebookapi.schema.StreamAttachment 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 stream_attachment complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="stream_attachment">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="media">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="stream_media" type="{http://api.facebook.com/1.0/}stream_media" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="href" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="caption" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="properties">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="stream_property" type="{http://api.facebook.com/1.0/}stream_property" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="icon" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="fb_object_type" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="fb_object_id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "stream_attachment", propOrder = {
"media",
"name",
"href",
"caption",
"description",
"properties",
"icon",
"fbObjectType",
"fbObjectId"
})
public class StreamAttachment
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected StreamAttachment.Media media;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected String href;
@XmlElement(required = true)
protected String caption;
@XmlElement(required = true)
protected String description;
@XmlElement(required = true)
protected StreamAttachment.Properties properties;
@XmlElement(required = true)
protected String icon;
@XmlElement(name = "fb_object_type", required = true)
protected String fbObjectType;
@XmlElement(name = "fb_object_id", required = true)
protected String fbObjectId;
/**
* Gets the value of the media property.
*
* @return
* possible object is
* {@link StreamAttachment.Media }
*
*/
public StreamAttachment.Media getMedia() {
return media;
}
/**
* Sets the value of the media property.
*
* @param value
* allowed object is
* {@link StreamAttachment.Media }
*
*/
public void setMedia(StreamAttachment.Media value) {
this.media = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
/**
* Gets the value of the caption property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCaption() {
return caption;
}
/**
* Sets the value of the caption property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCaption(String value) {
this.caption = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the properties property.
*
* @return
* possible object is
* {@link StreamAttachment.Properties }
*
*/
public StreamAttachment.Properties getProperties() {
return properties;
}
/**
* Sets the value of the properties property.
*
* @param value
* allowed object is
* {@link StreamAttachment.Properties }
*
*/
public void setProperties(StreamAttachment.Properties value) {
this.properties = value;
}
/**
* Gets the value of the icon property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIcon() {
return icon;
}
/**
* Sets the value of the icon property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIcon(String value) {
this.icon = value;
}
/**
* Gets the value of the fbObjectType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFbObjectType() {
return fbObjectType;
}
/**
* Sets the value of the fbObjectType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFbObjectType(String value) {
this.fbObjectType = value;
}
/**
* Gets the value of the fbObjectId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFbObjectId() {
return fbObjectId;
}
/**
* Sets the value of the fbObjectId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFbObjectId(String value) {
this.fbObjectId = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
StreamAttachment.Media theMedia;
theMedia = this.getMedia();
toStringBuilder.append("media", theMedia);
}
{
String theName;
theName = this.getName();
toStringBuilder.append("name", theName);
}
{
String theHref;
theHref = this.getHref();
toStringBuilder.append("href", theHref);
}
{
String theCaption;
theCaption = this.getCaption();
toStringBuilder.append("caption", theCaption);
}
{
String theDescription;
theDescription = this.getDescription();
toStringBuilder.append("description", theDescription);
}
{
StreamAttachment.Properties theProperties;
theProperties = this.getProperties();
toStringBuilder.append("properties", theProperties);
}
{
String theIcon;
theIcon = this.getIcon();
toStringBuilder.append("icon", theIcon);
}
{
String theFbObjectType;
theFbObjectType = this.getFbObjectType();
toStringBuilder.append("fbObjectType", theFbObjectType);
}
{
String theFbObjectId;
theFbObjectId = this.getFbObjectId();
toStringBuilder.append("fbObjectId", theFbObjectId);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof StreamAttachment)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final StreamAttachment that = ((StreamAttachment) object);
equalsBuilder.append(this.getMedia(), that.getMedia());
equalsBuilder.append(this.getName(), that.getName());
equalsBuilder.append(this.getHref(), that.getHref());
equalsBuilder.append(this.getCaption(), that.getCaption());
equalsBuilder.append(this.getDescription(), that.getDescription());
equalsBuilder.append(this.getProperties(), that.getProperties());
equalsBuilder.append(this.getIcon(), that.getIcon());
equalsBuilder.append(this.getFbObjectType(), that.getFbObjectType());
equalsBuilder.append(this.getFbObjectId(), that.getFbObjectId());
}
public boolean equals(Object object) {
if (!(object instanceof StreamAttachment)) {
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.getMedia());
hashCodeBuilder.append(this.getName());
hashCodeBuilder.append(this.getHref());
hashCodeBuilder.append(this.getCaption());
hashCodeBuilder.append(this.getDescription());
hashCodeBuilder.append(this.getProperties());
hashCodeBuilder.append(this.getIcon());
hashCodeBuilder.append(this.getFbObjectType());
hashCodeBuilder.append(this.getFbObjectId());
}
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_media" type="{http://api.facebook.com/1.0/}stream_media" 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 = {
"streamMedia"
})
public static class Media
implements Equals, HashCode, ToString
{
@XmlElement(name = "stream_media")
protected List streamMedia;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the streamMedia 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 streamMedia property.
*
*
* For example, to add a new item, do as follows:
*
* getStreamMedia().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StreamMedia }
*
*
*/
public List getStreamMedia() {
if (streamMedia == null) {
streamMedia = new ArrayList();
}
return this.streamMedia;
}
/**
* 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 theStreamMedia;
theStreamMedia = this.getStreamMedia();
toStringBuilder.append("streamMedia", theStreamMedia);
}
{
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 StreamAttachment.Media)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final StreamAttachment.Media that = ((StreamAttachment.Media) object);
equalsBuilder.append(this.getStreamMedia(), that.getStreamMedia());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof StreamAttachment.Media)) {
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.getStreamMedia());
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="stream_property" type="{http://api.facebook.com/1.0/}stream_property" 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 = {
"streamProperty"
})
public static class Properties
implements Equals, HashCode, ToString
{
@XmlElement(name = "stream_property")
protected List streamProperty;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the streamProperty 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 streamProperty property.
*
*
* For example, to add a new item, do as follows:
*
* getStreamProperty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StreamProperty }
*
*
*/
public List getStreamProperty() {
if (streamProperty == null) {
streamProperty = new ArrayList();
}
return this.streamProperty;
}
/**
* 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 theStreamProperty;
theStreamProperty = this.getStreamProperty();
toStringBuilder.append("streamProperty", theStreamProperty);
}
{
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 StreamAttachment.Properties)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final StreamAttachment.Properties that = ((StreamAttachment.Properties) object);
equalsBuilder.append(this.getStreamProperty(), that.getStreamProperty());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof StreamAttachment.Properties)) {
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.getStreamProperty());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
}