public static final class NodeMetaData.Builder extends DataForm.Builder<NodeMetaData.Builder>
A builder class to build the meta data form. If not provided the default data form type is DataForm.Type.RESULT
.
Modifier and Type | Method and Description |
---|---|
NodeMetaData |
build()
Builds the meta data form.
|
NodeMetaData.Builder |
contacts(java.util.Collection<Jid> contacts)
The JIDs of those to contact with questions.
|
NodeMetaData.Builder |
creationDate(java.time.Instant creationDate)
The datetime when the node was created.
|
NodeMetaData.Builder |
creator(Jid creator)
The JID of the node creator.
|
NodeMetaData.Builder |
description(java.lang.String description)
A description of the node.
|
NodeMetaData.Builder |
language(java.util.Locale language)
The default language of the node.
|
NodeMetaData.Builder |
nodeTitle(java.lang.String title)
The name of the node.
|
NodeMetaData.Builder |
numberOfSubscribers(int numberOfSubscribers)
The number of subscribers to the node.
|
NodeMetaData.Builder |
owners(java.util.Collection<Jid> owners)
The JIDs of those with an affiliation of owner.
|
NodeMetaData.Builder |
payloadType(java.lang.String payloadType)
The payload type.
|
NodeMetaData.Builder |
publishers(java.util.Collection<Jid> publishers)
The JIDs of those with an affiliation of publisher.
|
fields, formType, instructions, items, pages, reportedFields, title, type
public final NodeMetaData.Builder contacts(java.util.Collection<Jid> contacts)
The JIDs of those to contact with questions.
contacts
- The contacts.public final NodeMetaData.Builder creationDate(java.time.Instant creationDate)
The datetime when the node was created.
creationDate
- The creation date.public final NodeMetaData.Builder creator(Jid creator)
The JID of the node creator.
creator
- The creator.public final NodeMetaData.Builder description(java.lang.String description)
A description of the node.
description
- The description.public final NodeMetaData.Builder language(java.util.Locale language)
The default language of the node.
language
- The language.public final NodeMetaData.Builder numberOfSubscribers(int numberOfSubscribers)
The number of subscribers to the node.
numberOfSubscribers
- The number of subscribers to the node.public final NodeMetaData.Builder owners(java.util.Collection<Jid> owners)
The JIDs of those with an affiliation of owner.
owners
- The owners.public final NodeMetaData.Builder publishers(java.util.Collection<Jid> publishers)
The JIDs of those with an affiliation of publisher.
publishers
- The publishers.public final NodeMetaData.Builder nodeTitle(java.lang.String title)
The name of the node.
title
- The title.public final NodeMetaData.Builder payloadType(java.lang.String payloadType)
The payload type.
payloadType
- The payload type.public final NodeMetaData build()
Builds the meta data form.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.