001    
002    package org.oasis_open.docs.wsn.b_2;
003    
004    import java.util.ArrayList;
005    import java.util.List;
006    import javax.xml.bind.annotation.XmlAccessType;
007    import javax.xml.bind.annotation.XmlAccessorType;
008    import javax.xml.bind.annotation.XmlAnyElement;
009    import javax.xml.bind.annotation.XmlElement;
010    import javax.xml.bind.annotation.XmlRootElement;
011    import javax.xml.bind.annotation.XmlSchemaType;
012    import javax.xml.bind.annotation.XmlType;
013    import javax.xml.datatype.XMLGregorianCalendar;
014    import javax.xml.ws.wsaddressing.W3CEndpointReference;
015    import org.w3c.dom.Element;
016    
017    
018    /**
019     * <p>Java class for anonymous complex type.
020     * 
021     * <p>The following schema fragment specifies the expected content contained within this class.
022     * 
023     * <pre>
024     * &lt;complexType>
025     *   &lt;complexContent>
026     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
027     *       &lt;sequence>
028     *         &lt;element name="SubscriptionReference" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType"/>
029     *         &lt;element ref="{http://docs.oasis-open.org/wsn/b-2}CurrentTime" minOccurs="0"/>
030     *         &lt;element ref="{http://docs.oasis-open.org/wsn/b-2}TerminationTime" minOccurs="0"/>
031     *         &lt;any/>
032     *       &lt;/sequence>
033     *     &lt;/restriction>
034     *   &lt;/complexContent>
035     * &lt;/complexType>
036     * </pre>
037     * 
038     * 
039     */
040    @XmlAccessorType(XmlAccessType.FIELD)
041    @XmlType(name = "", propOrder = {
042        "subscriptionReference",
043        "currentTime",
044        "terminationTime",
045        "any"
046    })
047    @XmlRootElement(name = "SubscribeResponse")
048    public class SubscribeResponse {
049    
050        @XmlElement(name = "SubscriptionReference", required = true)
051        protected W3CEndpointReference subscriptionReference;
052        @XmlElement(name = "CurrentTime")
053        @XmlSchemaType(name = "dateTime")
054        protected XMLGregorianCalendar currentTime;
055        @XmlElement(name = "TerminationTime", nillable = true)
056        @XmlSchemaType(name = "dateTime")
057        protected XMLGregorianCalendar terminationTime;
058        @XmlAnyElement(lax = true)
059        protected List<Object> any;
060    
061        /**
062         * Gets the value of the subscriptionReference property.
063         * 
064         * @return
065         *     possible object is
066         *     {@link W3CEndpointReference }
067         *     
068         */
069        public W3CEndpointReference getSubscriptionReference() {
070            return subscriptionReference;
071        }
072    
073        /**
074         * Sets the value of the subscriptionReference property.
075         * 
076         * @param value
077         *     allowed object is
078         *     {@link W3CEndpointReference }
079         *     
080         */
081        public void setSubscriptionReference(W3CEndpointReference value) {
082            this.subscriptionReference = value;
083        }
084    
085        /**
086         * Gets the value of the currentTime property.
087         * 
088         * @return
089         *     possible object is
090         *     {@link XMLGregorianCalendar }
091         *     
092         */
093        public XMLGregorianCalendar getCurrentTime() {
094            return currentTime;
095        }
096    
097        /**
098         * Sets the value of the currentTime property.
099         * 
100         * @param value
101         *     allowed object is
102         *     {@link XMLGregorianCalendar }
103         *     
104         */
105        public void setCurrentTime(XMLGregorianCalendar value) {
106            this.currentTime = value;
107        }
108    
109        /**
110         * Gets the value of the terminationTime property.
111         * 
112         * @return
113         *     possible object is
114         *     {@link XMLGregorianCalendar }
115         *     
116         */
117        public XMLGregorianCalendar getTerminationTime() {
118            return terminationTime;
119        }
120    
121        /**
122         * Sets the value of the terminationTime property.
123         * 
124         * @param value
125         *     allowed object is
126         *     {@link XMLGregorianCalendar }
127         *     
128         */
129        public void setTerminationTime(XMLGregorianCalendar value) {
130            this.terminationTime = value;
131        }
132    
133        /**
134         * Gets the value of the any property.
135         * 
136         * <p>
137         * This accessor method returns a reference to the live list,
138         * not a snapshot. Therefore any modification you make to the
139         * returned list will be present inside the JAXB object.
140         * This is why there is not a <CODE>set</CODE> method for the any property.
141         * 
142         * <p>
143         * For example, to add a new item, do as follows:
144         * <pre>
145         *    getAny().add(newItem);
146         * </pre>
147         * 
148         * 
149         * <p>
150         * Objects of the following type(s) are allowed in the list
151         * {@link Object }
152         * {@link Element }
153         * 
154         * 
155         */
156        public List<Object> getAny() {
157            if (any == null) {
158                any = new ArrayList<Object>();
159            }
160            return this.any;
161        }
162    
163    }