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 location complex type.

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

 <complexType name="location">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="street" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="state" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="country" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="zip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="latitude" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
         <element name="longitude" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "location", propOrder = {
     "street",
     "city",
     "state",
     "country",
     "zip",
     "latitude",
     "longitude"
 })
 public class Location
     implements EqualsHashCodeToString
 {
 
     protected String street;
     @XmlElement(required = true)
     protected String city;
     @XmlElement(required = true)
     protected String state;
     @XmlElement(required = true)
     protected String country;
     protected String zip;
     protected BigDecimal latitude;
     protected BigDecimal longitude;

    
Gets the value of the street property.

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

    
Sets the value of the street property.

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

    
Gets the value of the city property.

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

    
Sets the value of the city property.

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

    
Gets the value of the state property.

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

    
Sets the value of the state property.

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

    
Gets the value of the country property.

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

    
Sets the value of the country property.

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

    
Gets the value of the zip property.

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

    
Sets the value of the zip property.

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

    
Gets the value of the latitude property.

Returns:
possible object is
    public BigDecimal getLatitude() {
        return ;
    }

    
Sets the value of the latitude property.

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

    
Gets the value of the longitude property.

Returns:
possible object is
    public BigDecimal getLongitude() {
        return ;
    }

    
Sets the value of the longitude property.

Parameters:
value allowed object is
    public void setLongitude(BigDecimal value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String theStreet;
            theStreet = this.getStreet();
            toStringBuilder.append("street"theStreet);
        }
        {
            String theCity;
            theCity = this.getCity();
            toStringBuilder.append("city"theCity);
        }
        {
            String theState;
            theState = this.getState();
            toStringBuilder.append("state"theState);
        }
        {
            String theCountry;
            theCountry = this.getCountry();
            toStringBuilder.append("country"theCountry);
        }
        {
            String theZip;
            theZip = this.getZip();
            toStringBuilder.append("zip"theZip);
        }
        {
            BigDecimal theLatitude;
            theLatitude = this.getLatitude();
            toStringBuilder.append("latitude"theLatitude);
        }
        {
            BigDecimal theLongitude;
            theLongitude = this.getLongitude();
            toStringBuilder.append("longitude"theLongitude);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof Location)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final Location that = ((Locationobject);
        equalsBuilder.append(this.getStreet(), that.getStreet());
        equalsBuilder.append(this.getCity(), that.getCity());
        equalsBuilder.append(this.getState(), that.getState());
        equalsBuilder.append(this.getCountry(), that.getCountry());
        equalsBuilder.append(this.getZip(), that.getZip());
        equalsBuilder.append(this.getLatitude(), that.getLatitude());
        equalsBuilder.append(this.getLongitude(), that.getLongitude());
    }
    public boolean equals(Object object) {
        if (!(object instanceof Location)) {
            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.getStreet());
        hashCodeBuilder.append(this.getCity());
        hashCodeBuilder.append(this.getState());
        hashCodeBuilder.append(this.getCountry());
        hashCodeBuilder.append(this.getZip());
        hashCodeBuilder.append(this.getLatitude());
        hashCodeBuilder.append(this.getLongitude());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }
New to GrepCode? Check out our FAQ X