jabber.iq.roster.Item Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2007.03.23 at 05:33:02 PM UTC
//
package jabber.iq.roster;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"group"
})
@XmlRootElement(name = "item")
public class Item {
protected List group;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String ask;
@XmlAttribute(required = true)
protected String jid;
@XmlAttribute
protected String name;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String subscription;
/**
* 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
* {@link String }
*
*
*/
public List getGroup() {
if (group == null) {
group = new ArrayList();
}
return this.group;
}
/**
* Gets the value of the ask property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAsk() {
return ask;
}
/**
* Sets the value of the ask property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAsk(String value) {
this.ask = value;
}
/**
* Gets the value of the jid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getJid() {
return jid;
}
/**
* Sets the value of the jid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setJid(String value) {
this.jid = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the subscription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSubscription() {
return subscription;
}
/**
* Sets the value of the subscription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSubscription(String value) {
this.subscription = value;
}
}