View Javadoc
1   /*
2    * Copyright 2017 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  import javax.xml.bind.annotation.XmlAccessType;
21  import javax.xml.bind.annotation.XmlAccessorType;
22  import javax.xml.bind.annotation.XmlAttribute;
23  import javax.xml.bind.annotation.XmlElement;
24  import javax.xml.bind.annotation.XmlType;
25  
26  
27  /**
28   * <p>Java class for SearchResponse complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType name="SearchResponse">
34   *   &lt;complexContent>
35   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
36   *       &lt;sequence>
37   *         &lt;element name="searchResultEntry" type="{urn:oasis:names:tc:DSML:2:0:core}SearchResultEntry" maxOccurs="unbounded" minOccurs="0"/>
38   *         &lt;element name="searchResultReference" type="{urn:oasis:names:tc:DSML:2:0:core}SearchResultReference" maxOccurs="unbounded" minOccurs="0"/>
39   *         &lt;element name="searchResultDone" type="{urn:oasis:names:tc:DSML:2:0:core}LDAPResult"/>
40   *       &lt;/sequence>
41   *       &lt;attribute name="requestID" type="{urn:oasis:names:tc:DSML:2:0:core}RequestID" />
42   *     &lt;/restriction>
43   *   &lt;/complexContent>
44   * &lt;/complexType>
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "SearchResponse", propOrder = {
51      "searchResultEntry",
52      "searchResultReference",
53      "searchResultDone"
54  })
55  public class SearchResponse {
56  
57      protected List<SearchResultEntry> searchResultEntry;
58      protected List<SearchResultReference> searchResultReference;
59      @XmlElement(required = true)
60      protected LDAPResult searchResultDone;
61      @XmlAttribute(name = "requestID")
62      protected String requestID;
63  
64      /**
65       * Gets the value of the searchResultEntry property.
66       * 
67       * <p>
68       * This accessor method returns a reference to the live list,
69       * not a snapshot. Therefore any modification you make to the
70       * returned list will be present inside the JAXB object.
71       * This is why there is not a <CODE>set</CODE> method for the searchResultEntry property.
72       * 
73       * <p>
74       * For example, to add a new item, do as follows:
75       * <pre>
76       *    getSearchResultEntry().add(newItem);
77       * </pre>
78       * 
79       * 
80       * <p>
81       * Objects of the following type(s) are allowed in the list
82       * {@link SearchResultEntry }
83       * 
84       * 
85       */
86      public List<SearchResultEntry> getSearchResultEntry() {
87          if (searchResultEntry == null) {
88              searchResultEntry = new ArrayList<SearchResultEntry>();
89          }
90          return this.searchResultEntry;
91      }
92  
93      /**
94       * Gets the value of the searchResultReference property.
95       * 
96       * <p>
97       * This accessor method returns a reference to the live list,
98       * not a snapshot. Therefore any modification you make to the
99       * returned list will be present inside the JAXB object.
100      * This is why there is not a <CODE>set</CODE> method for the searchResultReference property.
101      * 
102      * <p>
103      * For example, to add a new item, do as follows:
104      * <pre>
105      *    getSearchResultReference().add(newItem);
106      * </pre>
107      * 
108      * 
109      * <p>
110      * Objects of the following type(s) are allowed in the list
111      * {@link SearchResultReference }
112      * 
113      * 
114      */
115     public List<SearchResultReference> getSearchResultReference() {
116         if (searchResultReference == null) {
117             searchResultReference = new ArrayList<SearchResultReference>();
118         }
119         return this.searchResultReference;
120     }
121 
122     /**
123      * Gets the value of the searchResultDone property.
124      * 
125      * @return
126      *     possible object is
127      *     {@link LDAPResult }
128      *     
129      */
130     public LDAPResult getSearchResultDone() {
131         return searchResultDone;
132     }
133 
134     /**
135      * Sets the value of the searchResultDone property.
136      * 
137      * @param value
138      *     allowed object is
139      *     {@link LDAPResult }
140      *     
141      */
142     public void setSearchResultDone(LDAPResult value) {
143         this.searchResultDone = value;
144     }
145 
146     /**
147      * Gets the value of the requestID property.
148      * 
149      * @return
150      *     possible object is
151      *     {@link String }
152      *     
153      */
154     public String getRequestID() {
155         return requestID;
156     }
157 
158     /**
159      * Sets the value of the requestID property.
160      * 
161      * @param value
162      *     allowed object is
163      *     {@link String }
164      *     
165      */
166     public void setRequestID(String value) {
167         this.requestID = value;
168     }
169 
170 }