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 javax.xml.bind.annotation.*; 19 import java.util.ArrayList; 20 import java.util.List; 21 22 23 /** 24 * <p>Java class for RetrieveDocumentSetRequestType complex type. 25 * 26 * <p>The following schema fragment specifies the expected content contained within this class. 27 * 28 * <pre> 29 * <complexType name="RetrieveDocumentSetRequestType"> 30 * <complexContent> 31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 32 * <sequence> 33 * <element name="DocumentRequest" maxOccurs="unbounded"> 34 * <complexType> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element name="HomeCommunityId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 39 * <element name="RepositoryUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 40 * <element name="DocumentUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 41 * </sequence> 42 * </restriction> 43 * </complexContent> 44 * </complexType> 45 * </element> 46 * </sequence> 47 * </restriction> 48 * </complexContent> 49 * </complexType> 50 * </pre> 51 * 52 * 53 */ 54 @XmlRootElement(name = "RetrieveDocumentSetRequest") 55 @XmlAccessorType(XmlAccessType.FIELD) 56 @XmlType(name = "RetrieveDocumentSetRequestType", propOrder = { 57 "documentRequest" 58 }) 59 public class RetrieveDocumentSetRequestType { 60 61 @XmlElement(name = "DocumentRequest", required = true) 62 private List<RetrieveDocumentSetRequestType.DocumentRequest> documentRequest; 63 64 /** 65 * Gets the value of the documentRequest 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 documentRequest property. 72 * 73 * <p> 74 * For example, to add a new item, do as follows: 75 * <pre> 76 * getDocumentRequest().add(newItem); 77 * </pre> 78 * 79 * 80 * <p> 81 * Objects of the following type(s) are allowed in the list 82 * {@link RetrieveDocumentSetRequestType.DocumentRequest } 83 * 84 * 85 * @return the document request. 86 */ 87 public List<RetrieveDocumentSetRequestType.DocumentRequest> getDocumentRequest() { 88 if (documentRequest == null) { 89 documentRequest = new ArrayList<>(); 90 } 91 return documentRequest; 92 } 93 94 95 /** 96 * <p>Java class for anonymous complex type. 97 * 98 * <p>The following schema fragment specifies the expected content contained within this class. 99 * 100 * <pre> 101 * <complexType> 102 * <complexContent> 103 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 104 * <sequence> 105 * <element name="HomeCommunityId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" minOccurs="0"/> 106 * <element name="RepositoryUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 107 * <element name="DocumentUniqueId" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName"/> 108 * </sequence> 109 * </restriction> 110 * </complexContent> 111 * </complexType> 112 * </pre> 113 * 114 * 115 */ 116 @XmlAccessorType(XmlAccessType.FIELD) 117 @XmlType(name = "", propOrder = { 118 "homeCommunityId", 119 "repositoryUniqueId", 120 "documentUniqueId" 121 }) 122 public static class DocumentRequest { 123 124 @XmlElement(name = "HomeCommunityId") 125 private String homeCommunityId; 126 @XmlElement(name = "RepositoryUniqueId", required = true) 127 private String repositoryUniqueId; 128 @XmlElement(name = "DocumentUniqueId", required = true) 129 private String documentUniqueId; 130 131 /** 132 * Gets the value of the homeCommunityId property. 133 * 134 * @return 135 * possible object is 136 * {@link String } 137 * 138 */ 139 public String getHomeCommunityId() { 140 return homeCommunityId; 141 } 142 143 /** 144 * Sets the value of the homeCommunityId property. 145 * 146 * @param value 147 * allowed object is 148 * {@link String } 149 * 150 */ 151 public void setHomeCommunityId(String value) { 152 homeCommunityId = value; 153 } 154 155 /** 156 * Gets the value of the repositoryUniqueId property. 157 * 158 * @return 159 * possible object is 160 * {@link String } 161 * 162 */ 163 public String getRepositoryUniqueId() { 164 return repositoryUniqueId; 165 } 166 167 /** 168 * Sets the value of the repositoryUniqueId property. 169 * 170 * @param value 171 * allowed object is 172 * {@link String } 173 * 174 */ 175 public void setRepositoryUniqueId(String value) { 176 repositoryUniqueId = value; 177 } 178 179 /** 180 * Gets the value of the documentUniqueId property. 181 * 182 * @return 183 * possible object is 184 * {@link String } 185 * 186 */ 187 public String getDocumentUniqueId() { 188 return documentUniqueId; 189 } 190 191 /** 192 * Sets the value of the documentUniqueId property. 193 * 194 * @param value 195 * allowed object is 196 * {@link String } 197 * 198 */ 199 public void setDocumentUniqueId(String value) { 200 documentUniqueId = value; 201 } 202 203 } 204 205 }