Class SoftwareInfoForm
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.form.FilledForm
-
- org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm
-
- All Implemented Interfaces:
FormReader
public final class SoftwareInfoForm extends FilledForm
Form
that contains the software information.
Instance ofSoftwareInfoForm
can be created usingSoftwareInfoForm.Builder.build()
method.
To obtain an instance ofSoftwareInfoForm.Builder
, usegetBuilder()
method.
An example to illustrate is provided inside SoftwareInfoFormTest inside the test package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoftwareInfoForm.Builder
Builder class forSoftwareInfoForm
.
-
Field Summary
Fields Modifier and Type Field Description static String
FORM_TYPE
static String
ICON
static String
OS
static String
OS_VERSION
static String
SOFTWARE
static String
SOFTWARE_VERSION
-
Fields inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
formTypeFormField
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SoftwareInfoForm.Builder
getBuilder()
Returns a new instance ofSoftwareInfoForm.Builder
.MediaElement
getIcon()
Returns the software icon if used by client.String
getOS()
Returns name of the OS used by client.String
getOSVersion()
Returns version of the OS used by client.String
getSoftwareName()
Returns name of the software used by client.String
getSoftwareVersion()
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 Detail
-
FORM_TYPE
public static final String FORM_TYPE
- See Also:
- Constant Field Values
-
OS
public static final String OS
- See Also:
- Constant Field Values
-
OS_VERSION
public static final String OS_VERSION
- See Also:
- Constant Field Values
-
SOFTWARE
public static final String SOFTWARE
- See Also:
- Constant Field Values
-
SOFTWARE_VERSION
public static final String SOFTWARE_VERSION
- See Also:
- Constant Field Values
-
ICON
public static final String ICON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOSVersion
public String getOSVersion()
Returns version of the OS used by client.- Returns:
- os_version
-
getSoftwareName
public String getSoftwareName()
Returns name of the software used by client.- Returns:
- software
-
getSoftwareVersion
public String getSoftwareVersion()
Returns version of the software used by client.- Returns:
- software_version
-
getIcon
public MediaElement getIcon()
Returns the software icon if used by client.- Returns:
MediaElement
MediaElement or null
-
getBuilder
public static SoftwareInfoForm.Builder getBuilder()
Returns a new instance ofSoftwareInfoForm.Builder
.- Returns:
- Builder
-
-