Class GeoLocation
java.lang.Object
org.jivesoftware.smackx.geoloc.packet.GeoLocation
- All Implemented Interfaces:
Serializable
,Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
,FormFieldChildElement
public final class GeoLocation
extends Object
implements Serializable, ExtensionElement, FormFieldChildElement
A GeoLocation Extension packet, which is used by the XMPP clients to exchange their respective geographic locations.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This class defines a builder class forGeoLocation
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final GeoLocation
static final String
static final QName
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoLocation.Builder
builder()
Returns a new instance ofGeoLocation.Builder
.boolean
static GeoLocation
Returns the first GeoLocation, ornull
if it doesn't exist inMessage
.static GeoLocation
Returns the first GeoLocation, ornull
if it doesn't exist inFormField
.getAlt()
getArea()
getDatum()
Returns the root element name.getError()
Deprecated.getFloor()
getLat()
getLon()
Returns the root element XML namespace.getQName()
getRoom()
getSpeed()
getText()
getTzo()
getUri()
int
hashCode()
boolean
toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smackx.xdata.FormFieldChildElement
checkConsistency, mustBeOnlyOfHisKind, requiresNoTypeSet, validate
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage
-
Field Details
-
NAMESPACE
- See Also:
-
ELEMENT
- See Also:
-
QNAME
-
EMPTY_GEO_LOCATION
-
-
Method Details
-
getAccuracy
-
getAlt
-
getAltAccuracy
-
getArea
-
getBearing
-
getBuilding
-
getCountry
-
getCountryCode
-
getDatum
-
getDescription
-
getError
Deprecated.usegetAccuracy()
instead.Get the error.- Returns:
- the error.
-
getFloor
-
getLat
-
getLocality
-
getLon
-
getPostalcode
-
getRegion
-
getRoom
-
getSpeed
-
getStreet
-
getText
-
getTimestamp
-
getTzo
-
getUri
-
getQName
- Specified by:
getQName
in interfaceXmlElement
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
hashCode
-
equals
-
builder
Returns a new instance ofGeoLocation.Builder
.- Returns:
- Builder
-
isExclusiveElement
- Specified by:
isExclusiveElement
in interfaceFormFieldChildElement
-
from
- Parameters:
message
- The Message stanza containing GeoLocation- Returns:
- GeoLocation
-
from
- Parameters:
formField
- the Formfield containing GeoLocation- Returns:
- GeoLocation
-
getAccuracy()
instead.