public static enum PrivacyRule.Type extends java.lang.Enum<PrivacyRule.Type>
Defines the type of communication which should be allowed of denied.
Enum Constant and Description |
---|
GROUP
Allows or blocks communication based on a user's roster group name.
|
JID
Allows or blocks communication based on a JID.
|
SUBSCRIPTION
Allows or blocks communication based on subscription.
|
Modifier and Type | Method and Description |
---|---|
static PrivacyRule.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrivacyRule.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivacyRule.Type GROUP
public static final PrivacyRule.Type JID
public static final PrivacyRule.Type SUBSCRIPTION
public static PrivacyRule.Type[] values()
for (PrivacyRule.Type c : PrivacyRule.Type.values()) System.out.println(c);
public static PrivacyRule.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.