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