|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.geolocation.GeolocationPacketExtension
public class GeolocationPacketExtension
This class implements the Geolocation Extension defined in the XEP-0080
| Field Summary | |
|---|---|
static String |
ALT
The name of the geolocation map key corresponding to the altitude in meters above or below sea level (e.g. |
static String |
AREA
The name of the geolocation map key that we use for storing named areas such as a campus or neighborhood (e.g. |
static String |
BEARING
The name of the geolocation map key that we use for storing GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north. |
static String |
BUILDING
The name of the geolocation map key that we use for indicating a specific building on a street or in an area (e.g. |
static String |
COUNTRY
The name of the geolocation map key that we use for indicating the nation where the user is located (e.g. |
static String |
DATUM
GPS datum. |
static String |
DESCRIPTION
The name of the geolocation map key that we use for storing a natural-language name for or description of a given location (e.g. |
static String |
ERROR
The name of the geolocation map key that we use for storing horizontal GPS errors in arc minutes (e.g. |
static String |
FLOOR
The name of the geolocation map key that we use for storing a particular floor in a building (e.g. |
static String |
LAT
The name of the geolocation map key that we use for storing geographic latitude in decimal degrees North (e.g. |
static String |
LOCALITY
The name of the geolocation map key that we use for indicating a locality within the administrative region, such as a town or city (e.g. |
static String |
LON
The name of the geolocation map key that we use for indicating longitude in decimal degrees East (e.g. |
static String |
POSTALCODE
The name of the geolocation map key that we use for storing post codes (or any code used for postal delivery) (e.g. |
static String |
REGION
The name of the geolocation map key that we use for indicating an administrative region of the nation, such as a state or province (e.g. |
static String |
ROOM
The name of the geolocation map key that we use for indicating a particular room in a building (e.g. |
static String |
STREET
The name of the geolocation map key that we use for storing a thoroughfare within a locality, or a crossing of two thoroughfares (e.g. |
static String |
TEXT
The name of the geolocation map key that we use to indicate a catch-all element that captures any other information about the location (e.g. |
static String |
TIMESTAMP
The name of the geolocation map key that we use to indicate UTC timestamp specifying the moment when the reading was taken (e.g. |
| Constructor Summary | |
|---|---|
GeolocationPacketExtension()
|
|
| Method Summary | |
|---|---|
boolean |
containsLatLon()
Test if latitude and longitude are set. |
float |
getAlt()
Returns altitude in meters above or below sea level. |
String |
getArea()
A named area such as a campus or neighborhood. |
float |
getBearing()
Returns GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north. |
String |
getBuilding()
Returns the name of a specific building on a street or in an area. |
String |
getCountry()
Return the nation where the user is located. |
String |
getDatum()
Return the value of GPS Datum. |
String |
getDescription()
Returns a natural-language name for or description of a this location. |
String |
getElementName()
Returns the XML element name of the extension sub-packet root element. |
float |
getError()
Returns horizontal GPS errors in arc minutes. |
String |
getFloor()
The number or name of a a particular floor in a building. |
float |
getLat()
Returns geographic latitude in decimal degrees North. |
String |
getLocality()
Returns a locality within the administrative region, such as a town or city. |
float |
getLon()
Returns a float containing the longitude in decimal degrees East (e.g. |
String |
getNamespace()
Returns the XML namespace of the extension sub-packet root element. |
String |
getPostalCode()
Returns a postal code (or any code used for postal delivery). |
String |
getRegion()
Returns an administrative region of the nation, such as a state or province (e.g. |
String |
getRoom()
Returns a String indicating a particular room in a building. |
String |
getStreet()
Returns a String indicating a thoroughfare within a locality, or a crossing of two thoroughfares. |
String |
getText()
Returns a String stored in the "Text" element of the geolocation details. |
String |
getTimestamp()
Returns a String containing a UTC timestamp specifying the moment when the reading was taken. |
void |
setAlt(float alt)
Sets the altitude in meters above or below sea level. |
void |
setAlt(String alt)
Sets the altitude in meters above or below sea level. |
void |
setArea(String area)
Sets the value of a named area such as a campus or neighborhood. |
void |
setBearing(float bearing)
Sets GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north. |
void |
setBearing(String bearing)
Sets GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north. |
void |
setBuilding(String building)
Sets the name of a specific building on a street or in an area. |
void |
setCountry(String country)
Sets the name of the nation where the user is located. |
void |
setDatum(String datum)
Sets the value of GPS Datum. |
void |
setDescription(String description)
Sets a natural-language name for or description of a this location. |
void |
setError(float error)
Sets the value of horizontal GPS errors in arc minutes. |
void |
setError(String error)
Sets the value of horizontal GPS errors in arc minutes. |
void |
setFloor(String floor)
Sets the number or name of a a particular floor in a building. |
void |
setLat(float lat)
Sets geographic latitude in decimal degrees North. |
void |
setLat(String lat)
Sets geographic latitude in decimal degrees North. |
void |
setLocality(String locality)
Sets a locality within the administrative region, such as a town or city. |
void |
setLon(float lon)
Sets the longitude in decimal degrees East. |
void |
setLon(String lon)
Sets the longitude in decimal degrees East. |
void |
setPostalCode(String postalCode)
Sets a postal code (or any code used for postal delivery). |
void |
setRegion(String region)
Sets an administrative region of the nation, such as a state or province (e.g. |
void |
setRoom(String room)
Sets the name or number indicating a particular room in a building. |
void |
setStreet(String street)
Sets the name of a street. |
void |
setText(String text)
Sets a String to store in the "Text" element of the geolocation details. |
void |
setTimestamp(String timestamp)
Set timestamp in UTC format as described in XEP-0082: XMPP Date and Time Profiles |
String |
toXML()
Returns the XML representation of the PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALT
public static final String AREA
public static final String BEARING
public static final String BUILDING
public static final String COUNTRY
public static final String DATUM
public static final String DESCRIPTION
public static final String ERROR
public static final String FLOOR
public static final String LAT
public static final String LOCALITY
public static final String LON
public static final String POSTALCODE
public static final String REGION
public static final String ROOM
public static final String STREET
public static final String TEXT
public static final String TIMESTAMP
| Constructor Detail |
|---|
public GeolocationPacketExtension()
| Method Detail |
|---|
public String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtensionpublic String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionpublic String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic float getAlt()
public void setAlt(float alt)
alt - the altitude in meters above or belos sea level (e.g. 1609).public void setAlt(String alt)
alt - the altitude in meters above or belos sea level (e.g. 1609).public String getArea()
public void setArea(String area)
area - the value of a named area such as a campus or neighborhood.public float getBearing()
public void setBearing(float bearing)
bearing - a float value indicating GPS bearing (direction in which
the entity is heading to reach its next waypoint), measured in decimal
degrees relative to true north.public void setBearing(String bearing)
bearing - a String value indicating GPS bearing (direction in which
the entity is heading to reach its next waypoint), measured in decimal
degrees relative to true north.public String getBuilding()
public void setBuilding(String building)
building - a String indicating the name of a specific building on
a street or in an area (e.g. The Empire State Building).public String getCountry()
public void setCountry(String country)
country - a String containing the name of the nation where the user
is located (e.g. Greenland).public String getDatum()
public void setDatum(String datum)
datum - the value of GPS Datum.public String getDescription()
public void setDescription(String description)
description - a java.lang.String containing a
natural-language description of this location (e.g. Bill's house)public float getError()
public void setError(float error)
error - a float indicating horizontal GPS errors in arc minutes
(e.g. 10).public void setError(String error)
error - a String indicating horizontal GPS errors in arc minutes
(e.g. 10).public String getFloor()
public void setFloor(String floor)
floor - a String indicating the number or name of a
particular floor in a building (e.g. 102)public float getLat()
public void setLat(float lat)
lat - a float value indicating geographic latitude in
decimal degrees (e.g. 39.75).public void setLat(String lat)
lat - a String value indicating geographic latitude in
decimal degrees (e.g. 39.75).public String getLocality()
public void setLocality(String locality)
locality - a String indicating a locality within the
administrative region (e.g. Paris).public float getLon()
public void setLon(float lon)
lon - a float containing the longitude in decimal degrees
East (e.g. -104.99).public void setLon(String lon)
lon - a String containing the longitude in decimal degrees
East (e.g. -104.99).public String getPostalCode()
public void setPostalCode(String postalCode)
postalCode - a String containing the value of a postal or
zip code (e.g. 67000).public String getRegion()
public void setRegion(String region)
region - a String indicating an administrative region of
the nation, such as a state or province (e.g. Ile de France).public String getRoom()
public void setRoom(String room)
room - a String indicating the name ornumber a particular
room in a building (e.g. C-425).public String getStreet()
public void setStreet(String street)
street - a String indicating a thoroughfare within a
locality, or a crossing of two thoroughfares (e.g. 34th and Broadway).public String getText()
public void setText(String text)
text - a String stored in the "Text" element of the
geolocation details.public String getTimestamp()
public void setTimestamp(String timestamp)
timestamp - the timestamp in UTC format (e.g. 2007-05-27T21:12Z).public boolean containsLatLon()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||