Class AMPExtension.Rule
- java.lang.Object
-
- org.jivesoftware.smackx.amp.packet.AMPExtension.Rule
-
- Enclosing class:
- AMPExtension
public static class AMPExtension.Rule extends java.lang.Object
XEP-0079 Rule element. Defines AMP Rule parameters. Can be added to AMPExtension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT
-
Constructor Summary
Constructors Constructor Description Rule(AMPExtension.Action action, AMPExtension.Condition condition)
Create a new amp rule with specified action and condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMPExtension.Action
getAction()
AMPExtension.Condition
getCondition()
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rule
public Rule(AMPExtension.Action action, AMPExtension.Condition condition)
Create a new amp rule with specified action and condition. Value will be taken from condition argument- Parameters:
action
- action for this rulecondition
- condition for this rule
-
-
Method Detail
-
getAction
public AMPExtension.Action getAction()
-
getCondition
public AMPExtension.Condition getCondition()
-
-