View Javadoc
1   
2   package org.oasis_open.docs.wsn.b_2;
3   
4   import java.util.ArrayList;
5   import java.util.HashMap;
6   import java.util.List;
7   import java.util.Map;
8   import javax.xml.bind.annotation.XmlAccessType;
9   import javax.xml.bind.annotation.XmlAccessorType;
10  import javax.xml.bind.annotation.XmlAnyAttribute;
11  import javax.xml.bind.annotation.XmlAnyElement;
12  import javax.xml.bind.annotation.XmlElement;
13  import javax.xml.bind.annotation.XmlRootElement;
14  import javax.xml.bind.annotation.XmlType;
15  import javax.xml.namespace.QName;
16  import org.w3c.dom.Element;
17  
18  
19  /**
20   * <p>Java class for anonymous complex type.
21   * 
22   * <p>The following schema fragment specifies the expected content contained within this class.
23   * 
24   * <pre>
25   * &lt;complexType>
26   *   &lt;complexContent>
27   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28   *       &lt;sequence>
29   *         &lt;element ref="{http://docs.oasis-open.org/wsn/b-2}NotificationMessage" maxOccurs="unbounded" minOccurs="0"/>
30   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
31   *       &lt;/sequence>
32   *       &lt;anyAttribute/>
33   *     &lt;/restriction>
34   *   &lt;/complexContent>
35   * &lt;/complexType>
36   * </pre>
37   * 
38   * 
39   */
40  @XmlAccessorType(XmlAccessType.FIELD)
41  @XmlType(name = "", propOrder = {
42      "notificationMessage",
43      "any"
44  })
45  @XmlRootElement(name = "GetMessagesResponse")
46  public class GetMessagesResponse {
47  
48      @XmlElement(name = "NotificationMessage")
49      protected List<NotificationMessageHolderType> notificationMessage;
50      @XmlAnyElement(lax = true)
51      protected List<Object> any;
52      @XmlAnyAttribute
53      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
54  
55      /**
56       * Gets the value of the notificationMessage property.
57       * 
58       * <p>
59       * This accessor method returns a reference to the live list,
60       * not a snapshot. Therefore any modification you make to the
61       * returned list will be present inside the JAXB object.
62       * This is why there is not a <CODE>set</CODE> method for the notificationMessage property.
63       * 
64       * <p>
65       * For example, to add a new item, do as follows:
66       * <pre>
67       *    getNotificationMessage().add(newItem);
68       * </pre>
69       * 
70       * 
71       * <p>
72       * Objects of the following type(s) are allowed in the list
73       * {@link NotificationMessageHolderType }
74       * 
75       * 
76       */
77      public List<NotificationMessageHolderType> getNotificationMessage() {
78          if (notificationMessage == null) {
79              notificationMessage = new ArrayList<NotificationMessageHolderType>();
80          }
81          return this.notificationMessage;
82      }
83  
84      /**
85       * Gets the value of the any property.
86       * 
87       * <p>
88       * This accessor method returns a reference to the live list,
89       * not a snapshot. Therefore any modification you make to the
90       * returned list will be present inside the JAXB object.
91       * This is why there is not a <CODE>set</CODE> method for the any property.
92       * 
93       * <p>
94       * For example, to add a new item, do as follows:
95       * <pre>
96       *    getAny().add(newItem);
97       * </pre>
98       * 
99       * 
100      * <p>
101      * Objects of the following type(s) are allowed in the list
102      * {@link Element }
103      * {@link Object }
104      * 
105      * 
106      */
107     public List<Object> getAny() {
108         if (any == null) {
109             any = new ArrayList<Object>();
110         }
111         return this.any;
112     }
113 
114     /**
115      * Gets a map that contains attributes that aren't bound to any typed property on this class.
116      * 
117      * <p>
118      * the map is keyed by the name of the attribute and 
119      * the value is the string value of the attribute.
120      * 
121      * the map returned by this method is live, and you can add new attribute
122      * by updating the map directly. Because of this design, there's no setter.
123      * 
124      * 
125      * @return
126      *     always non-null
127      */
128     public Map<QName, String> getOtherAttributes() {
129         return otherAttributes;
130     }
131 
132 }