1
2 package org.oasis_open.docs.wsn.b_2;
3
4 import java.util.ArrayList;
5 import java.util.List;
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlAnyElement;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlRootElement;
11 import javax.xml.bind.annotation.XmlSchemaType;
12 import javax.xml.bind.annotation.XmlType;
13 import javax.xml.datatype.XMLGregorianCalendar;
14 import javax.xml.ws.wsaddressing.W3CEndpointReference;
15 import org.w3c.dom.Element;
16
17
18 /**
19 * <p>Java class for anonymous complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType>
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="SubscriptionReference" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType"/>
29 * <element ref="{http://docs.oasis-open.org/wsn/b-2}CurrentTime" minOccurs="0"/>
30 * <element ref="{http://docs.oasis-open.org/wsn/b-2}TerminationTime" minOccurs="0"/>
31 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
32 * </sequence>
33 * </restriction>
34 * </complexContent>
35 * </complexType>
36 * </pre>
37 *
38 *
39 */
40 @XmlAccessorType(XmlAccessType.FIELD)
41 @XmlType(name = "", propOrder = {
42 "subscriptionReference",
43 "currentTime",
44 "terminationTime",
45 "any"
46 })
47 @XmlRootElement(name = "SubscribeResponse")
48 public class SubscribeResponse {
49
50 @XmlElement(name = "SubscriptionReference", required = true)
51 protected W3CEndpointReference subscriptionReference;
52 @XmlElement(name = "CurrentTime")
53 @XmlSchemaType(name = "dateTime")
54 protected XMLGregorianCalendar currentTime;
55 @XmlElement(name = "TerminationTime", nillable = true)
56 @XmlSchemaType(name = "dateTime")
57 protected XMLGregorianCalendar terminationTime;
58 @XmlAnyElement(lax = true)
59 protected List<Object> any;
60
61 /**
62 * Gets the value of the subscriptionReference property.
63 *
64 * @return
65 * possible object is
66 * {@link W3CEndpointReference }
67 *
68 */
69 public W3CEndpointReference getSubscriptionReference() {
70 return subscriptionReference;
71 }
72
73 /**
74 * Sets the value of the subscriptionReference property.
75 *
76 * @param value
77 * allowed object is
78 * {@link W3CEndpointReference }
79 *
80 */
81 public void setSubscriptionReference(W3CEndpointReference value) {
82 this.subscriptionReference = value;
83 }
84
85 /**
86 * Gets the value of the currentTime property.
87 *
88 * @return
89 * possible object is
90 * {@link XMLGregorianCalendar }
91 *
92 */
93 public XMLGregorianCalendar getCurrentTime() {
94 return currentTime;
95 }
96
97 /**
98 * Sets the value of the currentTime property.
99 *
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 Element }
152 * {@link Object }
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 }