001
002 package org.oasis_open.docs.wsn.b_2;
003
004 import java.util.ArrayList;
005 import java.util.HashMap;
006 import java.util.List;
007 import java.util.Map;
008 import javax.xml.bind.annotation.XmlAccessType;
009 import javax.xml.bind.annotation.XmlAccessorType;
010 import javax.xml.bind.annotation.XmlAnyAttribute;
011 import javax.xml.bind.annotation.XmlAnyElement;
012 import javax.xml.bind.annotation.XmlElement;
013 import javax.xml.bind.annotation.XmlRootElement;
014 import javax.xml.bind.annotation.XmlType;
015 import javax.xml.namespace.QName;
016 import org.w3c.dom.Element;
017
018
019 /**
020 * <p>Java class for anonymous complex type.
021 *
022 * <p>The following schema fragment specifies the expected content contained within this class.
023 *
024 * <pre>
025 * <complexType>
026 * <complexContent>
027 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
028 * <sequence>
029 * <element ref="{http://docs.oasis-open.org/wsn/b-2}NotificationMessage" maxOccurs="unbounded" minOccurs="0"/>
030 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
031 * </sequence>
032 * <anyAttribute/>
033 * </restriction>
034 * </complexContent>
035 * </complexType>
036 * </pre>
037 *
038 *
039 */
040 @XmlAccessorType(XmlAccessType.FIELD)
041 @XmlType(name = "", propOrder = {
042 "notificationMessage",
043 "any"
044 })
045 @XmlRootElement(name = "GetMessagesResponse")
046 public class GetMessagesResponse {
047
048 @XmlElement(name = "NotificationMessage")
049 protected List<NotificationMessageHolderType> notificationMessage;
050 @XmlAnyElement(lax = true)
051 protected List<Object> any;
052 @XmlAnyAttribute
053 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
054
055 /**
056 * Gets the value of the notificationMessage property.
057 *
058 * <p>
059 * This accessor method returns a reference to the live list,
060 * not a snapshot. Therefore any modification you make to the
061 * returned list will be present inside the JAXB object.
062 * This is why there is not a <CODE>set</CODE> method for the notificationMessage property.
063 *
064 * <p>
065 * For example, to add a new item, do as follows:
066 * <pre>
067 * getNotificationMessage().add(newItem);
068 * </pre>
069 *
070 *
071 * <p>
072 * Objects of the following type(s) are allowed in the list
073 * {@link NotificationMessageHolderType }
074 *
075 *
076 */
077 public List<NotificationMessageHolderType> getNotificationMessage() {
078 if (notificationMessage == null) {
079 notificationMessage = new ArrayList<NotificationMessageHolderType>();
080 }
081 return this.notificationMessage;
082 }
083
084 /**
085 * Gets the value of the any property.
086 *
087 * <p>
088 * This accessor method returns a reference to the live list,
089 * not a snapshot. Therefore any modification you make to the
090 * returned list will be present inside the JAXB object.
091 * This is why there is not a <CODE>set</CODE> method for the any property.
092 *
093 * <p>
094 * For example, to add a new item, do as follows:
095 * <pre>
096 * getAny().add(newItem);
097 * </pre>
098 *
099 *
100 * <p>
101 * Objects of the following type(s) are allowed in the list
102 * {@link Object }
103 * {@link Element }
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 }