net.wimpi.pim.contact.model
Interface GeographicalInformation

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
GeographicalInformationImpl

public interface GeographicalInformation
extends java.io.Serializable

An interface modeling a container for geographical information based on the types and information of the vCard Mime directory profile standard specification.

For reference see RFC 2426:
3.4 Geographical Types
3.4.1 TZ Type Definition
3.4.2 GEO Type Definition

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger

Method Summary
 double getLatitude()
          Returns the latitude of the geographical position.
 double getLongitude()
          Returns the longitude of the geographical position.
 java.util.TimeZone getTimeZone()
          Returns the time zone information.
 void setLatitude(double latitude)
          Sets the latitude of the geographical position.
 void setLongitude(double longitude)
          Sets the longitude of the geographical position.
 void setTimeZone(java.util.TimeZone timezone)
          Sets the time zone informations.
 

Method Detail

getTimeZone

public java.util.TimeZone getTimeZone()
Returns the time zone information.

Returns:
the time zone as TimeZone.

setTimeZone

public void setTimeZone(java.util.TimeZone timezone)
Sets the time zone informations.

Parameters:
timezone - the time zone information as TimeZone.

getLongitude

public double getLongitude()
Returns the longitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Returns:
the longitude as double.

setLongitude

public void setLongitude(double longitude)
Sets the longitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Parameters:
longitude - the longitude as double.

getLatitude

public double getLatitude()
Returns the latitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Returns:
the latitude as double.

setLatitude

public void setLatitude(double latitude)
Sets the latitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Parameters:
latitude - the latitude as double.


Copyright © 2001-2003 jpim team.