Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.opendope.questions;
  
  import java.util.List;

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>
 
 
 @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.

Returns:
possible object is
 
     public String getTitle() {
         return ;
     }

    
Sets the value of the title property.

Parameters:
value allowed object is
 
     public void setTitle(String value) {
         this. = value;
     }

    
Gets the value of the subtitle property.

Returns:
possible object is
 
     public String getSubtitle() {
         return ;
     }

    
Sets the value of the subtitle property.

Parameters:
value allowed object is
    public void setSubtitle(String value) {
        this. = value;
    }

    
Gets the value of the questions property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the questions property.

Parameters:
value allowed object is
    public void setQuestions(Questionnaire.Questions value) {
        this. = 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>
 
    @XmlType(name = "", propOrder = {
        "question"
    })
    public static class Questions {
        protected List<Questionquestion;

        
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

        public List<QuestiongetQuestion() {
            if ( == null) {
                 = new ArrayList<Question>();
            }
            return this.;
        }
    }
New to GrepCode? Check out our FAQ X