Package rocks.xmpp.extensions.amp.model
Enum Rule.Condition
- java.lang.Object
-
- java.lang.Enum<Rule.Condition>
-
- rocks.xmpp.extensions.amp.model.Rule.Condition
-
- All Implemented Interfaces:
Serializable
,Comparable<Rule.Condition>
- Enclosing class:
- Rule
public static enum Rule.Condition extends 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.- See Also:
- 3.3 Defined Conditions
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rule.Condition
valueOf(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.
-
-
-
Enum Constant Detail
-
DELIVER
public static final Rule.Condition DELIVER
The "deliver" condition is used to ensure delivery (or non-delivery) in one of five ways.- See Also:
- 3.3.1 deliver
-
EXPIRE_AT
public static final Rule.Condition EXPIRE_AT
The "expire-at" condition is used to ensure delivery before an absolute point in time.- See Also:
- 3.3.2 expire-at
-
MATCH_RESOURCE
public static final Rule.Condition MATCH_RESOURCE
The "match-resource" condition is used to restrict delivery based on the resource identifier of the recipient JID.- See Also:
- 3.3.3 match-resource
-
-
Method Detail
-
values
public static Rule.Condition[] 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 (Rule.Condition c : Rule.Condition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Rule.Condition 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
-
-