View Javadoc
1   
2   package org.openehealth.ipf.commons.ihe.hpd.stub.chpidd;
3   
4   import java.util.ArrayList;
5   import java.util.List;
6   import javax.xml.bind.annotation.*;
7   
8   import org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2.BatchRequest;
9   
10  
11  /**
12   * <p>Java class for DownloadResponse complex type.
13   * 
14   * <p>The following schema fragment specifies the expected content contained within this class.
15   * 
16   * <pre>
17   * &lt;complexType name="DownloadResponse"&gt;
18   *   &lt;complexContent&gt;
19   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
20   *       &lt;sequence&gt;
21   *         &lt;element ref="{urn:oasis:names:tc:DSML:2:0:core}batchRequest" maxOccurs="unbounded" minOccurs="0"/&gt;
22   *       &lt;/sequence&gt;
23   *       &lt;attribute name="requestID" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
24   *     &lt;/restriction&gt;
25   *   &lt;/complexContent&gt;
26   * &lt;/complexType&gt;
27   * </pre>
28   * 
29   * 
30   */
31  @XmlAccessorType(XmlAccessType.FIELD)
32  @XmlType(name = "DownloadResponse", propOrder = {
33      "batchRequest"
34  })
35  @XmlRootElement(name = "downloadResponse")
36  public class DownloadResponse {
37  
38      @XmlElement(namespace = "urn:oasis:names:tc:DSML:2:0:core")
39      protected List<BatchRequest> batchRequest;
40      @XmlAttribute(name = "requestID")
41      protected String requestID;
42  
43      /**
44       * Gets the value of the batchRequest property.
45       * 
46       * <p>
47       * This accessor method returns a reference to the live list,
48       * not a snapshot. Therefore any modification you make to the
49       * returned list will be present inside the JAXB object.
50       * This is why there is not a <CODE>set</CODE> method for the batchRequest property.
51       * 
52       * <p>
53       * For example, to add a new item, do as follows:
54       * <pre>
55       *    getBatchRequest().add(newItem);
56       * </pre>
57       * 
58       * 
59       * <p>
60       * Objects of the following type(s) are allowed in the list
61       * {@link BatchRequest }
62       * 
63       * 
64       */
65      public List<BatchRequest> getBatchRequest() {
66          if (batchRequest == null) {
67              batchRequest = new ArrayList<>();
68          }
69          return this.batchRequest;
70      }
71  
72      /**
73       * Gets the value of the requestID property.
74       * 
75       * @return
76       *     possible object is
77       *     {@link String }
78       *     
79       */
80      public String getRequestID() {
81          return requestID;
82      }
83  
84      /**
85       * Sets the value of the requestID property.
86       * 
87       * @param value
88       *     allowed object is
89       *     {@link String }
90       *     
91       */
92      public void setRequestID(String value) {
93          this.requestID = value;
94      }
95  
96  }