org.geonames
Class Toponym

java.lang.Object
  extended by org.geonames.Toponym

public class Toponym
extends Object

a GeoNames toponym

Author:
marc@geonames

Constructor Summary
Toponym()
           
 
Method Summary
 String getAdminCode1()
           
 String getAdminCode2()
           
 String getAdminCode3()
           
 String getAdminCode4()
           
 String getAdminName1()
           
 String getAdminName2()
           
 String getAlternateNames()
          alternate names of this place as comma separated list
 String getContinentCode()
           
 String getCountryCode()
           
 String getCountryName()
           
 Integer getElevation()
           
 FeatureClass getFeatureClass()
          the feature class FeatureClass
 String getFeatureClassName()
           
 String getFeatureCode()
           
 String getFeatureCodeName()
           
 int getGeoNameId()
           
 double getLatitude()
          latitude in decimal degrees (wgs84)
 double getLongitude()
          longitude in decimal degrees (wgs84)
 String getName()
           
 Long getPopulation()
           
 Style getStyle()
           
 Timezone getTimezone()
           
 void setAdminCode1(String adminCode1)
           
 void setAdminCode2(String adminCode2)
           
 void setAdminCode3(String adminCode3)
           
 void setAdminCode4(String adminCode4)
           
 void setAdminName1(String adminName1)
           
 void setAdminName2(String adminName2)
           
 void setAlternateNames(String alternateNames)
           
 void setContinentCode(String continentCode)
           
 void setCountryCode(String countryCode)
           
 void setCountryName(String countryName)
           
 void setElevation(Integer elevation)
           
 void setFeatureClass(FeatureClass featureClass)
           
 void setFeatureClassName(String featureClassName)
           
 void setFeatureCode(String featureCode)
           
 void setFeatureCodeName(String featureCodeName)
           
 void setGeoNameId(int geonameId)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setName(String name)
           
 void setPopulation(Long population)
           
 void setStyle(Style style)
           
 void setTimezone(Timezone timezone)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Toponym

public Toponym()
Method Detail

getContinentCode

public String getContinentCode()
Returns:
the continentCode

setContinentCode

public void setContinentCode(String continentCode)
Parameters:
continentCode - the continentCode to set

getCountryCode

public String getCountryCode()
Returns:
Returns the ISO 3166-1-alpha-2 countryCode.

setCountryCode

public void setCountryCode(String countryCode)
Parameters:
countryCode - The ISO 3166-1-alpha-2 countryCode to set.

getElevation

public Integer getElevation()
                     throws InsufficientStyleException
Returns:
Returns the elevation in meter.
Throws:
InsufficientStyleException

setElevation

public void setElevation(Integer elevation)
Parameters:
elevation - The elevation im meter to set.

getFeatureClass

public FeatureClass getFeatureClass()
the feature class FeatureClass

Returns:
Returns the featureClass.
See Also:
GeoNames Feature Codes

setFeatureClass

public void setFeatureClass(FeatureClass featureClass)
Parameters:
featureClass - The featureClass to set.

getFeatureCode

public String getFeatureCode()
Returns:
Returns the featureCode.
See Also:
GeoNames Feature Codes

setFeatureCode

public void setFeatureCode(String featureCode)
Parameters:
featureCode - The featureCode to set.

getLatitude

public double getLatitude()
latitude in decimal degrees (wgs84)

Returns:
Returns the latitude.

setLatitude

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

getLongitude

public double getLongitude()
longitude in decimal degrees (wgs84)

Returns:
Returns the longitude.

setLongitude

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

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getPopulation

public Long getPopulation()
                   throws InsufficientStyleException
Returns:
Returns the population.
Throws:
InsufficientStyleException

setPopulation

public void setPopulation(Long population)
Parameters:
population - The population to set.

getGeoNameId

public int getGeoNameId()
Returns:
Returns the geoNameId.

setGeoNameId

public void setGeoNameId(int geonameId)
Parameters:
geoNameId - The geoNameId to set.

getFeatureClassName

public String getFeatureClassName()
Returns:
Returns the featureClassName.

setFeatureClassName

public void setFeatureClassName(String featureClassName)
Parameters:
featureClassName - The featureClassName to set.

getFeatureCodeName

public String getFeatureCodeName()
Returns:
Returns the featureCodeName.

setFeatureCodeName

public void setFeatureCodeName(String featureCodeName)
Parameters:
featureCodeName - The featureCodeName to set.

getCountryName

public String getCountryName()
Returns:
Returns the countryName.

setCountryName

public void setCountryName(String countryName)
Parameters:
countryName - The countryName to set.

getAlternateNames

public String getAlternateNames()
                         throws InsufficientStyleException
alternate names of this place as comma separated list

Returns:
the alternateNames as comma separated list
Throws:
InsufficientStyleException

setAlternateNames

public void setAlternateNames(String alternateNames)
Parameters:
alternateNames - the alternateNames to set

toString

public String toString()
Overrides:
toString in class Object

getAdminCode1

public String getAdminCode1()
                     throws InsufficientStyleException
Returns:
the adminCode1
Throws:
InsufficientStyleException

setAdminCode1

public void setAdminCode1(String adminCode1)
Parameters:
adminCode1 - the adminCode1 to set

getAdminCode2

public String getAdminCode2()
                     throws InsufficientStyleException
Returns:
the adminCode2
Throws:
InsufficientStyleException

setAdminCode2

public void setAdminCode2(String adminCode2)
Parameters:
adminCode2 - the adminCode2 to set

getAdminCode3

public String getAdminCode3()
                     throws InsufficientStyleException
Returns:
the adminCode3
Throws:
InsufficientStyleException

setAdminCode3

public void setAdminCode3(String adminCode3)
Parameters:
adminCode3 - the adminCode3 to set

getAdminCode4

public String getAdminCode4()
                     throws InsufficientStyleException
Returns:
the adminCode4
Throws:
InsufficientStyleException

setAdminCode4

public void setAdminCode4(String adminCode4)
Parameters:
adminCode4 - the adminCode4 to set

getTimezone

public Timezone getTimezone()
                     throws InsufficientStyleException
Returns:
the timezone
Throws:
InsufficientStyleException

setTimezone

public void setTimezone(Timezone timezone)
Parameters:
timezone - the timezone to set

getAdminName1

public String getAdminName1()
                     throws InsufficientStyleException
Returns:
the adminName1
Throws:
InsufficientStyleException

setAdminName1

public void setAdminName1(String adminName1)
Parameters:
adminName1 - the adminName1 to set

getAdminName2

public String getAdminName2()
                     throws InsufficientStyleException
Returns:
the adminName2
Throws:
InsufficientStyleException

setAdminName2

public void setAdminName2(String adminName2)
Parameters:
adminName2 - the adminName2 to set

getStyle

public Style getStyle()
Returns:
the style used when calling the web service that returned this toponym.

setStyle

public void setStyle(Style style)
Parameters:
style - the style to set