//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.06.22 at 12:17:16 PM MDT 
//


package gov.va.med.cds.template.generated.surveyscommon;

import gov.va.med.cds.template.generated.surveys.CensusSurvey;
import gov.va.med.cds.template.generated.surveys.PSSurvey;

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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for Survey complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Survey">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="surveyTitle" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="surveyVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Survey", propOrder = {
    "surveyTitle",
    "surveyVersion",
    "title",
    "version",
    "surveyType",
    "surveyQuestions",
    "id"
})
@XmlSeeAlso({
    PSSurvey.class,CensusSurvey.class
})
public class Survey {

  
    protected String surveyTitle;

    protected String surveyVersion;
    protected String surveyType;
    protected List<SurveyQuestion> surveyQuestions;
    protected Long id;
    protected String title;
	protected String version;
    
   
    /**
     * Gets the value of the surveyTitle property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSurveyTitle() {
    	if(surveyTitle==null){return title;}
        return surveyTitle;
    }

    /**
     * Sets the value of the surveyTitle property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSurveyTitle(String value) {
        this.surveyTitle = value;
    }

    /**
     * Gets the value of the surveyVersion property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSurveyVersion() {
    	if(surveyVersion==null){return version;}
        return surveyVersion;
    }

    /**
     * Sets the value of the surveyVersion property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSurveyVersion(String value) {
        this.surveyVersion = value;
    }
    
    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setSurveyType(String surveyTypeDmp) {
		this.surveyType = surveyTypeDmp;
	}
	
	public String getSurveyType() {
		return this.surveyType;
	}
	
	public List<SurveyQuestion> getSurveyQuestions() {
        if (surveyQuestions == null) {
            surveyQuestions = new ArrayList<SurveyQuestion>();
        }
        return this.surveyQuestions;
    }
    public void setSurveyQuestions(List<SurveyQuestion> surveyQuestions) {
       
        this.surveyQuestions = surveyQuestions;
    }
    
    public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		setSurveyTitle(title);
		this.title = title;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		setSurveyVersion(version);
		this.version = version;
	}

}
