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(java.lang.String 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, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, isRequestIQ, setType, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, overrideExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setStanzaId, setTo, toStringpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public Version()
public Version(java.lang.String 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