Class GeoLocation
java.lang.Object
org.jivesoftware.smackx.geoloc.packet.GeoLocation
- All Implemented Interfaces:
Serializable,org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement,FormFieldChildElement
public final class GeoLocation
extends Object
implements Serializable, org.jivesoftware.smack.packet.ExtensionElement, FormFieldChildElement
A GeoLocation Extension packet, which is used by the XMPP clients to exchange their respective geographic locations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis class defines a builder class forGeoLocation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final GeoLocationstatic final Stringstatic final QName -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoLocation.Builderbuilder()Returns a new instance ofGeoLocation.Builder.booleanstatic GeoLocationfrom(org.jivesoftware.smack.packet.Message message) Returns the first GeoLocation, ornullif it doesn't exist inMessage.static GeoLocationReturns the first GeoLocation, ornullif it doesn't exist inFormField.getAlt()getArea()getDatum()getError()Deprecated.getFloor()getLat()getLon()getQName()getRoom()getSpeed()getText()getTzo()getUri()inthashCode()booleantoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smackx.xdata.FormFieldChildElement
checkConsistency, mustBeOnlyOfHisKind, requiresNoTypeSet, validateMethods 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:
getQNamein interfaceorg.jivesoftware.smack.packet.XmlElement
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
hashCode
public int hashCode() -
equals
-
builder
Returns a new instance ofGeoLocation.Builder.- Returns:
- Builder
-
isExclusiveElement
public boolean isExclusiveElement()- Specified by:
isExclusiveElementin interfaceFormFieldChildElement
-
from
Returns the first GeoLocation, ornullif it doesn't exist inMessage.- Parameters:
message- The Message stanza containing GeoLocation- Returns:
- GeoLocation
-
from
- Parameters:
formField- the Formfield containing GeoLocation- Returns:
- GeoLocation
-
getAccuracy()instead.