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

jabber.component.accept.Message Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2020.10.04 at 01:10:24 PM KST 
//


package jabber.component.accept;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
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;


/**
 * 

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>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element ref="{jabber:component:accept}subject"/>
 *           <element ref="{jabber:component:accept}body"/>
 *           <element ref="{jabber:component:accept}thread"/>
 *         </choice>
 *         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{jabber:component:accept}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 = { "subjectOrBodyOrThread", "any", "error" }) @XmlRootElement(name = "message") public class Message { @XmlElementRefs({ @XmlElementRef(name = "subject", namespace = "jabber:component:accept", type = Subject.class, required = false), @XmlElementRef(name = "body", namespace = "jabber:component:accept", type = Body.class, required = false), @XmlElementRef(name = "thread", namespace = "jabber:component:accept", type = JAXBElement.class, required = false) }) protected List subjectOrBodyOrThread; @XmlAnyElement(lax = true) protected List any; protected Error error; @XmlAttribute(name = "from", required = true) protected String from; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String id; @XmlAttribute(name = "to", required = true) protected String 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 subjectOrBodyOrThread 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 subjectOrBodyOrThread property. * *

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

     *    getSubjectOrBodyOrThread().add(newItem);
     * 
* * *

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

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

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } /** * Gets the value of the error property. * * @return * possible object is * {@link Error } * */ public Error getError() { return error; } /** * Sets the value of the error property. * * @param value * allowed object is * {@link Error } * */ public void setError(Error value) { this.error = value; } /** * Gets the value of the from property. * * @return * possible object is * {@link String } * */ public String getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * */ public void setFrom(String 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 String getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link String } * */ public void setTo(String 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; } }