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