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

com.google.code.facebookapi.schema.Event 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-661 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.02.15 at 07:02:48 PM GMT-08:00 
//


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

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

 * <complexType name="event">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="eid" type="{http://api.facebook.com/1.0/}eid"/>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="tagline" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="nid" type="{http://api.facebook.com/1.0/}nid"/>
 *         <element name="pic" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="pic_big" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="pic_small" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="host" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="event_type" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="event_subtype" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="start_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="end_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="creator" type="{http://api.facebook.com/1.0/}id"/>
 *         <element name="update_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="location" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="venue" type="{http://api.facebook.com/1.0/}location"/>
 *         <element name="privacy" type="{http://api.facebook.com/1.0/}privacy"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "event", propOrder = { "eid", "name", "tagline", "nid", "pic", "picBig", "picSmall", "host", "description", "eventType", "eventSubtype", "startTime", "endTime", "creator", "updateTime", "location", "venue", "privacy" }) public class Event implements Equals, HashCode, ToString { protected long eid; @XmlElement(required = true) protected String name; @XmlElement(required = true) protected String tagline; protected int nid; @XmlElement(required = true) protected String pic; @XmlElement(name = "pic_big", required = true) protected String picBig; @XmlElement(name = "pic_small", required = true) protected String picSmall; @XmlElement(required = true) protected String host; @XmlElement(required = true) protected String description; @XmlElement(name = "event_type", required = true) protected String eventType; @XmlElement(name = "event_subtype", required = true) protected String eventSubtype; @XmlElement(name = "start_time") protected long startTime; @XmlElement(name = "end_time") protected long endTime; @XmlElement(required = true, type = Long.class, nillable = true) protected Long creator; @XmlElement(name = "update_time") protected long updateTime; @XmlElement(required = true) protected String location; @XmlElement(required = true) protected Location venue; @XmlElement(required = true) protected Privacy privacy; /** * Gets the value of the eid property. * */ public long getEid() { return eid; } /** * Sets the value of the eid property. * */ public void setEid(long value) { this.eid = 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 tagline property. * * @return * possible object is * {@link String } * */ public String getTagline() { return tagline; } /** * Sets the value of the tagline property. * * @param value * allowed object is * {@link String } * */ public void setTagline(String value) { this.tagline = value; } /** * Gets the value of the nid property. * */ public int getNid() { return nid; } /** * Sets the value of the nid property. * */ public void setNid(int value) { this.nid = value; } /** * Gets the value of the pic property. * * @return * possible object is * {@link String } * */ public String getPic() { return pic; } /** * Sets the value of the pic property. * * @param value * allowed object is * {@link String } * */ public void setPic(String value) { this.pic = value; } /** * Gets the value of the picBig property. * * @return * possible object is * {@link String } * */ public String getPicBig() { return picBig; } /** * Sets the value of the picBig property. * * @param value * allowed object is * {@link String } * */ public void setPicBig(String value) { this.picBig = value; } /** * Gets the value of the picSmall property. * * @return * possible object is * {@link String } * */ public String getPicSmall() { return picSmall; } /** * Sets the value of the picSmall property. * * @param value * allowed object is * {@link String } * */ public void setPicSmall(String value) { this.picSmall = value; } /** * Gets the value of the host property. * * @return * possible object is * {@link String } * */ public String getHost() { return host; } /** * Sets the value of the host property. * * @param value * allowed object is * {@link String } * */ public void setHost(String value) { this.host = 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 eventType property. * * @return * possible object is * {@link String } * */ public String getEventType() { return eventType; } /** * Sets the value of the eventType property. * * @param value * allowed object is * {@link String } * */ public void setEventType(String value) { this.eventType = value; } /** * Gets the value of the eventSubtype property. * * @return * possible object is * {@link String } * */ public String getEventSubtype() { return eventSubtype; } /** * Sets the value of the eventSubtype property. * * @param value * allowed object is * {@link String } * */ public void setEventSubtype(String value) { this.eventSubtype = value; } /** * Gets the value of the startTime property. * */ public long getStartTime() { return startTime; } /** * Sets the value of the startTime property. * */ public void setStartTime(long value) { this.startTime = value; } /** * Gets the value of the endTime property. * */ public long getEndTime() { return endTime; } /** * Sets the value of the endTime property. * */ public void setEndTime(long value) { this.endTime = value; } /** * Gets the value of the creator property. * * @return * possible object is * {@link Long } * */ public Long getCreator() { return creator; } /** * Sets the value of the creator property. * * @param value * allowed object is * {@link Long } * */ public void setCreator(Long value) { this.creator = value; } /** * Gets the value of the updateTime property. * */ public long getUpdateTime() { return updateTime; } /** * Sets the value of the updateTime property. * */ public void setUpdateTime(long value) { this.updateTime = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link String } * */ public String getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link String } * */ public void setLocation(String value) { this.location = value; } /** * Gets the value of the venue property. * * @return * possible object is * {@link Location } * */ public Location getVenue() { return venue; } /** * Sets the value of the venue property. * * @param value * allowed object is * {@link Location } * */ public void setVenue(Location value) { this.venue = value; } /** * Gets the value of the privacy property. * * @return * possible object is * {@link Privacy } * */ public Privacy getPrivacy() { return privacy; } /** * Sets the value of the privacy property. * * @param value * allowed object is * {@link Privacy } * */ public void setPrivacy(Privacy value) { this.privacy = value; } public void toString(ToStringBuilder toStringBuilder) { { long theEid; theEid = this.getEid(); toStringBuilder.append("eid", theEid); } { String theName; theName = this.getName(); toStringBuilder.append("name", theName); } { String theTagline; theTagline = this.getTagline(); toStringBuilder.append("tagline", theTagline); } { int theNid; theNid = this.getNid(); toStringBuilder.append("nid", theNid); } { String thePic; thePic = this.getPic(); toStringBuilder.append("pic", thePic); } { String thePicBig; thePicBig = this.getPicBig(); toStringBuilder.append("picBig", thePicBig); } { String thePicSmall; thePicSmall = this.getPicSmall(); toStringBuilder.append("picSmall", thePicSmall); } { String theHost; theHost = this.getHost(); toStringBuilder.append("host", theHost); } { String theDescription; theDescription = this.getDescription(); toStringBuilder.append("description", theDescription); } { String theEventType; theEventType = this.getEventType(); toStringBuilder.append("eventType", theEventType); } { String theEventSubtype; theEventSubtype = this.getEventSubtype(); toStringBuilder.append("eventSubtype", theEventSubtype); } { long theStartTime; theStartTime = this.getStartTime(); toStringBuilder.append("startTime", theStartTime); } { long theEndTime; theEndTime = this.getEndTime(); toStringBuilder.append("endTime", theEndTime); } { Long theCreator; theCreator = this.getCreator(); toStringBuilder.append("creator", theCreator); } { long theUpdateTime; theUpdateTime = this.getUpdateTime(); toStringBuilder.append("updateTime", theUpdateTime); } { String theLocation; theLocation = this.getLocation(); toStringBuilder.append("location", theLocation); } { Location theVenue; theVenue = this.getVenue(); toStringBuilder.append("venue", theVenue); } { Privacy thePrivacy; thePrivacy = this.getPrivacy(); toStringBuilder.append("privacy", thePrivacy); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Event)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Event that = ((Event) object); equalsBuilder.append(this.getEid(), that.getEid()); equalsBuilder.append(this.getName(), that.getName()); equalsBuilder.append(this.getTagline(), that.getTagline()); equalsBuilder.append(this.getNid(), that.getNid()); equalsBuilder.append(this.getPic(), that.getPic()); equalsBuilder.append(this.getPicBig(), that.getPicBig()); equalsBuilder.append(this.getPicSmall(), that.getPicSmall()); equalsBuilder.append(this.getHost(), that.getHost()); equalsBuilder.append(this.getDescription(), that.getDescription()); equalsBuilder.append(this.getEventType(), that.getEventType()); equalsBuilder.append(this.getEventSubtype(), that.getEventSubtype()); equalsBuilder.append(this.getStartTime(), that.getStartTime()); equalsBuilder.append(this.getEndTime(), that.getEndTime()); equalsBuilder.append(this.getCreator(), that.getCreator()); equalsBuilder.append(this.getUpdateTime(), that.getUpdateTime()); equalsBuilder.append(this.getLocation(), that.getLocation()); equalsBuilder.append(this.getVenue(), that.getVenue()); equalsBuilder.append(this.getPrivacy(), that.getPrivacy()); } public boolean equals(Object object) { if (!(object instanceof Event)) { 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.getEid()); hashCodeBuilder.append(this.getName()); hashCodeBuilder.append(this.getTagline()); hashCodeBuilder.append(this.getNid()); hashCodeBuilder.append(this.getPic()); hashCodeBuilder.append(this.getPicBig()); hashCodeBuilder.append(this.getPicSmall()); hashCodeBuilder.append(this.getHost()); hashCodeBuilder.append(this.getDescription()); hashCodeBuilder.append(this.getEventType()); hashCodeBuilder.append(this.getEventSubtype()); hashCodeBuilder.append(this.getStartTime()); hashCodeBuilder.append(this.getEndTime()); hashCodeBuilder.append(this.getCreator()); hashCodeBuilder.append(this.getUpdateTime()); hashCodeBuilder.append(this.getLocation()); hashCodeBuilder.append(this.getVenue()); hashCodeBuilder.append(this.getPrivacy()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy