org.opendope.questions.Response Maven / Gradle / Ivy
Show all versions of docx4j Show documentation
package org.opendope.questions;
import java.math.BigInteger;
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;
/**
* 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 name="free" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="format">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="text"/>
* <enumeration value="longtext"/>
* <enumeration value="integer"/>
* <enumeration value="date"/>
* <enumeration value="currency"/>
* </restriction>
* </simpleType>
* </element>
* <element name="length" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="min" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="max" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="fixed" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="category" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}integer" />
* <attribute name="canSelectMany" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"free",
"fixed"
})
@XmlRootElement(name = "response")
public class Response {
protected Response.Free free;
protected Response.Fixed fixed;
/**
* Gets the value of the free property.
*
* @return
* possible object is
* {@link Response.Free }
*
*/
public Response.Free getFree() {
return free;
}
/**
* Sets the value of the free property.
*
* @param value
* allowed object is
* {@link Response.Free }
*
*/
public void setFree(Response.Free value) {
this.free = value;
}
/**
* Gets the value of the fixed property.
*
* @return
* possible object is
* {@link Response.Fixed }
*
*/
public Response.Fixed getFixed() {
return fixed;
}
/**
* Sets the value of the fixed property.
*
* @param value
* allowed object is
* {@link Response.Fixed }
*
*/
public void setFixed(Response.Fixed value) {
this.fixed = value;
}
/**
* 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 name="category" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}integer" />
* <attribute name="canSelectMany" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"category"
})
public static class Fixed {
@XmlElement(required = true)
protected List category;
@XmlAttribute
protected BigInteger id;
@XmlAttribute
protected Boolean canSelectMany;
/**
* Gets the value of the category 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 category property.
*
*
* For example, to add a new item, do as follows:
*
* getCategory().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Response.Fixed.Category }
*
*
*/
public List getCategory() {
if (category == null) {
category = new ArrayList();
}
return this.category;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setId(BigInteger value) {
this.id = value;
}
/**
* Gets the value of the canSelectMany property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCanSelectMany() {
return canSelectMany;
}
/**
* Sets the value of the canSelectMany property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCanSelectMany(Boolean value) {
this.canSelectMany = value;
}
/**
* 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">
* <all>
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
public static class Category {
@XmlElement(required = true)
protected String label;
@XmlElement(required = true)
protected String value;
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* 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;
}
}
}
/**
* 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">
* <all>
* <element name="format">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="text"/>
* <enumeration value="longtext"/>
* <enumeration value="integer"/>
* <enumeration value="date"/>
* <enumeration value="currency"/>
* </restriction>
* </simpleType>
* </element>
* <element name="length" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="min" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="max" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
public static class Free {
@XmlElement(required = true, defaultValue = "text")
protected String format;
@XmlElement(required = true)
protected BigInteger length;
protected String min;
protected String max;
/**
* Gets the value of the format property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFormat() {
return format;
}
/**
* Sets the value of the format property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFormat(String value) {
this.format = value;
}
/**
* Gets the value of the length property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLength(BigInteger value) {
this.length = value;
}
/**
* Gets the value of the min property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMin() {
return min;
}
/**
* Sets the value of the min property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMin(String value) {
this.min = value;
}
/**
* Gets the value of the max property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMax() {
return max;
}
/**
* Sets the value of the max property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMax(String value) {
this.max = value;
}
}
}