001 // 002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 004 // Any modifications to this file will be lost upon recompilation of the source schema. 005 // Generated on: 2011.11.18 at 02:23:57 PM EST 006 // 007 008 009 package jabber.iq.roster; 010 011 import java.util.ArrayList; 012 import java.util.List; 013 import javax.xml.bind.annotation.XmlAccessType; 014 import javax.xml.bind.annotation.XmlAccessorType; 015 import javax.xml.bind.annotation.XmlAttribute; 016 import javax.xml.bind.annotation.XmlRootElement; 017 import javax.xml.bind.annotation.XmlType; 018 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 019 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 020 021 022 /** 023 * <p>Java class for anonymous complex type. 024 * 025 * <p>The following schema fragment specifies the expected content contained within this class. 026 * 027 * <pre> 028 * <complexType> 029 * <complexContent> 030 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 031 * <sequence> 032 * <element ref="{jabber:iq:roster}group" maxOccurs="unbounded" minOccurs="0"/> 033 * </sequence> 034 * <attribute name="ask"> 035 * <simpleType> 036 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 037 * <enumeration value="subscribe"/> 038 * </restriction> 039 * </simpleType> 040 * </attribute> 041 * <attribute name="jid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 042 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 043 * <attribute name="subscription"> 044 * <simpleType> 045 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 046 * <enumeration value="both"/> 047 * <enumeration value="from"/> 048 * <enumeration value="none"/> 049 * <enumeration value="remove"/> 050 * <enumeration value="to"/> 051 * </restriction> 052 * </simpleType> 053 * </attribute> 054 * </restriction> 055 * </complexContent> 056 * </complexType> 057 * </pre> 058 * 059 * 060 */ 061 @XmlAccessorType(XmlAccessType.FIELD) 062 @XmlType(name = "", propOrder = { 063 "group" 064 }) 065 @XmlRootElement(name = "item") 066 public class Item { 067 068 protected List<String> group; 069 @XmlAttribute 070 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 071 protected String ask; 072 @XmlAttribute(required = true) 073 protected String jid; 074 @XmlAttribute 075 protected String name; 076 @XmlAttribute 077 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 078 protected String subscription; 079 080 /** 081 * Gets the value of the group property. 082 * 083 * <p> 084 * This accessor method returns a reference to the live list, 085 * not a snapshot. Therefore any modification you make to the 086 * returned list will be present inside the JAXB object. 087 * This is why there is not a <CODE>set</CODE> method for the group property. 088 * 089 * <p> 090 * For example, to add a new item, do as follows: 091 * <pre> 092 * getGroup().add(newItem); 093 * </pre> 094 * 095 * 096 * <p> 097 * Objects of the following type(s) are allowed in the list 098 * {@link String } 099 * 100 * 101 */ 102 public List<String> getGroup() { 103 if (group == null) { 104 group = new ArrayList<String>(); 105 } 106 return this.group; 107 } 108 109 /** 110 * Gets the value of the ask property. 111 * 112 * @return 113 * possible object is 114 * {@link String } 115 * 116 */ 117 public String getAsk() { 118 return ask; 119 } 120 121 /** 122 * Sets the value of the ask property. 123 * 124 * @param value 125 * allowed object is 126 * {@link String } 127 * 128 */ 129 public void setAsk(String value) { 130 this.ask = value; 131 } 132 133 /** 134 * Gets the value of the jid property. 135 * 136 * @return 137 * possible object is 138 * {@link String } 139 * 140 */ 141 public String getJid() { 142 return jid; 143 } 144 145 /** 146 * Sets the value of the jid property. 147 * 148 * @param value 149 * allowed object is 150 * {@link String } 151 * 152 */ 153 public void setJid(String value) { 154 this.jid = value; 155 } 156 157 /** 158 * Gets the value of the name property. 159 * 160 * @return 161 * possible object is 162 * {@link String } 163 * 164 */ 165 public String getName() { 166 return name; 167 } 168 169 /** 170 * Sets the value of the name property. 171 * 172 * @param value 173 * allowed object is 174 * {@link String } 175 * 176 */ 177 public void setName(String value) { 178 this.name = value; 179 } 180 181 /** 182 * Gets the value of the subscription property. 183 * 184 * @return 185 * possible object is 186 * {@link String } 187 * 188 */ 189 public String getSubscription() { 190 return subscription; 191 } 192 193 /** 194 * Sets the value of the subscription property. 195 * 196 * @param value 197 * allowed object is 198 * {@link String } 199 * 200 */ 201 public void setSubscription(String value) { 202 this.subscription = value; 203 } 204 205 }