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.JAXBElement;
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlElementRef;
24  import javax.xml.bind.annotation.XmlElementRefs;
25  import javax.xml.bind.annotation.XmlType;
26  
27  
28  /**
29   * <p>Java class for FilterSet complex type.
30   * 
31   * <p>The following schema fragment specifies the expected content contained within this class.
32   * 
33   * <pre>
34   * &lt;complexType name="FilterSet">
35   *   &lt;complexContent>
36   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37   *       &lt;sequence>
38   *         &lt;group ref="{urn:oasis:names:tc:DSML:2:0:core}FilterGroup" maxOccurs="unbounded" minOccurs="0"/>
39   *       &lt;/sequence>
40   *     &lt;/restriction>
41   *   &lt;/complexContent>
42   * &lt;/complexType>
43   * </pre>
44   * 
45   * 
46   */
47  @XmlAccessorType(XmlAccessType.FIELD)
48  @XmlType(name = "FilterSet", propOrder = {
49      "filterGroup"
50  })
51  public class FilterSet {
52  
53      @XmlElementRefs({
54          @XmlElementRef(name = "and", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
55          @XmlElementRef(name = "equalityMatch", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
56          @XmlElementRef(name = "not", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
57          @XmlElementRef(name = "lessOrEqual", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
58          @XmlElementRef(name = "substrings", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
59          @XmlElementRef(name = "present", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
60          @XmlElementRef(name = "approxMatch", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
61          @XmlElementRef(name = "or", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
62          @XmlElementRef(name = "greaterOrEqual", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false),
63          @XmlElementRef(name = "extensibleMatch", namespace = "urn:oasis:names:tc:DSML:2:0:core", type = JAXBElement.class, required = false)
64      })
65      protected List<JAXBElement<?>> filterGroup;
66  
67      /**
68       * Gets the value of the filterGroup property.
69       * 
70       * <p>
71       * This accessor method returns a reference to the live list,
72       * not a snapshot. Therefore any modification you make to the
73       * returned list will be present inside the JAXB object.
74       * This is why there is not a <CODE>set</CODE> method for the filterGroup property.
75       * 
76       * <p>
77       * For example, to add a new item, do as follows:
78       * <pre>
79       *    getFilterGroup().add(newItem);
80       * </pre>
81       * 
82       * 
83       * <p>
84       * Objects of the following type(s) are allowed in the list
85       * {@link JAXBElement }{@code <}{@link FilterSet }{@code >}
86       * {@link JAXBElement }{@code <}{@link AttributeValueAssertion }{@code >}
87       * {@link JAXBElement }{@code <}{@link Filter }{@code >}
88       * {@link JAXBElement }{@code <}{@link AttributeValueAssertion }{@code >}
89       * {@link JAXBElement }{@code <}{@link SubstringFilter }{@code >}
90       * {@link JAXBElement }{@code <}{@link AttributeDescription }{@code >}
91       * {@link JAXBElement }{@code <}{@link AttributeValueAssertion }{@code >}
92       * {@link JAXBElement }{@code <}{@link FilterSet }{@code >}
93       * {@link JAXBElement }{@code <}{@link AttributeValueAssertion }{@code >}
94       * {@link JAXBElement }{@code <}{@link MatchingRuleAssertion }{@code >}
95       * 
96       * 
97       */
98      public List<JAXBElement<?>> getFilterGroup() {
99          if (filterGroup == null) {
100             filterGroup = new ArrayList<JAXBElement<?>>();
101         }
102         return this.filterGroup;
103     }
104 
105 }