jabber.iq.roster
Class Item

java.lang.Object
  extended by jabber.iq.roster.Item

public class Item
extends Object

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

group

protected List<String> group

ask

protected String ask

jid

protected String jid

name

protected String name

subscription

protected String subscription
Constructor Detail

Item

public Item()
Method Detail

getGroup

public List<String> getGroup()
Gets the value of the group property.

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


getAsk

public String getAsk()
Gets the value of the ask property.

Returns:
possible object is String

setAsk

public void setAsk(String value)
Sets the value of the ask property.

Parameters:
value - allowed object is String

getJid

public String getJid()
Gets the value of the jid property.

Returns:
possible object is String

setJid

public void setJid(String value)
Sets the value of the jid property.

Parameters:
value - allowed object is String

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getSubscription

public String getSubscription()
Gets the value of the subscription property.

Returns:
possible object is String

setSubscription

public void setSubscription(String value)
Sets the value of the subscription property.

Parameters:
value - allowed object is String


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.