All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jabber.server.Message Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-146 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2010.06.09 at 04:26:34 AM BST 
//


package jabber.server;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.concurrent.NotThreadSafe;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import uk.org.retep.util.builder.Buildable;
import uk.org.retep.util.builder.CloneBuildable;
import uk.org.retep.xmpp.JID;
import uk.org.retep.xmpp.jaxb.adaptor.JIDAdapter;
import uk.org.retep.xmpp.message.impl.AbstractMessage;


/**
 * 

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:server}subject" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{jabber:server}body" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{jabber:server}thread" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{jabber:server}error" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
 *       <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" default="normal">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
 *             <enumeration value="chat"/>
 *             <enumeration value="error"/>
 *             <enumeration value="groupchat"/>
 *             <enumeration value="headline"/>
 *             <enumeration value="normal"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "subject", "body", "thread", "error" }) @XmlRootElement(name = "message") @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-09T03:53:30+0000", comments = "hudson-jaxb-ri-2.2-146 uk.org.retep.tools:jaxb:10.6") @NotThreadSafe public class Message extends AbstractMessage implements Buildable , CloneBuildable { protected List subject; protected List body; @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected List thread; protected jabber.server.Error error; @XmlAttribute(name = "from", required = true) @XmlJavaTypeAdapter(JIDAdapter.class) protected JID from; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String id; @XmlAttribute(name = "to", required = true) @XmlJavaTypeAdapter(JIDAdapter.class) protected JID to; @XmlAttribute(name = "type") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String type; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String lang; /** * Gets the value of the subject 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 subject property. * *

* For example, to add a new item, do as follows: *

     *    getSubject().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Subject } * * */ public List getSubject() { if (subject == null) { subject = new ArrayList(); } return this.subject; } /** * Gets the value of the body 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 body property. * *

* For example, to add a new item, do as follows: *

     *    getBody().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Body } * * */ public List getBody() { if (body == null) { body = new ArrayList(); } return this.body; } /** * Gets the value of the thread 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 thread property. * *

* For example, to add a new item, do as follows: *

     *    getThread().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getThread() { if (thread == null) { thread = new ArrayList(); } return this.thread; } /** * Gets the value of the error property. * * @return * possible object is * {@link jabber.server.Error } * */ public jabber.server.Error getError() { return error; } /** * Sets the value of the error property. * * @param value * allowed object is * {@link jabber.server.Error } * */ public void setError(jabber.server.Error value) { this.error = value; } /** * Gets the value of the from property. * * @return * possible object is * {@link String } * */ public JID getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * */ public void setFrom(JID value) { this.from = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the to property. * * @return * possible object is * {@link String } * */ public JID getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link String } * */ public void setTo(JID value) { this.to = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { if (type == null) { return "normal"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } @Override public final jabber.server.MessageBuilder builder() { return new jabber.server.MessageBuilder(); } @Override public final jabber.server.MessageBuilder cloneBuilder() { return new jabber.server.MessageBuilder(this); } public final void setError(uk.org.retep.xmpp.message.Error value) { setError(((jabber.server.Error) value)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy