public final class Privacy extends Object
<query/> element in the jabber:iq:privacy namespace.
This class contains information about the active and default list and holds the privacy lists.
| Constructor and Description |
|---|
Privacy()
Creates an empty privacy element.
|
Privacy(PrivacyList... privacyLists)
Creates a privacy element with one or more privacy lists.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveName()
Gets the active list name.
|
String |
getDefaultName()
Sets the default list name.
|
List<PrivacyList> |
getPrivacyLists()
Gets the privacy lists.
|
void |
setActiveName(String activeName)
Sets the active list name.
|
void |
setDefaultName(String defaultName)
Gets the default list name.
|
String |
toString() |
public Privacy()
public Privacy(PrivacyList... privacyLists)
privacyLists - The privacy list(s).public String getActiveName()
setActiveName(String)public void setActiveName(String activeName)
activeName - The active list name.getActiveName()public String getDefaultName()
setDefaultName(String)public void setDefaultName(String defaultName)
defaultName - The default list name.getDefaultName()public List<PrivacyList> getPrivacyLists()
Copyright © 2014 XMPP.rocks. All rights reserved.