Package org.jivesoftware.openfire.pubsub
Enum Node.ItemReplyPolicy
- java.lang.Object
-
- java.lang.Enum<Node.ItemReplyPolicy>
-
- org.jivesoftware.openfire.pubsub.Node.ItemReplyPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<Node.ItemReplyPolicy>
- Enclosing class:
- Node
public static enum Node.ItemReplyPolicy extends Enum<Node.ItemReplyPolicy>
Policy that defines whether owners or publisher should receive replies to items.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Node.ItemReplyPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Node.ItemReplyPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
owner
public static final Node.ItemReplyPolicy owner
Statically specify a replyto of the node owner(s).
-
publisher
public static final Node.ItemReplyPolicy publisher
Dynamically specify a replyto of the item publisher.
-
-
Method Detail
-
values
public static Node.ItemReplyPolicy[] 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 (Node.ItemReplyPolicy c : Node.ItemReplyPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Node.ItemReplyPolicy 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
-
-