public final class Catalog
extends java.lang.Object
The implementation of the <catalog/>
element in the urn:xmpp:sec-label:catalog:2
namespace.
Modifier and Type | Class and Description |
---|---|
static class |
Catalog.Item
A catalog item.
|
Constructor and Description |
---|
Catalog() |
Catalog(Jid to,
Jid from,
java.lang.String name,
java.lang.String description,
java.lang.String id,
java.lang.Integer size,
java.lang.Boolean restrict,
java.util.Collection<Catalog.Item> items) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets the description.
|
Jid |
getFrom()
Gets the ‘from’ attribute.
|
java.lang.String |
getId()
Identifier for current revision, commonly a hash.
|
java.util.List<Catalog.Item> |
getItems()
Gets the catalog items.
|
java.lang.String |
getName()
Gets the catalog name.
|
java.lang.Integer |
getSize()
Gets the number of items.
|
Jid |
getTo()
Gets the ‘to’ attribute.
|
boolean |
isRestrictive()
If catalog is restrictive, the client SHOULD restrict the user to choosing one of the items from the catalog and use the label of that item (or no label if the selected item is empty).
|
public Catalog()
public Catalog(Jid to, Jid from, java.lang.String name, java.lang.String description, java.lang.String id, java.lang.Integer size, java.lang.Boolean restrict, java.util.Collection<Catalog.Item> items)
public final Jid getTo()
Gets the ‘to’ attribute.
public final Jid getFrom()
Gets the ‘from’ attribute.
public final java.lang.String getName()
Gets the catalog name.
public final java.lang.String getDescription()
Gets the description.
public final java.lang.String getId()
Identifier for current revision, commonly a hash.
public final boolean isRestrictive()
If catalog is restrictive, the client SHOULD restrict the user to choosing one of the items from the catalog and use the label of that item (or no label if the selected item is empty).
public final java.lang.Integer getSize()
Gets the number of items.
public final java.util.List<Catalog.Item> getItems()
Gets the catalog items.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.