pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.geolocation
Class GeoLocation

java.lang.Object
  extended by org.torweg.pulse.util.geolocation.GeoLocation

public class GeoLocation
extends java.lang.Object

represents a GeoLocation, a place on earth.

Version:
$Revision: 1409 $
Author:
Thomas Weber

Nested Class Summary
static class GeoLocation.Coordinates
          Coordinates.
 
Constructor Summary
protected GeoLocation()
          Deprecated. 
  GeoLocation(GeoLocation.Coordinates coords, java.lang.String country, java.lang.String reg, java.lang.String cit, java.lang.String pc)
          creates a new GeoLocation.
 
Method Summary
 java.lang.String getCity()
           
 GeoLocation.Coordinates getCoordinates()
           
 java.lang.String getCountryCode()
           
 java.lang.String getPostalCode()
           
 java.lang.String getRegion()
           
 void setLocale(java.util.Locale l)
          sets the locale for the GeoLocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoLocation

@Deprecated
protected GeoLocation()
Deprecated. 

for JAXB.


GeoLocation

public GeoLocation(GeoLocation.Coordinates coords,
                   java.lang.String country,
                   java.lang.String reg,
                   java.lang.String cit,
                   java.lang.String pc)
creates a new GeoLocation.

Parameters:
coords - the coordinates or null
country - the country code or null
reg - the region or null
cit - the city or null
pc - the postal code or null
Method Detail

setLocale

public final void setLocale(java.util.Locale l)
sets the locale for the GeoLocation.

Parameters:
l - the Locale

getCoordinates

public final GeoLocation.Coordinates getCoordinates()
Returns:
the coordinates or null

getCountryCode

public final java.lang.String getCountryCode()
Returns:
the countryCode or null

getRegion

public final java.lang.String getRegion()
Returns:
the region or null

getCity

public final java.lang.String getCity()
Returns:
the city or null

getPostalCode

public final java.lang.String getPostalCode()
Returns:
the postal code null