| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smack.packet.PrivacyItem.PrivacyRule
public static class PrivacyItem.PrivacyRule
Privacy Rule represents the kind of action to apply. It holds the kind of communication ([jid|group|subscription]) it will allow or block and identifier to apply the action.
| Field Summary | |
|---|---|
| static String | SUBSCRIPTION_BOTHIf the type is "subscription", then the 'value' attribute MUST be one of "both", "to", "from", or "none" | 
| static String | SUBSCRIPTION_FROM | 
| static String | SUBSCRIPTION_NONE | 
| static String | SUBSCRIPTION_TO | 
| Constructor Summary | |
|---|---|
| PrivacyItem.PrivacyRule() | |
| Method Summary | |
|---|---|
| protected static PrivacyItem.PrivacyRule | fromString(String value)Returns the type constant associated with the String value. | 
|  PrivacyItem.Type | getType()Returns the type hold the kind of communication it will allow or block. | 
|  String | getValue()Returns the element identifier to apply the action. | 
|  boolean | isSuscription()Returns if the receiver represents a subscription rule. | 
| protected  void | setValue(String value)Sets the element identifier to apply the action. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String SUBSCRIPTION_BOTH
public static final String SUBSCRIPTION_TO
public static final String SUBSCRIPTION_FROM
public static final String SUBSCRIPTION_NONE
| Constructor Detail | 
|---|
public PrivacyItem.PrivacyRule()
| Method Detail | 
|---|
protected static PrivacyItem.PrivacyRule fromString(String value)
public PrivacyItem.Type getType()
public String getValue()
protected void setValue(String value)
value - is the identifier to apply the action.public boolean isSuscription()
| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||