Class SoftwareInfoForm
java.lang.Object
org.jivesoftware.smackx.xdata.form.FilledForm
org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm
- All Implemented Interfaces:
FormReader
Form
that contains the software information.
Instance of
SoftwareInfoForm
can be created using SoftwareInfoForm.Builder.build()
method.
To obtain an instance of
SoftwareInfoForm.Builder
, use getBuilder()
method.
An example to illustrate is provided inside SoftwareInfoFormTest inside the test package.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
formTypeFormField
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static SoftwareInfoForm.Builder
Returns a new instance ofSoftwareInfoForm.Builder
.getIcon()
Returns the software icon if used by client.getOS()
Returns name of the OS used by client.Returns version of the OS used by client.Returns name of the software used by client.Returns version of the software used by client.int
hashCode()
Methods inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
ensureFormType, getDataForm, getField, getFieldOrThrow, getFormType, getInstructions, getTitle, hasField
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smackx.xdata.form.FormReader
readBoolean, readDate, readFirstValue, readInteger, readStringValues, readValues
-
Field Details
-
FORM_TYPE
- See Also:
-
OS
- See Also:
-
OS_VERSION
- See Also:
-
SOFTWARE
- See Also:
-
SOFTWARE_VERSION
- See Also:
-
ICON
- See Also:
-
-
Method Details
-
getOS
Returns name of the OS used by client.- Returns:
- os
-
getOSVersion
Returns version of the OS used by client.- Returns:
- os_version
-
getSoftwareName
Returns name of the software used by client.- Returns:
- software
-
getSoftwareVersion
Returns version of the software used by client.- Returns:
- software_version
-
getIcon
Returns the software icon if used by client.- Returns:
MediaElement
MediaElement or null
-
equals
-
hashCode
-
getBuilder
Returns a new instance ofSoftwareInfoForm.Builder
.- Returns:
- Builder
-