public class Version
extends org.jivesoftware.smack.packet.IQ
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
Version() |
Version(org.jxmpp.jid.Jid to)
Request version IQ.
|
Version(java.lang.String name,
java.lang.String version) |
Version(java.lang.String name,
java.lang.String version,
java.lang.String os)
Creates a new Version object with given details.
|
Version(Version original) |
Modifier and Type | Method and Description |
---|---|
static Version |
createResultFor(org.jivesoftware.smack.packet.Stanza request,
Version version) |
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml) |
java.lang.String |
getName()
Returns the natural-language name of the software.
|
java.lang.String |
getOs()
Returns the operating system of the queried entity.
|
java.lang.String |
getVersion()
Returns the specific version of the software.
|
void |
setOs(java.lang.String os)
Sets the operating system of the queried entity.
|
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initializeAsResultFor, isRequestIQ, setType, toString, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTo
public static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public Version()
public Version(org.jxmpp.jid.Jid to)
to
- the jid where to request version frompublic Version(java.lang.String name, java.lang.String version)
public Version(java.lang.String name, java.lang.String version, java.lang.String os)
name
- The natural-language name of the software. This element is REQUIRED.version
- The specific version of the software. This element is REQUIRED.os
- The operating system of the queried entity. This element is OPTIONAL.public Version(Version original)
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getOs()
public void setOs(java.lang.String os)
os
- operating system of the queried entity.protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
getIQChildElementBuilder
in class org.jivesoftware.smack.packet.IQ