Package rocks.xmpp.extensions.muc.model
Enum MucFeature
- java.lang.Object
-
- java.lang.Enum<MucFeature>
-
- rocks.xmpp.extensions.muc.model.MucFeature
-
- All Implemented Interfaces:
Serializable
,Comparable<MucFeature>
,Feature
public enum MucFeature extends Enum<MucFeature> implements Feature
A feature of a multi-user chat service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIDDEN
Hidden room in Multi-User Chat (MUC)MEMBERS_ONLY
Members-only room in Multi-User Chat (MUC)MODERATED
Moderated room in Multi-User Chat (MUC)NON_ANONYMOUS
Non-anonymous room in Multi-User Chat (MUC)OPEN
Open room in Multi-User Chat (MUC)PASSWORD_PROTECTED
Password-protected room in Multi-User Chat (MUC)PERSISTENT
Persistent room in Multi-User Chat (MUC)PUBLIC
Public room in Multi-User Chat (MUC)REGISTER
Support for the muc#register FORM_TYPEROOMCONFIG
Support for the muc#roomconfig FORM_TYPEROOMINFO
Support for the muc#roominfo FORM_TYPEROOMS
List of MUC rooms (each as a separate item)SEMI_ANONYMOUS
Semi-anonymous room in Multi-User Chat (MUC)TEMPORARY
Temporary room in Multi-User Chat (MUC)UNMODERATED
Unmoderated room in Multi-User Chat (MUC)UNSECURED
Unsecured room in Multi-User Chat (MUC)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFeatureName()
Gets the name of the feature.static MucFeature
valueOf(String name)
Returns the enum constant of this type with the specified name.static MucFeature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGISTER
public static final MucFeature REGISTER
Support for the muc#register FORM_TYPE
-
ROOMCONFIG
public static final MucFeature ROOMCONFIG
Support for the muc#roomconfig FORM_TYPE
-
ROOMINFO
public static final MucFeature ROOMINFO
Support for the muc#roominfo FORM_TYPE
-
HIDDEN
public static final MucFeature HIDDEN
Hidden room in Multi-User Chat (MUC)
-
MEMBERS_ONLY
public static final MucFeature MEMBERS_ONLY
Members-only room in Multi-User Chat (MUC)
-
MODERATED
public static final MucFeature MODERATED
Moderated room in Multi-User Chat (MUC)
-
NON_ANONYMOUS
public static final MucFeature NON_ANONYMOUS
Non-anonymous room in Multi-User Chat (MUC)
-
OPEN
public static final MucFeature OPEN
Open room in Multi-User Chat (MUC)
-
PASSWORD_PROTECTED
public static final MucFeature PASSWORD_PROTECTED
Password-protected room in Multi-User Chat (MUC)
-
PERSISTENT
public static final MucFeature PERSISTENT
Persistent room in Multi-User Chat (MUC)
-
PUBLIC
public static final MucFeature PUBLIC
Public room in Multi-User Chat (MUC)
-
ROOMS
public static final MucFeature ROOMS
List of MUC rooms (each as a separate item)
-
SEMI_ANONYMOUS
public static final MucFeature SEMI_ANONYMOUS
Semi-anonymous room in Multi-User Chat (MUC)
-
TEMPORARY
public static final MucFeature TEMPORARY
Temporary room in Multi-User Chat (MUC)
-
UNMODERATED
public static final MucFeature UNMODERATED
Unmoderated room in Multi-User Chat (MUC)
-
UNSECURED
public static final MucFeature UNSECURED
Unsecured room in Multi-User Chat (MUC)
-
-
Method Detail
-
values
public static MucFeature[] 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 (MucFeature c : MucFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MucFeature valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFeatureName
public final String getFeatureName()
Description copied from interface:Feature
Gets the name of the feature.- Specified by:
getFeatureName
in interfaceFeature
- Returns:
- The feature name.
-
-