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.XmlType;
24  
25  
26  /**
27   * <p>Java class for AddRequest complex type.
28   * 
29   * <p>The following schema fragment specifies the expected content contained within this class.
30   * 
31   * <pre>
32   * &lt;complexType name="AddRequest">
33   *   &lt;complexContent>
34   *     &lt;extension base="{urn:oasis:names:tc:DSML:2:0:core}DsmlMessage">
35   *       &lt;sequence>
36   *         &lt;element name="attr" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlAttr" maxOccurs="unbounded" minOccurs="0"/>
37   *       &lt;/sequence>
38   *       &lt;attribute name="dn" use="required" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlDN" />
39   *     &lt;/extension>
40   *   &lt;/complexContent>
41   * &lt;/complexType>
42   * </pre>
43   * 
44   * 
45   */
46  @XmlAccessorType(XmlAccessType.FIELD)
47  @XmlType(name = "AddRequest", propOrder = {
48      "attr"
49  })
50  public class AddRequest
51      extends DsmlMessage
52  {
53  
54      protected List<DsmlAttr> attr;
55      @XmlAttribute(name = "dn", required = true)
56      protected String dn;
57  
58      /**
59       * Gets the value of the attr 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 attr property.
66       * 
67       * <p>
68       * For example, to add a new item, do as follows:
69       * <pre>
70       *    getAttr().add(newItem);
71       * </pre>
72       * 
73       * 
74       * <p>
75       * Objects of the following type(s) are allowed in the list
76       * {@link DsmlAttr }
77       * 
78       * 
79       */
80      public List<DsmlAttr> getAttr() {
81          if (attr == null) {
82              attr = new ArrayList<DsmlAttr>();
83          }
84          return this.attr;
85      }
86  
87      /**
88       * Gets the value of the dn property.
89       * 
90       * @return
91       *     possible object is
92       *     {@link String }
93       *     
94       */
95      public String getDn() {
96          return dn;
97      }
98  
99      /**
100      * Sets the value of the dn property.
101      * 
102      * @param value
103      *     allowed object is
104      *     {@link String }
105      *     
106      */
107     public void setDn(String value) {
108         this.dn = value;
109     }
110 
111 }