|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjabber.iq.roster.Item
public class Item
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{jabber:iq:roster}group" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="ask"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> <enumeration value="subscribe"/> </restriction> </simpleType> </attribute> <attribute name="jid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="subscription"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> <enumeration value="both"/> <enumeration value="from"/> <enumeration value="none"/> <enumeration value="remove"/> <enumeration value="to"/> </restriction> </simpleType> </attribute> </restriction> </complexContent> </complexType>
Field Summary | |
---|---|
protected String |
ask
|
protected List<String> |
group
|
protected String |
jid
|
protected String |
name
|
protected String |
subscription
|
Constructor Summary | |
---|---|
Item()
|
Method Summary | |
---|---|
String |
getAsk()
Gets the value of the ask property. |
List<String> |
getGroup()
Gets the value of the group property. |
String |
getJid()
Gets the value of the jid property. |
String |
getName()
Gets the value of the name property. |
String |
getSubscription()
Gets the value of the subscription property. |
void |
setAsk(String value)
Sets the value of the ask property. |
void |
setJid(String value)
Sets the value of the jid property. |
void |
setName(String value)
Sets the value of the name property. |
void |
setSubscription(String value)
Sets the value of the subscription property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<String> group
protected String ask
protected String jid
protected String name
protected String subscription
Constructor Detail |
---|
public Item()
Method Detail |
---|
public List<String> getGroup()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the group property.
For example, to add a new item, do as follows:
getGroup().add(newItem);
Objects of the following type(s) are allowed in the list
String
public String getAsk()
String
public void setAsk(String value)
value
- allowed object is
String
public String getJid()
String
public void setJid(String value)
value
- allowed object is
String
public String getName()
String
public void setName(String value)
value
- allowed object is
String
public String getSubscription()
String
public void setSubscription(String value)
value
- allowed object is
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |