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
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 GeoLocationReturns the first GeoLocation, ornullif it doesn't exist inMessage.static GeoLocationReturns the first GeoLocation, ornullif 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()inthashCode()booleantoXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 interfaceXmlElement
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
toXML
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
hashCode
-
equals
-
builder
Returns a new instance ofGeoLocation.Builder.- Returns:
- Builder
-
isExclusiveElement
- Specified by:
isExclusiveElementin interfaceFormFieldChildElement
-
from
- Parameters:
message- The Message stanza containing GeoLocation- Returns:
- GeoLocation
-
from
- Parameters:
formField- the Formfield containing GeoLocation- Returns:
- GeoLocation
-
getAccuracy()instead.