com.evdb.javaapi.data
Class Location

java.lang.Object
  extended by com.evdb.javaapi.data.Location

public class Location
extends java.lang.Object

Data representation of the Location object Mapped from XML using JAXB

Author:
tylerv

Constructor Summary
Location()
           
 
Method Summary
 java.lang.String getCity()
           
 java.lang.String getCountry()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getMetro()
           
 java.lang.String getOriginal()
           
 java.lang.String getPostalCode()
           
 java.lang.String getRegion()
           
 void setCity(java.lang.String city)
           
 void setCountry(java.lang.String country)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setMetro(java.lang.String metro)
           
 void setOriginal(java.lang.String original)
           
 void setPostalCode(java.lang.String postalCode)
           
 void setRegion(java.lang.String region)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location()
Method Detail

getOriginal

public java.lang.String getOriginal()
Returns:
The original request that we were asked to resolve

setOriginal

public void setOriginal(java.lang.String original)
Parameters:
original - the original to set

getPostalCode

public java.lang.String getPostalCode()
Returns:
The postal code of the location

setPostalCode

public void setPostalCode(java.lang.String postalCode)
Parameters:
postalCode - the postalCode to set

getCity

public java.lang.String getCity()
Returns:
The city name of the location

setCity

public void setCity(java.lang.String city)
Parameters:
city - the city name to set

getMetro

public java.lang.String getMetro()
Returns:
Metro Name, only returned if the city is in a metro

setMetro

public void setMetro(java.lang.String metro)
Parameters:
metro - the metro name to set

getRegion

public java.lang.String getRegion()
Returns:
Region name

setRegion

public void setRegion(java.lang.String region)
Parameters:
region - the region name to set

getCountry

public java.lang.String getCountry()
Returns:
Country name

setCountry

public void setCountry(java.lang.String country)
Parameters:
country - the country name to set

getLatitude

public double getLatitude()
Returns:
Latitude of the location, only applies to cities and postal codes

setLatitude

public void setLatitude(double latitude)
Parameters:
latitude - the latitude to set

getLongitude

public double getLongitude()
Returns:
Longitude of the location, only applies to cities and postal codes

setLongitude

public void setLongitude(double longitude)
Parameters:
longitude - the longitude to set


Copyright © 2007 Eventful Inc. All Rights Reserved.