org.jabber.protocol.bytestreams.Query 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 org.jabber.protocol.bytestreams;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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">
* <choice>
* <element ref="{http://jabber.org/protocol/bytestreams}streamhost" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://jabber.org/protocol/bytestreams}streamhost-used" minOccurs="0"/>
* <element name="activate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </choice>
* <attribute name="dstaddr" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="mode" default="tcp">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
* <enumeration value="tcp"/>
* <enumeration value="udp"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="sid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"streamhost",
"streamhostUsed",
"activate"
})
@XmlRootElement(name = "query")
public class Query {
protected List streamhost;
@XmlElement(name = "streamhost-used")
protected StreamhostUsed streamhostUsed;
protected String activate;
@XmlAttribute(name = "dstaddr")
protected String dstaddr;
@XmlAttribute(name = "mode")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String mode;
@XmlAttribute(name = "sid", required = true)
protected String sid;
/**
* Gets the value of the streamhost 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 streamhost property.
*
*
* For example, to add a new item, do as follows:
*
* getStreamhost().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Streamhost }
*
*
*/
public List getStreamhost() {
if (streamhost == null) {
streamhost = new ArrayList();
}
return this.streamhost;
}
/**
* Gets the value of the streamhostUsed property.
*
* @return
* possible object is
* {@link StreamhostUsed }
*
*/
public StreamhostUsed getStreamhostUsed() {
return streamhostUsed;
}
/**
* Sets the value of the streamhostUsed property.
*
* @param value
* allowed object is
* {@link StreamhostUsed }
*
*/
public void setStreamhostUsed(StreamhostUsed value) {
this.streamhostUsed = value;
}
/**
* Gets the value of the activate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getActivate() {
return activate;
}
/**
* Sets the value of the activate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setActivate(String value) {
this.activate = value;
}
/**
* Gets the value of the dstaddr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDstaddr() {
return dstaddr;
}
/**
* Sets the value of the dstaddr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDstaddr(String value) {
this.dstaddr = value;
}
/**
* Gets the value of the mode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMode() {
if (mode == null) {
return "tcp";
} else {
return mode;
}
}
/**
* Sets the value of the mode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMode(String value) {
this.mode = value;
}
/**
* Gets the value of the sid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSid() {
return sid;
}
/**
* Sets the value of the sid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSid(String value) {
this.sid = value;
}
}