package org.openclinica.ws.studyeventdefinition.v1;
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;
import org.openclinica.ws.beans.StudyEventDefinitionsType;
/**
* <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="result" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="warning" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="error" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="studyEventDefinitions" type="{http://openclinica.org/ws/beans}studyEventDefinitionsType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"result",
"warning",
"error",
"studyEventDefinitions"
})
@XmlRootElement(name = "listAllResponse")
@SuppressWarnings("javadoc")
public class ListAllResponse {
@XmlElement(required = true)
protected String result;
protected List<String> warning;
protected List<String> error;
@XmlElement(required = true)
protected StudyEventDefinitionsType studyEventDefinitions;
/**
* Gets the value of the result property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getResult() {
return result;
}
/**
* Sets the value of the result property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setResult(String value) {
this.result = value;
}
/**
* Gets the value of the warning 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 warning property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getWarning().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getWarning() {
if (warning == null) {
warning = new ArrayList<String>();
}
return this.warning;
}
/**
* Gets the value of the error 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 error property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getError().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getError() {
if (error == null) {
error = new ArrayList<String>();
}
return this.error;
}
/**
* Gets the value of the studyEventDefinitions property.
*
* @return
* possible object is
* {@link StudyEventDefinitionsType }
*
*/
public StudyEventDefinitionsType getStudyEventDefinitions() {
return studyEventDefinitions;
}
/**
* Sets the value of the studyEventDefinitions property.
*
* @param value
* allowed object is
* {@link StudyEventDefinitionsType }
*
*/
public void setStudyEventDefinitions(StudyEventDefinitionsType value) {
this.studyEventDefinitions = value;
}
}