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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
formTypeFormField -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SoftwareInfoForm.BuilderReturns 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.inthashCode()Methods inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
ensureFormType, getDataForm, getField, getFieldOrThrow, getFormType, getInstructions, getTitle, hasFieldMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
MediaElementMediaElement or null
-
equals
-
hashCode
-
getBuilder
Returns a new instance ofSoftwareInfoForm.Builder.- Returns:
- Builder
-