public final class NodeMetaData extends Object
DataForm with form type http://jabber.org/protocol/pubsub#meta-data, which can be used to retrieve node meta data.
DataForm to retrieve standard data from it, use:
NodeMetaData nodeMetaData = new NodeMetaData(dataForm);
To build a form:
NodeMetaData nodeMetaData = NodeMetaData.builder()
.contacts(Arrays.asList(Jid.valueOf("contact")))
.creationDate(date)
.creator(Jid.valueOf("creator"))
.description("desc")
.language("de")
.numberOfSubscribers(2)
.owners(Arrays.asList(Jid.valueOf("owner")))
.publishers(Arrays.asList(Jid.valueOf("publisher")))
.title("title")
.payloadType("namespace")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeMetaData.Builder
A builder class to build the meta data form.
|
| Constructor and Description |
|---|
NodeMetaData(DataForm dataForm)
Creates a node meta data form.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeMetaData.Builder |
builder()
Creates the builder to build a meta data form.
|
List<Jid> |
getContacts()
Gets the contacts.
|
Date |
getCreationDate()
Gets the creation date.
|
Jid |
getCreator()
Gets the creator.
|
DataForm |
getDataForm()
Gets the underlying data form.
|
String |
getDescription()
Gets the description.
|
String |
getLanguage()
Gets the language.
|
String |
getNodeTitle()
Gets the title.
|
Integer |
getNumberOfSubscribers()
Gets the number of subscribers.
|
List<Jid> |
getOwners()
Gets the owners.
|
String |
getPayloadType()
Gets the payload type of the node.
|
List<Jid> |
getPublishers()
Gets the publishers.
|
public static final String FORM_TYPE
public NodeMetaData(DataForm dataForm)
dataForm - The underlying data form.public static NodeMetaData.Builder builder()
public DataForm getDataForm()
public Date getCreationDate()
public Jid getCreator()
public String getDescription()
public String getLanguage()
public Integer getNumberOfSubscribers()
public String getNodeTitle()
public String getPayloadType()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.