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
Formthat contains the software information.
Instance ofSoftwareInfoFormcan 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 classSoftwareInfoForm.BuilderBuilder class forSoftwareInfoForm.
-
Field Summary
Fields Modifier and Type Field Description static StringFORM_TYPEstatic StringICONstatic StringOSstatic StringOS_VERSIONstatic StringSOFTWAREstatic StringSOFTWARE_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 booleanequals(Object obj)static SoftwareInfoForm.BuildergetBuilder()Returns a new instance ofSoftwareInfoForm.Builder.MediaElementgetIcon()Returns the software icon if used by client.StringgetOS()Returns name of the OS used by client.StringgetOSVersion()Returns version of the OS used by client.StringgetSoftwareName()Returns name of the software used by client.StringgetSoftwareVersion()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, 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:
MediaElementMediaElement or null
-
getBuilder
public static SoftwareInfoForm.Builder getBuilder()
Returns a new instance ofSoftwareInfoForm.Builder.- Returns:
- Builder
-
-