Class SoftwareInfoForm.Builder
java.lang.Object
org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm.Builder
- Enclosing class:
- SoftwareInfoForm
Builder class for
To obtain an instance of
Use appropriate setters to include information inside SoftwareInfoForms.
SoftwareInfoForm
.
To obtain an instance of
SoftwareInfoForm.Builder
, use SoftwareInfoForm.getBuilder()
method.
Use appropriate setters to include information inside SoftwareInfoForms.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
This method is called to build aSoftwareInfoForm
.setDataForm
(DataForm dataForm) IncludeDataForm
to be encapsulated under SoftwareInfoForm.setIcon
(int height, int width, List<MediaElement.Uri> uriList) This will allow to include Icon using height, width and Uri's as aFormField
.setIcon
(MediaElement mediaElement) This will allow to includeMediaElement
directly as aFormField
.Include Operating System's name as aFormField
.setOSVersion
(String os_version) Include Operating System's version as aFormField
.setSoftware
(String software) Include Software name as aFormField
.setSoftwareVersion
(String softwareVersion) Include Software Version as aFormField
.
-
Method Details
-
setIcon
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
- Parameters:
mediaElement
- MediaElement to be included- Returns:
- Builder
-
setOS
Include Operating System's name as aFormField
.- Parameters:
os
- Name of the OS- Returns:
- Builder
-
setOSVersion
Include Operating System's version as aFormField
.- Parameters:
os_version
- Version of OS- Returns:
- Builder
-
setSoftware
Include Software name as aFormField
.- Parameters:
software
- Name of the software- Returns:
- Builder
-
setSoftwareVersion
Include Software Version as aFormField
.- Parameters:
softwareVersion
- Version of the Software in use- Returns:
- Builder
-
setDataForm
IncludeDataForm
to be encapsulated under SoftwareInfoForm.- Parameters:
dataForm
- The dataform containing Software Information- Returns:
- Builder
-
build
This method is called to build aSoftwareInfoForm
.- Returns:
- Builder
-