public static final class Catalog.Item
extends java.lang.Object
A catalog item.
An item may have no security label. Such an item explicitly offers a choice of sending a stanza without a label. A non-restrictive catalog implicitly offers this choice when it does not contain an empty item.
Constructor and Description |
---|
Item() |
Item(java.lang.String selector,
SecurityLabel securityLabel,
java.lang.Boolean isDefault) |
Modifier and Type | Method and Description |
---|---|
SecurityLabel |
getSecurityLabel()
Gets the security label or null.
|
java.lang.String |
getSelector()
Gets the selector.
|
boolean |
isDefault()
Whether this item is the default item.
|
public Item()
public Item(java.lang.String selector, SecurityLabel securityLabel, java.lang.Boolean isDefault)
public final SecurityLabel getSecurityLabel()
Gets the security label or null.
public final java.lang.String getSelector()
Gets the selector.
Items in the catalog may contain a selector= attribute. The value of this attribute represents the item’s placement in a hierarchical organization of the items. If one item has a selector= attribute, all items should have a selector= attribute. The value of the selector= attribute conforms to the selector-value ABNF production:
selector-value = (<item>"|")*<item>
where
<item/>
is a sequence of characters not including “|”.A value of “X|Y|Z” indicates that this item is “Z” in the the “Y” subset of the “X” subset of items. This information may be used, for instance, in generating label selection menus in graphical user interfaces.
public final boolean isDefault()
Whether this item is the default item.
The client should default the label selection to this item in cases where the user has not selected an item.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.