1 /* 2 * Copyright 2009 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.xds.core.ebxml.ebxml30; 17 18 import org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs.RegistryResponseType; 19 20 import javax.activation.DataHandler; 21 import javax.xml.bind.annotation.*; 22 import java.util.ArrayList; 23 import java.util.List; 24 25 26 /** 27 * <p>Java class for RetrieveDocumentSetResponseType complex type. 28 * 29 * <p>The following schema fragment specifies the expected content contained within this class. 30 * 31 * <pre> 32 * <complexType name="RetrieveDocumentSetResponseType"> 33 * <complexContent> 34 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 35 * <sequence> 36 * <element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0}RegistryResponse"/> 37 * <sequence minOccurs="0"> 38 * <element name="DocumentResponse" maxOccurs="unbounded"> 39 * <complexType> 40 * <complexContent> 41 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 42 * <sequence> 43 * <element name="HomeCommunityId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 44 * <element name="RepositoryUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 45 * <element name="DocumentUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 46 * <element name="NewRepositoryUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 47 * <element name="NewDocumentUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 48 * <element name="mimeType" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 49 * <element name="Document" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> 50 * </sequence> 51 * </restriction> 52 * </complexContent> 53 * </complexType> 54 * </element> 55 * </sequence> 56 * </sequence> 57 * </restriction> 58 * </complexContent> 59 * </complexType> 60 * </pre> 61 * 62 * 63 */ 64 @XmlRootElement(name = "RetrieveDocumentSetResponse") 65 @XmlAccessorType(XmlAccessType.FIELD) 66 @XmlType(name = "RetrieveDocumentSetResponseType", propOrder = { 67 "registryResponse", 68 "documentResponse" 69 }) 70 public class RetrieveDocumentSetResponseType { 71 72 @XmlElement(name = "RegistryResponse", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0", required = true) 73 private RegistryResponseType registryResponse; 74 @XmlElement(name = "DocumentResponse") 75 private List<RetrieveDocumentSetResponseType.DocumentResponse> documentResponse; 76 77 /** 78 * Gets the value of the registryResponse property. 79 * 80 * @return 81 * possible object is 82 * {@link RegistryResponseType } 83 * 84 */ 85 public RegistryResponseType getRegistryResponse() { 86 return registryResponse; 87 } 88 89 /** 90 * Sets the value of the registryResponse property. 91 * 92 * @param value 93 * allowed object is 94 * {@link RegistryResponseType } 95 * 96 */ 97 public void setRegistryResponse(RegistryResponseType value) { 98 registryResponse = value; 99 } 100 101 /** 102 * Gets the value of the documentResponse property. 103 * 104 * <p> 105 * This accessor method returns a reference to the live list, 106 * not a snapshot. Therefore any modification you make to the 107 * returned list will be present inside the JAXB object. 108 * This is why there is not a <CODE>set</CODE> method for the documentResponse property. 109 * 110 * <p> 111 * For example, to add a new item, do as follows: 112 * <pre> 113 * getDocumentResponse().add(newItem); 114 * </pre> 115 * 116 * 117 * <p> 118 * Objects of the following type(s) are allowed in the list 119 * {@link RetrieveDocumentSetResponseType.DocumentResponse } 120 * 121 * 122 * @return the document response. 123 */ 124 public List<RetrieveDocumentSetResponseType.DocumentResponse> getDocumentResponse() { 125 if (documentResponse == null) { 126 documentResponse = new ArrayList<>(); 127 } 128 return documentResponse; 129 } 130 131 132 /** 133 * <p>Java class for anonymous complex type. 134 * 135 * <p>The following schema fragment specifies the expected content contained within this class. 136 * 137 * <pre> 138 * <complexType> 139 * <complexContent> 140 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 141 * <sequence> 142 * <element name="HomeCommunityId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 143 * <element name="RepositoryUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 144 * <element name="DocumentUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 145 * <element name="mimeType" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 146 * <element name="Document" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> 147 * </sequence> 148 * </restriction> 149 * </complexContent> 150 * </complexType> 151 * </pre> 152 * 153 * 154 */ 155 @XmlAccessorType(XmlAccessType.FIELD) 156 @XmlType(name = "", propOrder = { 157 "homeCommunityId", 158 "repositoryUniqueId", 159 "documentUniqueId", 160 "newRepositoryUniqueId", 161 "newDocumentUniqueId", 162 "mimeType", 163 "document" 164 }) 165 public static class DocumentResponse { 166 167 @XmlElement(name = "HomeCommunityId") 168 private String homeCommunityId; 169 @XmlElement(name = "RepositoryUniqueId", required = true) 170 private String repositoryUniqueId; 171 @XmlElement(name = "DocumentUniqueId", required = true) 172 private String documentUniqueId; 173 @XmlElement(name = "NewRepositoryUniqueId") 174 private String newRepositoryUniqueId; 175 @XmlElement(name = "NewDocumentUniqueId") 176 private String newDocumentUniqueId; 177 @XmlElement(required = true) 178 private String mimeType; 179 @XmlElement(name = "Document", required = true) 180 @XmlMimeType("application/octet-stream") 181 private DataHandler document; 182 183 /** 184 * Gets the value of the homeCommunityId property. 185 * 186 * @return 187 * possible object is 188 * {@link String } 189 * 190 */ 191 public String getHomeCommunityId() { 192 return homeCommunityId; 193 } 194 195 /** 196 * Sets the value of the homeCommunityId property. 197 * 198 * @param value 199 * allowed object is 200 * {@link String } 201 * 202 */ 203 public void setHomeCommunityId(String value) { 204 homeCommunityId = value; 205 } 206 207 /** 208 * Gets the value of the repositoryUniqueId property. 209 * 210 * @return 211 * possible object is 212 * {@link String } 213 * 214 */ 215 public String getRepositoryUniqueId() { 216 return repositoryUniqueId; 217 } 218 219 /** 220 * Sets the value of the repositoryUniqueId property. 221 * 222 * @param value 223 * allowed object is 224 * {@link String } 225 * 226 */ 227 public void setRepositoryUniqueId(String value) { 228 repositoryUniqueId = value; 229 } 230 231 /** 232 * Gets the value of the documentUniqueId property. 233 * 234 * @return 235 * possible object is 236 * {@link String } 237 * 238 */ 239 public String getDocumentUniqueId() { 240 return documentUniqueId; 241 } 242 243 /** 244 * Sets the value of the documentUniqueId property. 245 * 246 * @param value 247 * allowed object is 248 * {@link String } 249 * 250 */ 251 public void setDocumentUniqueId(String value) { 252 documentUniqueId = value; 253 } 254 255 public String getNewRepositoryUniqueId() { 256 return newRepositoryUniqueId; 257 } 258 259 public void setNewRepositoryUniqueId(String newRepositoryUniqueId) { 260 this.newRepositoryUniqueId = newRepositoryUniqueId; 261 } 262 263 public String getNewDocumentUniqueId() { 264 return newDocumentUniqueId; 265 } 266 267 public void setNewDocumentUniqueId(String newDocumentUniqueId) { 268 this.newDocumentUniqueId = newDocumentUniqueId; 269 } 270 271 /** 272 * Gets the value of the mimeType property. 273 * 274 * @return 275 * possible object is 276 * {@link String } 277 * 278 */ 279 public String getMimeType() { 280 return mimeType; 281 } 282 283 /** 284 * Sets the value of the mimeType property. 285 * 286 * @param value 287 * allowed object is 288 * {@link String } 289 * 290 */ 291 public void setMimeType(String value) { 292 mimeType = value; 293 } 294 295 /** 296 * Gets the value of the document property. 297 * 298 * @return 299 * possible object is 300 * {@link DataHandler } 301 * 302 */ 303 public DataHandler getDocument() { 304 return document; 305 } 306 307 /** 308 * Sets the value of the document property. 309 * 310 * @param value 311 * allowed object is 312 * {@link DataHandler } 313 * 314 */ 315 public void setDocument(DataHandler value) { 316 document = value; 317 } 318 319 } 320 321 }