T
- The sub builder.public abstract static class DataForm.Builder<T extends DataForm.Builder<T>>
extends java.lang.Object
An abstract builder to build simple data forms.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
T |
fields(java.util.Collection<DataForm.Field> fields)
Sets the fields.
|
T |
formType(java.lang.String formType)
Sets the form type.
|
T |
instructions(java.util.Collection<java.lang.String> instructions)
Sets the instructions of the form.
|
T |
items(java.util.Collection<DataForm.Item> items)
Sets the items of the form.
|
T |
pages(java.util.Collection<Page> pages)
Sets the pages of the form.
|
T |
reportedFields(java.util.Collection<DataForm.Field> reportedFields)
Sets the reported fields of the form.
|
T |
title(java.lang.String title)
Sets the title of the form.
|
T |
type(DataForm.Type type)
Sets the type of the form.
|
public final T fields(java.util.Collection<DataForm.Field> fields)
Sets the fields. Fields are appended to the existing fields.
fields
- The fields.public final T formType(java.lang.String formType)
Sets the form type.
formType
- The form type.public final T type(DataForm.Type type)
Sets the type of the form.
type
- The data form type.public final T title(java.lang.String title)
Sets the title of the form.
title
- The title.public final T instructions(java.util.Collection<java.lang.String> instructions)
Sets the instructions of the form.
instructions
- The instructions.public final T pages(java.util.Collection<Page> pages)
Sets the pages of the form.
pages
- The pages.public final T items(java.util.Collection<DataForm.Item> items)
Sets the items of the form.
items
- The items.public final T reportedFields(java.util.Collection<DataForm.Field> reportedFields)
Sets the reported fields of the form.
reportedFields
- The reported fields.Copyright © 2014–2019 XMPP.rocks. All rights reserved.