Class NodeMetaData.Builder
- java.lang.Object
-
- rocks.xmpp.extensions.data.model.DataForm.Builder<NodeMetaData.Builder>
-
- rocks.xmpp.extensions.pubsub.model.NodeMetaData.Builder
-
- Enclosing class:
- NodeMetaData
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 isDataForm.Type.RESULT.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeMetaDatabuild()Builds the meta data form.NodeMetaData.Buildercontacts(Collection<Jid> contacts)The JIDs of those to contact with questions.NodeMetaData.BuildercreationDate(Instant creationDate)The datetime when the node was created.NodeMetaData.Buildercreator(Jid creator)The JID of the node creator.NodeMetaData.Builderdescription(String description)A description of the node.NodeMetaData.Builderlanguage(Locale language)The default language of the node.NodeMetaData.BuildernodeTitle(String title)The name of the node.NodeMetaData.BuildernumberOfSubscribers(Integer numberOfSubscribers)The number of subscribers to the node.NodeMetaData.Builderowners(Collection<Jid> owners)The JIDs of those with an affiliation of owner.NodeMetaData.BuilderpayloadType(String payloadType)The payload type.NodeMetaData.Builderpublishers(Collection<Jid> publishers)The JIDs of those with an affiliation of publisher.-
Methods inherited from class rocks.xmpp.extensions.data.model.DataForm.Builder
fields, formType, instructions, items, pages, reportedFields, title, type
-
-
-
-
Method Detail
-
contacts
public final NodeMetaData.Builder contacts(Collection<Jid> contacts)
The JIDs of those to contact with questions.- Parameters:
contacts- The contacts.- Returns:
- The builder.
-
creationDate
public final NodeMetaData.Builder creationDate(Instant creationDate)
The datetime when the node was created.- Parameters:
creationDate- The creation date.- Returns:
- The builder.
-
creator
public final NodeMetaData.Builder creator(Jid creator)
The JID of the node creator.- Parameters:
creator- The creator.- Returns:
- The builder.
-
description
public final NodeMetaData.Builder description(String description)
A description of the node.- Parameters:
description- The description.- Returns:
- The builder.
-
language
public final NodeMetaData.Builder language(Locale language)
The default language of the node.- Parameters:
language- The language.- Returns:
- The builder.
-
numberOfSubscribers
public final NodeMetaData.Builder numberOfSubscribers(Integer numberOfSubscribers)
The number of subscribers to the node.- Parameters:
numberOfSubscribers- The number of subscribers to the node.- Returns:
- The builder.
-
owners
public final NodeMetaData.Builder owners(Collection<Jid> owners)
The JIDs of those with an affiliation of owner.- Parameters:
owners- The owners.- Returns:
- The builder.
-
publishers
public final NodeMetaData.Builder publishers(Collection<Jid> publishers)
The JIDs of those with an affiliation of publisher.- Parameters:
publishers- The publishers.- Returns:
- The builder.
-
nodeTitle
public final NodeMetaData.Builder nodeTitle(String title)
The name of the node.- Parameters:
title- The title.- Returns:
- The builder.
-
payloadType
public final NodeMetaData.Builder payloadType(String payloadType)
The payload type.- Parameters:
payloadType- The payload type.- Returns:
- The builder.
-
build
public final NodeMetaData build()
Builds the meta data form.- Returns:
- The meta data form.
-
-