Package org.jivesoftware.smackx.pubsub
Enum PubSubFeature
- java.lang.Object
-
- java.lang.Enum<PubSubFeature>
-
- org.jivesoftware.smackx.pubsub.PubSubFeature
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.CharSequence
,java.lang.Comparable<PubSubFeature>
public enum PubSubFeature extends java.lang.Enum<PubSubFeature> implements java.lang.CharSequence
The features a PubSub service may provides. Some are optional or recommended, while others are required.- See Also:
- XEP-60 ยง 10
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
java.lang.String
getFeatureName()
int
length()
java.lang.CharSequence
subSequence(int start, int end)
Feature.Support
support()
java.lang.String
toString()
static PubSubFeature
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PubSubFeature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
access_authorize
public static final PubSubFeature access_authorize
-
access_open
public static final PubSubFeature access_open
-
access_presence
public static final PubSubFeature access_presence
-
access_roster
public static final PubSubFeature access_roster
-
access_whitelist
public static final PubSubFeature access_whitelist
-
auto_create
public static final PubSubFeature auto_create
-
auto_subscribe
public static final PubSubFeature auto_subscribe
-
collections
public static final PubSubFeature collections
-
config_node
public static final PubSubFeature config_node
-
create_and_configure
public static final PubSubFeature create_and_configure
-
create_nodes
public static final PubSubFeature create_nodes
-
delete_items
public static final PubSubFeature delete_items
-
delete_nodes
public static final PubSubFeature delete_nodes
-
get_pending
public static final PubSubFeature get_pending
-
item_ids
public static final PubSubFeature item_ids
-
last_published
public static final PubSubFeature last_published
-
leased_subscription
public static final PubSubFeature leased_subscription
-
manage_subscriptions
public static final PubSubFeature manage_subscriptions
-
member_affiliation
public static final PubSubFeature member_affiliation
-
meta_data
public static final PubSubFeature meta_data
-
modify_affiliations
public static final PubSubFeature modify_affiliations
-
multi_collection
public static final PubSubFeature multi_collection
-
multi_subscribe
public static final PubSubFeature multi_subscribe
-
outcast_affiliation
public static final PubSubFeature outcast_affiliation
-
persistent_items
public static final PubSubFeature persistent_items
-
presence_notifications
public static final PubSubFeature presence_notifications
-
presence_subscribe
public static final PubSubFeature presence_subscribe
-
publish
public static final PubSubFeature publish
-
publish_options
public static final PubSubFeature publish_options
-
publish_only_affiliation
public static final PubSubFeature publish_only_affiliation
-
publisher_affiliation
public static final PubSubFeature publisher_affiliation
-
purge_nodes
public static final PubSubFeature purge_nodes
-
retract_items
public static final PubSubFeature retract_items
-
retrieve_affiliations
public static final PubSubFeature retrieve_affiliations
-
retrieve_default
public static final PubSubFeature retrieve_default
-
retrieve_default_sub
public static final PubSubFeature retrieve_default_sub
-
retrieve_items
public static final PubSubFeature retrieve_items
-
retrieve_subscriptions
public static final PubSubFeature retrieve_subscriptions
-
subscribe
public static final PubSubFeature subscribe
-
subscription_options
public static final PubSubFeature subscription_options
-
subscriptions_notifications
public static final PubSubFeature subscriptions_notifications
-
instant_nodes
public static final PubSubFeature instant_nodes
-
filtered_notifications
public static final PubSubFeature filtered_notifications
-
-
Method Detail
-
values
public static PubSubFeature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PubSubFeature c : PubSubFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PubSubFeature valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFeatureName
public java.lang.String getFeatureName()
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Enum<PubSubFeature>
-
support
public Feature.Support support()
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
-