Class SoftwareInfoForm.Builder
- java.lang.Object
-
- org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm.Builder
-
- Enclosing class:
- SoftwareInfoForm
public static final class SoftwareInfoForm.Builder extends Object
Builder class forSoftwareInfoForm
.
To obtain an instance ofSoftwareInfoForm.Builder
, useSoftwareInfoForm.getBuilder()
method.
Use appropriate setters to include information inside SoftwareInfoForms.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoftwareInfoForm
build()
This method is called to build aSoftwareInfoForm
.SoftwareInfoForm.Builder
setDataForm(DataForm dataForm)
IncludeDataForm
to be encapsulated under SoftwareInfoForm.SoftwareInfoForm.Builder
setIcon(int height, int width, List<MediaElement.Uri> uriList)
This will allow to include Icon using height, width and Uri's as aFormField
.SoftwareInfoForm.Builder
setIcon(MediaElement mediaElement)
This will allow to includeMediaElement
directly as aFormField
.SoftwareInfoForm.Builder
setOS(String os)
Include Operating System's name as aFormField
.SoftwareInfoForm.Builder
setOSVersion(String os_version)
Include Operating System's version as aFormField
.SoftwareInfoForm.Builder
setSoftware(String software)
Include Software name as aFormField
.SoftwareInfoForm.Builder
setSoftwareVersion(String softwareVersion)
Include Software Version as aFormField
.
-
-
-
Method Detail
-
setIcon
public SoftwareInfoForm.Builder setIcon(int height, int width, List<MediaElement.Uri> uriList)
This will allow to include Icon using height, width and Uri's as aFormField
.- Parameters:
height
- Height of the imagewidth
- Width of the imageuriList
- List of URIs- Returns:
- Builder
-
setIcon
public SoftwareInfoForm.Builder setIcon(MediaElement mediaElement)
- Parameters:
mediaElement
- MediaElement to be included- Returns:
- Builder
-
setOS
public SoftwareInfoForm.Builder setOS(String os)
Include Operating System's name as aFormField
.- Parameters:
os
- Name of the OS- Returns:
- Builder
-
setOSVersion
public SoftwareInfoForm.Builder setOSVersion(String os_version)
Include Operating System's version as aFormField
.- Parameters:
os_version
- Version of OS- Returns:
- Builder
-
setSoftware
public SoftwareInfoForm.Builder setSoftware(String software)
Include Software name as aFormField
.- Parameters:
software
- Name of the software- Returns:
- Builder
-
setSoftwareVersion
public SoftwareInfoForm.Builder setSoftwareVersion(String softwareVersion)
Include Software Version as aFormField
.- Parameters:
softwareVersion
- Version of the Software in use- Returns:
- Builder
-
setDataForm
public SoftwareInfoForm.Builder setDataForm(DataForm dataForm)
IncludeDataForm
to be encapsulated under SoftwareInfoForm.- Parameters:
dataForm
- The dataform containing Software Information- Returns:
- Builder
-
build
public SoftwareInfoForm build()
This method is called to build aSoftwareInfoForm
.- Returns:
- Builder
-
-