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