Package org.jivesoftware.openfire.pubsub
Enum CollectionNode.LeafNodeAssociationPolicy
- java.lang.Object
-
- java.lang.Enum<CollectionNode.LeafNodeAssociationPolicy>
-
- org.jivesoftware.openfire.pubsub.CollectionNode.LeafNodeAssociationPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<CollectionNode.LeafNodeAssociationPolicy>
- Enclosing class:
- CollectionNode
public static enum CollectionNode.LeafNodeAssociationPolicy extends Enum<CollectionNode.LeafNodeAssociationPolicy>
Policy that defines who may associate leaf nodes with a collection.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CollectionNode.LeafNodeAssociationPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static CollectionNode.LeafNodeAssociationPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
all
public static final CollectionNode.LeafNodeAssociationPolicy all
Anyone may associate leaf nodes with the collection.
-
owners
public static final CollectionNode.LeafNodeAssociationPolicy owners
Only collection node owners may associate leaf nodes with the collection.
-
whitelist
public static final CollectionNode.LeafNodeAssociationPolicy whitelist
Only those on a whitelist may associate leaf nodes with the collection.
-
-
Method Detail
-
values
public static CollectionNode.LeafNodeAssociationPolicy[] 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 (CollectionNode.LeafNodeAssociationPolicy c : CollectionNode.LeafNodeAssociationPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollectionNode.LeafNodeAssociationPolicy 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
-
-