org.opendope.questions.Questionnaire Maven / Gradle / Ivy
package org.opendope.questions;
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.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">
* <sequence>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="subtitle" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="questions">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://opendope.org/questions}question" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"title",
"subtitle",
"questions"
})
@XmlRootElement(name = "questionnaire")
public class Questionnaire {
protected String title;
protected String subtitle;
@XmlElement(required = true)
protected Questionnaire.Questions questions;
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the subtitle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSubtitle() {
return subtitle;
}
/**
* Sets the value of the subtitle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSubtitle(String value) {
this.subtitle = value;
}
/**
* Gets the value of the questions property.
*
* @return
* possible object is
* {@link Questionnaire.Questions }
*
*/
public Questionnaire.Questions getQuestions() {
return questions;
}
/**
* Sets the value of the questions property.
*
* @param value
* allowed object is
* {@link Questionnaire.Questions }
*
*/
public void setQuestions(Questionnaire.Questions value) {
this.questions = 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 ref="{http://opendope.org/questions}question" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"question"
})
public static class Questions {
protected List question;
/**
* Gets the value of the question 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 question property.
*
*
* For example, to add a new item, do as follows:
*
* getQuestion().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Question }
*
*
*/
public List getQuestion() {
if (question == null) {
question = new ArrayList();
}
return this.question;
}
}
}