public static enum Rule.Condition extends java.lang.Enum<Rule.Condition>
The condition defines how or when a particular rule is triggered. The value of the condition attribute determines what the contents of the <rule/> mean.
| Enum Constant and Description |
|---|
DELIVER
The "deliver" condition is used to ensure delivery (or non-delivery) in one of five ways.
|
EXPIRE_AT
The "expire-at" condition is used to ensure delivery before an absolute point in time.
|
MATCH_RESOURCE
The "match-resource" condition is used to restrict delivery based on the resource identifier of the recipient JID.
|
| Modifier and Type | Method and Description |
|---|---|
static Rule.Condition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rule.Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rule.Condition DELIVER
public static final Rule.Condition EXPIRE_AT
public static final Rule.Condition MATCH_RESOURCE
public static Rule.Condition[] values()
for (Rule.Condition c : Rule.Condition.values()) System.out.println(c);
public static Rule.Condition 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.