|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
SUBSCRIPTION_BOTH
If the type is "subscription", then the 'value' attribute MUST be one of "both", "to", "from", or "none" |
static java.lang.String |
SUBSCRIPTION_FROM
|
static java.lang.String |
SUBSCRIPTION_NONE
|
static java.lang.String |
SUBSCRIPTION_TO
|
Constructor Summary | |
---|---|
PrivacyItem.PrivacyRule()
|
Method Summary | |
---|---|
protected static PrivacyItem.PrivacyRule |
fromString(java.lang.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. |
java.lang.String |
getValue()
Returns the element identifier to apply the action. |
boolean |
isSuscription()
Returns if the receiver represents a subscription rule. |
protected void |
setValue(java.lang.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 java.lang.String SUBSCRIPTION_BOTH
public static final java.lang.String SUBSCRIPTION_TO
public static final java.lang.String SUBSCRIPTION_FROM
public static final java.lang.String SUBSCRIPTION_NONE
Constructor Detail |
---|
public PrivacyItem.PrivacyRule()
Method Detail |
---|
protected static PrivacyItem.PrivacyRule fromString(java.lang.String value)
public PrivacyItem.Type getType()
public java.lang.String getValue()
protected void setValue(java.lang.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 |