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.16 at 07:37:02 PM EST 006 // 007 008 009 package org.jabber.protocol.rosterx; 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 name="group" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 033 * </sequence> 034 * <attribute name="action"> 035 * <simpleType> 036 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 037 * <enumeration value="add"/> 038 * <enumeration value="delete"/> 039 * <enumeration value="modify"/> 040 * </restriction> 041 * </simpleType> 042 * </attribute> 043 * <attribute name="jid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 044 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 045 * </restriction> 046 * </complexContent> 047 * </complexType> 048 * </pre> 049 * 050 * 051 */ 052 @XmlAccessorType(XmlAccessType.FIELD) 053 @XmlType(name = "", propOrder = { 054 "group" 055 }) 056 @XmlRootElement(name = "item") 057 public class Item { 058 059 protected List<String> group; 060 @XmlAttribute 061 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 062 protected String action; 063 @XmlAttribute(required = true) 064 protected String jid; 065 @XmlAttribute 066 protected String name; 067 068 /** 069 * Gets the value of the group property. 070 * 071 * <p> 072 * This accessor method returns a reference to the live list, 073 * not a snapshot. Therefore any modification you make to the 074 * returned list will be present inside the JAXB object. 075 * This is why there is not a <CODE>set</CODE> method for the group property. 076 * 077 * <p> 078 * For example, to add a new item, do as follows: 079 * <pre> 080 * getGroup().add(newItem); 081 * </pre> 082 * 083 * 084 * <p> 085 * Objects of the following type(s) are allowed in the list 086 * {@link String } 087 * 088 * 089 */ 090 public List<String> getGroup() { 091 if (group == null) { 092 group = new ArrayList<String>(); 093 } 094 return this.group; 095 } 096 097 /** 098 * Gets the value of the action property. 099 * 100 * @return 101 * possible object is 102 * {@link String } 103 * 104 */ 105 public String getAction() { 106 return action; 107 } 108 109 /** 110 * Sets the value of the action property. 111 * 112 * @param value 113 * allowed object is 114 * {@link String } 115 * 116 */ 117 public void setAction(String value) { 118 this.action = value; 119 } 120 121 /** 122 * Gets the value of the jid property. 123 * 124 * @return 125 * possible object is 126 * {@link String } 127 * 128 */ 129 public String getJid() { 130 return jid; 131 } 132 133 /** 134 * Sets the value of the jid property. 135 * 136 * @param value 137 * allowed object is 138 * {@link String } 139 * 140 */ 141 public void setJid(String value) { 142 this.jid = value; 143 } 144 145 /** 146 * Gets the value of the name property. 147 * 148 * @return 149 * possible object is 150 * {@link String } 151 * 152 */ 153 public String getName() { 154 return name; 155 } 156 157 /** 158 * Sets the value of the name property. 159 * 160 * @param value 161 * allowed object is 162 * {@link String } 163 * 164 */ 165 public void setName(String value) { 166 this.name = value; 167 } 168 169 }