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     * &lt;complexType>
026     *   &lt;complexContent>
027     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
028     *       &lt;sequence>
029     *         &lt;element ref="{http://docs.oasis-open.org/wsn/b-2}NotificationMessage" maxOccurs="unbounded" minOccurs="0"/>
030     *         &lt;any/>
031     *       &lt;/sequence>
032     *     &lt;/restriction>
033     *   &lt;/complexContent>
034     * &lt;/complexType>
035     * </pre>
036     * 
037     * 
038     */
039    @XmlAccessorType(XmlAccessType.FIELD)
040    @XmlType(name = "", propOrder = {
041        "notificationMessage",
042        "any"
043    })
044    @XmlRootElement(name = "GetMessagesResponse")
045    public class GetMessagesResponse {
046    
047        @XmlElement(name = "NotificationMessage")
048        protected List<NotificationMessageHolderType> notificationMessage;
049        @XmlAnyElement(lax = true)
050        protected List<Object> any;
051        @XmlAnyAttribute
052        private Map<QName, String> otherAttributes = new HashMap<QName, String>();
053    
054        /**
055         * Gets the value of the notificationMessage property.
056         * 
057         * <p>
058         * This accessor method returns a reference to the live list,
059         * not a snapshot. Therefore any modification you make to the
060         * returned list will be present inside the JAXB object.
061         * This is why there is not a <CODE>set</CODE> method for the notificationMessage property.
062         * 
063         * <p>
064         * For example, to add a new item, do as follows:
065         * <pre>
066         *    getNotificationMessage().add(newItem);
067         * </pre>
068         * 
069         * 
070         * <p>
071         * Objects of the following type(s) are allowed in the list
072         * {@link NotificationMessageHolderType }
073         * 
074         * 
075         */
076        public List<NotificationMessageHolderType> getNotificationMessage() {
077            if (notificationMessage == null) {
078                notificationMessage = new ArrayList<NotificationMessageHolderType>();
079            }
080            return this.notificationMessage;
081        }
082    
083        /**
084         * Gets the value of the any property.
085         * 
086         * <p>
087         * This accessor method returns a reference to the live list,
088         * not a snapshot. Therefore any modification you make to the
089         * returned list will be present inside the JAXB object.
090         * This is why there is not a <CODE>set</CODE> method for the any property.
091         * 
092         * <p>
093         * For example, to add a new item, do as follows:
094         * <pre>
095         *    getAny().add(newItem);
096         * </pre>
097         * 
098         * 
099         * <p>
100         * Objects of the following type(s) are allowed in the list
101         * {@link Object }
102         * {@link Element }
103         * 
104         * 
105         */
106        public List<Object> getAny() {
107            if (any == null) {
108                any = new ArrayList<Object>();
109            }
110            return this.any;
111        }
112    
113        /**
114         * Gets a map that contains attributes that aren't bound to any typed property on this class.
115         * 
116         * <p>
117         * the map is keyed by the name of the attribute and 
118         * the value is the string value of the attribute.
119         * 
120         * the map returned by this method is live, and you can add new attribute
121         * by updating the map directly. Because of this design, there's no setter.
122         * 
123         * 
124         * @return
125         *     always non-null
126         */
127        public Map<QName, String> getOtherAttributes() {
128            return otherAttributes;
129        }
130    
131    }