org.jabber.protocol.ibb.Open 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.ibb;
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.XmlValue;
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>
* <simpleContent>
* <extension base="<http://jabber.org/protocol/ibb>empty">
* <attribute name="block-size" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
* <attribute name="sid" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
* <attribute name="stanza" default="iq">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
* <enumeration value="iq"/>
* <enumeration value="message"/>
* </restriction>
* </simpleType>
* </attribute>
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
@XmlRootElement(name = "open")
public class Open {
@XmlValue
protected String value;
@XmlAttribute(name = "block-size", required = true)
@XmlSchemaType(name = "unsignedShort")
protected int blockSize;
@XmlAttribute(name = "sid", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String sid;
@XmlAttribute(name = "stanza")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String stanza;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the blockSize property.
*
*/
public int getBlockSize() {
return blockSize;
}
/**
* Sets the value of the blockSize property.
*
*/
public void setBlockSize(int value) {
this.blockSize = 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;
}
/**
* Gets the value of the stanza property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStanza() {
if (stanza == null) {
return "iq";
} else {
return stanza;
}
}
/**
* Sets the value of the stanza property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStanza(String value) {
this.stanza = value;
}
}