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.client;
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.XmlAnyElement;
016    import javax.xml.bind.annotation.XmlAttribute;
017    import javax.xml.bind.annotation.XmlElement;
018    import javax.xml.bind.annotation.XmlElements;
019    import javax.xml.bind.annotation.XmlRootElement;
020    import javax.xml.bind.annotation.XmlSchemaType;
021    import javax.xml.bind.annotation.XmlType;
022    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
023    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
024    
025    
026    /**
027     * <p>Java class for anonymous complex type.
028     * 
029     * <p>The following schema fragment specifies the expected content contained within this class.
030     * 
031     * <pre>
032     * &lt;complexType>
033     *   &lt;complexContent>
034     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035     *       &lt;sequence>
036     *         &lt;choice maxOccurs="unbounded" minOccurs="0">
037     *           &lt;element ref="{jabber:client}subject"/>
038     *           &lt;element ref="{jabber:client}body"/>
039     *           &lt;element ref="{jabber:client}thread"/>
040     *         &lt;/choice>
041     *         &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
042     *         &lt;element ref="{jabber:client}error" minOccurs="0"/>
043     *       &lt;/sequence>
044     *       &lt;attribute name="from" type="{http://www.w3.org/2001/XMLSchema}string" />
045     *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
046     *       &lt;attribute name="to" type="{http://www.w3.org/2001/XMLSchema}string" />
047     *       &lt;attribute name="type" default="normal">
048     *         &lt;simpleType>
049     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
050     *             &lt;enumeration value="chat"/>
051     *             &lt;enumeration value="error"/>
052     *             &lt;enumeration value="groupchat"/>
053     *             &lt;enumeration value="headline"/>
054     *             &lt;enumeration value="normal"/>
055     *           &lt;/restriction>
056     *         &lt;/simpleType>
057     *       &lt;/attribute>
058     *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
059     *     &lt;/restriction>
060     *   &lt;/complexContent>
061     * &lt;/complexType>
062     * </pre>
063     * 
064     * 
065     */
066    @XmlAccessorType(XmlAccessType.FIELD)
067    @XmlType(name = "", propOrder = {
068        "subjectOrBodyOrThread",
069        "any",
070        "error"
071    })
072    @XmlRootElement(name = "message")
073    public class Message {
074    
075        @XmlElements({
076            @XmlElement(name = "subject", type = Subject.class),
077            @XmlElement(name = "body", type = Body.class),
078            @XmlElement(name = "thread", type = Thread.class)
079        })
080        protected List<Object> subjectOrBodyOrThread;
081        @XmlAnyElement(lax = true)
082        protected List<Object> any;
083        protected Error error;
084        @XmlAttribute
085        protected String from;
086        @XmlAttribute
087        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
088        @XmlSchemaType(name = "NMTOKEN")
089        protected String id;
090        @XmlAttribute
091        protected String to;
092        @XmlAttribute
093        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
094        protected String type;
095        @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
096        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
097        @XmlSchemaType(name = "language")
098        protected String lang;
099    
100        /**
101         * Gets the value of the subjectOrBodyOrThread property.
102         * 
103         * <p>
104         * This accessor method returns a reference to the live list,
105         * not a snapshot. Therefore any modification you make to the
106         * returned list will be present inside the JAXB object.
107         * This is why there is not a <CODE>set</CODE> method for the subjectOrBodyOrThread property.
108         * 
109         * <p>
110         * For example, to add a new item, do as follows:
111         * <pre>
112         *    getSubjectOrBodyOrThread().add(newItem);
113         * </pre>
114         * 
115         * 
116         * <p>
117         * Objects of the following type(s) are allowed in the list
118         * {@link Subject }
119         * {@link Body }
120         * {@link Thread }
121         * 
122         * 
123         */
124        public List<Object> getSubjectOrBodyOrThread() {
125            if (subjectOrBodyOrThread == null) {
126                subjectOrBodyOrThread = new ArrayList<Object>();
127            }
128            return this.subjectOrBodyOrThread;
129        }
130    
131        /**
132         * Gets the value of the any property.
133         * 
134         * <p>
135         * This accessor method returns a reference to the live list,
136         * not a snapshot. Therefore any modification you make to the
137         * returned list will be present inside the JAXB object.
138         * This is why there is not a <CODE>set</CODE> method for the any property.
139         * 
140         * <p>
141         * For example, to add a new item, do as follows:
142         * <pre>
143         *    getAny().add(newItem);
144         * </pre>
145         * 
146         * 
147         * <p>
148         * Objects of the following type(s) are allowed in the list
149         * {@link Object }
150         * 
151         * 
152         */
153        public List<Object> getAny() {
154            if (any == null) {
155                any = new ArrayList<Object>();
156            }
157            return this.any;
158        }
159    
160        /**
161         * Gets the value of the error property.
162         * 
163         * @return
164         *     possible object is
165         *     {@link Error }
166         *     
167         */
168        public Error getError() {
169            return error;
170        }
171    
172        /**
173         * Sets the value of the error property.
174         * 
175         * @param value
176         *     allowed object is
177         *     {@link Error }
178         *     
179         */
180        public void setError(Error value) {
181            this.error = value;
182        }
183    
184        /**
185         * Gets the value of the from property.
186         * 
187         * @return
188         *     possible object is
189         *     {@link String }
190         *     
191         */
192        public String getFrom() {
193            return from;
194        }
195    
196        /**
197         * Sets the value of the from property.
198         * 
199         * @param value
200         *     allowed object is
201         *     {@link String }
202         *     
203         */
204        public void setFrom(String value) {
205            this.from = value;
206        }
207    
208        /**
209         * Gets the value of the id property.
210         * 
211         * @return
212         *     possible object is
213         *     {@link String }
214         *     
215         */
216        public String getId() {
217            return id;
218        }
219    
220        /**
221         * Sets the value of the id property.
222         * 
223         * @param value
224         *     allowed object is
225         *     {@link String }
226         *     
227         */
228        public void setId(String value) {
229            this.id = value;
230        }
231    
232        /**
233         * Gets the value of the to property.
234         * 
235         * @return
236         *     possible object is
237         *     {@link String }
238         *     
239         */
240        public String getTo() {
241            return to;
242        }
243    
244        /**
245         * Sets the value of the to property.
246         * 
247         * @param value
248         *     allowed object is
249         *     {@link String }
250         *     
251         */
252        public void setTo(String value) {
253            this.to = value;
254        }
255    
256        /**
257         * Gets the value of the type property.
258         * 
259         * @return
260         *     possible object is
261         *     {@link String }
262         *     
263         */
264        public String getType() {
265            if (type == null) {
266                return "normal";
267            } else {
268                return type;
269            }
270        }
271    
272        /**
273         * Sets the value of the type property.
274         * 
275         * @param value
276         *     allowed object is
277         *     {@link String }
278         *     
279         */
280        public void setType(String value) {
281            this.type = value;
282        }
283    
284        /**
285         * Gets the value of the lang property.
286         * 
287         * @return
288         *     possible object is
289         *     {@link String }
290         *     
291         */
292        public String getLang() {
293            return lang;
294        }
295    
296        /**
297         * Sets the value of the lang property.
298         * 
299         * @param value
300         *     allowed object is
301         *     {@link String }
302         *     
303         */
304        public void setLang(String value) {
305            this.lang = value;
306        }
307    
308    }