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 javax.xml.bind.annotation.XmlAccessType;
19  import javax.xml.bind.annotation.XmlAccessorType;
20  import javax.xml.bind.annotation.XmlAttribute;
21  import javax.xml.bind.annotation.XmlType;
22  
23  
24  /**
25   * <p>Java class for ModifyDNRequest complex type.
26   * 
27   * <p>The following schema fragment specifies the expected content contained within this class.
28   * 
29   * <pre>
30   * &lt;complexType name="ModifyDNRequest">
31   *   &lt;complexContent>
32   *     &lt;extension base="{urn:oasis:names:tc:DSML:2:0:core}DsmlMessage">
33   *       &lt;attribute name="dn" use="required" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlDN" />
34   *       &lt;attribute name="newrdn" use="required" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlRDN" />
35   *       &lt;attribute name="deleteoldrdn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
36   *       &lt;attribute name="newSuperior" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlDN" />
37   *     &lt;/extension>
38   *   &lt;/complexContent>
39   * &lt;/complexType>
40   * </pre>
41   * 
42   * 
43   */
44  @XmlAccessorType(XmlAccessType.FIELD)
45  @XmlType(name = "ModifyDNRequest")
46  public class ModifyDNRequest
47      extends DsmlMessage
48  {
49  
50      @XmlAttribute(name = "dn", required = true)
51      protected String dn;
52      @XmlAttribute(name = "newrdn", required = true)
53      protected String newrdn;
54      @XmlAttribute(name = "deleteoldrdn")
55      protected Boolean deleteoldrdn;
56      @XmlAttribute(name = "newSuperior")
57      protected String newSuperior;
58  
59      /**
60       * Gets the value of the dn property.
61       * 
62       * @return
63       *     possible object is
64       *     {@link String }
65       *     
66       */
67      public String getDn() {
68          return dn;
69      }
70  
71      /**
72       * Sets the value of the dn property.
73       * 
74       * @param value
75       *     allowed object is
76       *     {@link String }
77       *     
78       */
79      public void setDn(String value) {
80          this.dn = value;
81      }
82  
83      /**
84       * Gets the value of the newrdn property.
85       * 
86       * @return
87       *     possible object is
88       *     {@link String }
89       *     
90       */
91      public String getNewrdn() {
92          return newrdn;
93      }
94  
95      /**
96       * Sets the value of the newrdn property.
97       * 
98       * @param value
99       *     allowed object is
100      *     {@link String }
101      *     
102      */
103     public void setNewrdn(String value) {
104         this.newrdn = value;
105     }
106 
107     /**
108      * Gets the value of the deleteoldrdn property.
109      * 
110      * @return
111      *     possible object is
112      *     {@link Boolean }
113      *     
114      */
115     public boolean isDeleteoldrdn() {
116         if (deleteoldrdn == null) {
117             return true;
118         } else {
119             return deleteoldrdn;
120         }
121     }
122 
123     /**
124      * Sets the value of the deleteoldrdn property.
125      * 
126      * @param value
127      *     allowed object is
128      *     {@link Boolean }
129      *     
130      */
131     public void setDeleteoldrdn(Boolean value) {
132         this.deleteoldrdn = value;
133     }
134 
135     /**
136      * Gets the value of the newSuperior property.
137      * 
138      * @return
139      *     possible object is
140      *     {@link String }
141      *     
142      */
143     public String getNewSuperior() {
144         return newSuperior;
145     }
146 
147     /**
148      * Sets the value of the newSuperior property.
149      * 
150      * @param value
151      *     allowed object is
152      *     {@link String }
153      *     
154      */
155     public void setNewSuperior(String value) {
156         this.newSuperior = value;
157     }
158 
159 }