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; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @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; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "question" }) public static class Questions { protected List<Question> question; /** * Gets the value of the question property. * * <p> * 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 <CODE>set</CODE> method for the question property. * * <p> * For example, to add a new item, do as follows: * <pre> * getQuestion().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Question } * * */ public List<Question> getQuestion() { if (question == null) { question = new ArrayList<Question>(); } return this.question; } } }