com.google.code.facebookapi.schema.ObjectAssociation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of facebook-java-api-schema Show documentation
Show all versions of facebook-java-api-schema Show documentation
Generated classes from XSD Schema
//
// 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 object_association complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="object_association">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="id1" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="id2" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="data" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="time" type="{http://api.facebook.com/1.0/}time"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "object_association", propOrder = {
"name",
"id1",
"id2",
"data",
"time"
})
public class ObjectAssociation
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected String name;
protected long id1;
protected long id2;
@XmlElement(required = true)
protected String data;
protected long time;
/**
* 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 id1 property.
*
*/
public long getId1() {
return id1;
}
/**
* Sets the value of the id1 property.
*
*/
public void setId1(long value) {
this.id1 = value;
}
/**
* Gets the value of the id2 property.
*
*/
public long getId2() {
return id2;
}
/**
* Sets the value of the id2 property.
*
*/
public void setId2(long value) {
this.id2 = value;
}
/**
* Gets the value of the data property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getData() {
return data;
}
/**
* Sets the value of the data property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setData(String value) {
this.data = 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;
}
public void toString(ToStringBuilder toStringBuilder) {
{
String theName;
theName = this.getName();
toStringBuilder.append("name", theName);
}
{
long theId1;
theId1 = this.getId1();
toStringBuilder.append("id1", theId1);
}
{
long theId2;
theId2 = this.getId2();
toStringBuilder.append("id2", theId2);
}
{
String theData;
theData = this.getData();
toStringBuilder.append("data", theData);
}
{
long theTime;
theTime = this.getTime();
toStringBuilder.append("time", theTime);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof ObjectAssociation)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final ObjectAssociation that = ((ObjectAssociation) object);
equalsBuilder.append(this.getName(), that.getName());
equalsBuilder.append(this.getId1(), that.getId1());
equalsBuilder.append(this.getId2(), that.getId2());
equalsBuilder.append(this.getData(), that.getData());
equalsBuilder.append(this.getTime(), that.getTime());
}
public boolean equals(Object object) {
if (!(object instanceof ObjectAssociation)) {
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.getName());
hashCodeBuilder.append(this.getId1());
hashCodeBuilder.append(this.getId2());
hashCodeBuilder.append(this.getData());
hashCodeBuilder.append(this.getTime());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy