Class AMPExtension.Rule
- java.lang.Object
-
- org.jivesoftware.smackx.amp.packet.AMPExtension.Rule
-
- Enclosing class:
- AMPExtension
public static class AMPExtension.Rule extends Object
XEP-0079 Rule element. Defines AMP Rule parameters. Can be added to AMPExtension.
-
-
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 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()
-
-