public enum PublisherModel extends Enum<PublisherModel>
NodeConfiguration.getPublisherModel()| Enum Constant and Description |
|---|
OPEN
Anyone may publish.
|
PUBLISHERS
Only publishers may publish.
|
SUBSCRIBERS
Subscribers may publish.
|
| Modifier and Type | Method and Description |
|---|---|
static PublisherModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublisherModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublisherModel PUBLISHERS
public static final PublisherModel SUBSCRIBERS
public static final PublisherModel OPEN
public static PublisherModel[] values()
for (PublisherModel c : PublisherModel.values()) System.out.println(c);
public static PublisherModel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2016 XMPP.rocks. All rights reserved.