Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2010.07.14 at 01:45:55 PM PDT 
  //
  
  
  package com.google.code.facebookapi.schema;
 

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>
 
 
 @XmlType(name = "work_info", propOrder = {
     "location",
     "companyName",
     "position",
     "description",
     "startDate",
     "endDate"
 })
 public class WorkInfo
     implements EqualsHashCodeToString
 {
 
     @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.

Returns:
possible object is
 
     public Location getLocation() {
         return ;
     }

    
Sets the value of the location property.

Parameters:
value allowed object is
 
     public void setLocation(Location value) {
         this. = value;
     }

    
Gets the value of the companyName property.

Returns:
possible object is
    public String getCompanyName() {
        return ;
    }

    
Sets the value of the companyName property.

Parameters:
value allowed object is
    public void setCompanyName(String value) {
        this. = value;
    }

    
Gets the value of the position property.

Returns:
possible object is
    public String getPosition() {
        return ;
    }

    
Sets the value of the position property.

Parameters:
value allowed object is
    public void setPosition(String value) {
        this. = value;
    }

    
Gets the value of the description property.

Returns:
possible object is
    public String getDescription() {
        return ;
    }

    
Sets the value of the description property.

Parameters:
value allowed object is
    public void setDescription(String value) {
        this. = value;
    }

    
Gets the value of the startDate property.

Returns:
possible object is
    public String getStartDate() {
        return ;
    }

    
Sets the value of the startDate property.

Parameters:
value allowed object is
    public void setStartDate(String value) {
        this. = value;
    }

    
Gets the value of the endDate property.

Returns:
possible object is
    public String getEndDate() {
        return ;
    }

    
Sets the value of the endDate property.

Parameters:
value allowed object is
    public void setEndDate(String value) {
        this. = 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 objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof WorkInfo)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final WorkInfo that = ((WorkInfoobject);
        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(objectequalsBuilder);
        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();
    }
New to GrepCode? Check out our FAQ X