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.JAXBElement;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlAnyElement;
10 import javax.xml.bind.annotation.XmlElement;
11 import javax.xml.bind.annotation.XmlElementRef;
12 import javax.xml.bind.annotation.XmlRootElement;
13 import javax.xml.bind.annotation.XmlType;
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="ConsumerReference" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType"/>
29 * <element name="Filter" type="{http://docs.oasis-open.org/wsn/b-2}FilterType" minOccurs="0"/>
30 * <element name="InitialTerminationTime" type="{http://docs.oasis-open.org/wsn/b-2}AbsoluteOrRelativeTimeType" minOccurs="0"/>
31 * <element name="SubscriptionPolicy" minOccurs="0">
32 * <complexType>
33 * <complexContent>
34 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
35 * <sequence>
36 * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
37 * </sequence>
38 * </restriction>
39 * </complexContent>
40 * </complexType>
41 * </element>
42 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
43 * </sequence>
44 * </restriction>
45 * </complexContent>
46 * </complexType>
47 * </pre>
48 *
49 *
50 */
51 @XmlAccessorType(XmlAccessType.FIELD)
52 @XmlType(name = "", propOrder = {
53 "consumerReference",
54 "filter",
55 "initialTerminationTime",
56 "subscriptionPolicy",
57 "any"
58 })
59 @XmlRootElement(name = "Subscribe")
60 public class Subscribe {
61
62 @XmlElement(name = "ConsumerReference", required = true)
63 protected W3CEndpointReference consumerReference;
64 @XmlElement(name = "Filter")
65 protected FilterType filter;
66 @XmlElementRef(name = "InitialTerminationTime", namespace = "http://docs.oasis-open.org/wsn/b-2", type = JAXBElement.class)
67 protected JAXBElement<String> initialTerminationTime;
68 @XmlElement(name = "SubscriptionPolicy")
69 protected Subscribe.SubscriptionPolicy subscriptionPolicy;
70 @XmlAnyElement(lax = true)
71 protected List<Object> any;
72
73 /**
74 * Gets the value of the consumerReference property.
75 *
76 * @return
77 * possible object is
78 * {@link W3CEndpointReference }
79 *
80 */
81 public W3CEndpointReference getConsumerReference() {
82 return consumerReference;
83 }
84
85 /**
86 * Sets the value of the consumerReference property.
87 *
88 * @param value
89 * allowed object is
90 * {@link W3CEndpointReference }
91 *
92 */
93 public void setConsumerReference(W3CEndpointReference value) {
94 this.consumerReference = value;
95 }
96
97 /**
98 * Gets the value of the filter property.
99 *
100 * @return
101 * possible object is
102 * {@link FilterType }
103 *
104 */
105 public FilterType getFilter() {
106 return filter;
107 }
108
109 /**
110 * Sets the value of the filter property.
111 *
112 * @param value
113 * allowed object is
114 * {@link FilterType }
115 *
116 */
117 public void setFilter(FilterType value) {
118 this.filter = value;
119 }
120
121 /**
122 * Gets the value of the initialTerminationTime property.
123 *
124 * @return
125 * possible object is
126 * {@link JAXBElement }{@code <}{@link String }{@code >}
127 *
128 */
129 public JAXBElement<String> getInitialTerminationTime() {
130 return initialTerminationTime;
131 }
132
133 /**
134 * Sets the value of the initialTerminationTime property.
135 *
136 * @param value
137 * allowed object is
138 * {@link JAXBElement }{@code <}{@link String }{@code >}
139 *
140 */
141 public void setInitialTerminationTime(JAXBElement<String> value) {
142 this.initialTerminationTime = ((JAXBElement<String> ) value);
143 }
144
145 /**
146 * Gets the value of the subscriptionPolicy property.
147 *
148 * @return
149 * possible object is
150 * {@link Subscribe.SubscriptionPolicy }
151 *
152 */
153 public Subscribe.SubscriptionPolicy getSubscriptionPolicy() {
154 return subscriptionPolicy;
155 }
156
157 /**
158 * Sets the value of the subscriptionPolicy property.
159 *
160 * @param value
161 * allowed object is
162 * {@link Subscribe.SubscriptionPolicy }
163 *
164 */
165 public void setSubscriptionPolicy(Subscribe.SubscriptionPolicy value) {
166 this.subscriptionPolicy = value;
167 }
168
169 /**
170 * Gets the value of the any property.
171 *
172 * <p>
173 * This accessor method returns a reference to the live list,
174 * not a snapshot. Therefore any modification you make to the
175 * returned list will be present inside the JAXB object.
176 * This is why there is not a <CODE>set</CODE> method for the any property.
177 *
178 * <p>
179 * For example, to add a new item, do as follows:
180 * <pre>
181 * getAny().add(newItem);
182 * </pre>
183 *
184 *
185 * <p>
186 * Objects of the following type(s) are allowed in the list
187 * {@link Element }
188 * {@link Object }
189 *
190 *
191 */
192 public List<Object> getAny() {
193 if (any == null) {
194 any = new ArrayList<Object>();
195 }
196 return this.any;
197 }
198
199
200 /**
201 * <p>Java class for anonymous complex type.
202 *
203 * <p>The following schema fragment specifies the expected content contained within this class.
204 *
205 * <pre>
206 * <complexType>
207 * <complexContent>
208 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
209 * <sequence>
210 * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
211 * </sequence>
212 * </restriction>
213 * </complexContent>
214 * </complexType>
215 * </pre>
216 *
217 *
218 */
219 @XmlAccessorType(XmlAccessType.FIELD)
220 @XmlType(name = "", propOrder = {
221 "any"
222 })
223 public static class SubscriptionPolicy {
224
225 @XmlAnyElement(lax = true)
226 protected List<Object> any;
227
228 /**
229 * Gets the value of the any property.
230 *
231 * <p>
232 * This accessor method returns a reference to the live list,
233 * not a snapshot. Therefore any modification you make to the
234 * returned list will be present inside the JAXB object.
235 * This is why there is not a <CODE>set</CODE> method for the any property.
236 *
237 * <p>
238 * For example, to add a new item, do as follows:
239 * <pre>
240 * getAny().add(newItem);
241 * </pre>
242 *
243 *
244 * <p>
245 * Objects of the following type(s) are allowed in the list
246 * {@link Element }
247 * {@link Object }
248 *
249 *
250 */
251 public List<Object> getAny() {
252 if (any == null) {
253 any = new ArrayList<Object>();
254 }
255 return this.any;
256 }
257
258 }
259
260 }