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.XmlElement;
23  import javax.xml.bind.annotation.XmlSchemaType;
24  import javax.xml.bind.annotation.XmlType;
25  
26  
27  /**
28   * <p>Java class for SearchResultReference complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType name="SearchResultReference">
34   *   &lt;complexContent>
35   *     &lt;extension base="{urn:oasis:names:tc:DSML:2:0:core}DsmlMessage">
36   *       &lt;sequence>
37   *         &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded"/>
38   *       &lt;/sequence>
39   *     &lt;/extension>
40   *   &lt;/complexContent>
41   * &lt;/complexType>
42   * </pre>
43   * 
44   * 
45   */
46  @XmlAccessorType(XmlAccessType.FIELD)
47  @XmlType(name = "SearchResultReference", propOrder = {
48      "ref"
49  })
50  public class SearchResultReference
51      extends DsmlMessage
52  {
53  
54      @XmlElement(required = true)
55      @XmlSchemaType(name = "anyURI")
56      protected List<String> ref;
57  
58      /**
59       * Gets the value of the ref property.
60       * 
61       * <p>
62       * This accessor method returns a reference to the live list,
63       * not a snapshot. Therefore any modification you make to the
64       * returned list will be present inside the JAXB object.
65       * This is why there is not a <CODE>set</CODE> method for the ref property.
66       * 
67       * <p>
68       * For example, to add a new item, do as follows:
69       * <pre>
70       *    getRef().add(newItem);
71       * </pre>
72       * 
73       * 
74       * <p>
75       * Objects of the following type(s) are allowed in the list
76       * {@link String }
77       * 
78       * 
79       */
80      public List<String> getRef() {
81          if (ref == null) {
82              ref = new ArrayList<String>();
83          }
84          return this.ref;
85      }
86  
87  }