com.google.code.facebookapi.schema.WorkInfo 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 work_info complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="work_info">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="location" type="{http://api.facebook.com/1.0/}location"/>
* <element name="company_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="position" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="start_date" type="{http://api.facebook.com/1.0/}date"/>
* <element name="end_date" type="{http://api.facebook.com/1.0/}date"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "work_info", propOrder = {
"location",
"companyName",
"position",
"description",
"startDate",
"endDate"
})
public class WorkInfo
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected Location location;
@XmlElement(name = "company_name", required = true)
protected String companyName;
@XmlElement(required = true)
protected String position;
@XmlElement(required = true)
protected String description;
@XmlElement(name = "start_date", required = true)
protected String startDate;
@XmlElement(name = "end_date", required = true)
protected String endDate;
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link Location }
*
*/
public Location getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link Location }
*
*/
public void setLocation(Location value) {
this.location = value;
}
/**
* Gets the value of the companyName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Sets the value of the companyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Gets the value of the position property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPosition() {
return position;
}
/**
* Sets the value of the position property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPosition(String value) {
this.position = 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 startDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStartDate() {
return startDate;
}
/**
* Sets the value of the startDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStartDate(String value) {
this.startDate = value;
}
/**
* Gets the value of the endDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEndDate() {
return endDate;
}
/**
* Sets the value of the endDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEndDate(String value) {
this.endDate = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
Location theLocation;
theLocation = this.getLocation();
toStringBuilder.append("location", theLocation);
}
{
String theCompanyName;
theCompanyName = this.getCompanyName();
toStringBuilder.append("companyName", theCompanyName);
}
{
String thePosition;
thePosition = this.getPosition();
toStringBuilder.append("position", thePosition);
}
{
String theDescription;
theDescription = this.getDescription();
toStringBuilder.append("description", theDescription);
}
{
String theStartDate;
theStartDate = this.getStartDate();
toStringBuilder.append("startDate", theStartDate);
}
{
String theEndDate;
theEndDate = this.getEndDate();
toStringBuilder.append("endDate", theEndDate);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof WorkInfo)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final WorkInfo that = ((WorkInfo) object);
equalsBuilder.append(this.getLocation(), that.getLocation());
equalsBuilder.append(this.getCompanyName(), that.getCompanyName());
equalsBuilder.append(this.getPosition(), that.getPosition());
equalsBuilder.append(this.getDescription(), that.getDescription());
equalsBuilder.append(this.getStartDate(), that.getStartDate());
equalsBuilder.append(this.getEndDate(), that.getEndDate());
}
public boolean equals(Object object) {
if (!(object instanceof WorkInfo)) {
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.getLocation());
hashCodeBuilder.append(this.getCompanyName());
hashCodeBuilder.append(this.getPosition());
hashCodeBuilder.append(this.getDescription());
hashCodeBuilder.append(this.getStartDate());
hashCodeBuilder.append(this.getEndDate());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy