1
2 package org.oasis_open.docs.wsn.br_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.oasis_open.docs.wsn.b_2.TopicExpressionType;
16 import org.w3c.dom.Element;
17
18
19 /**
20 * <p>Java class for anonymous complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <complexType>
26 * <complexContent>
27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <sequence>
29 * <element name="PublisherReference" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
30 * <element name="Topic" type="{http://docs.oasis-open.org/wsn/b-2}TopicExpressionType" maxOccurs="unbounded" minOccurs="0"/>
31 * <element name="Demand" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
32 * <element name="InitialTerminationTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
33 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
34 * </sequence>
35 * </restriction>
36 * </complexContent>
37 * </complexType>
38 * </pre>
39 *
40 *
41 */
42 @XmlAccessorType(XmlAccessType.FIELD)
43 @XmlType(name = "", propOrder = {
44 "publisherReference",
45 "topic",
46 "demand",
47 "initialTerminationTime",
48 "any"
49 })
50 @XmlRootElement(name = "RegisterPublisher")
51 public class RegisterPublisher {
52
53 @XmlElement(name = "PublisherReference")
54 protected W3CEndpointReference publisherReference;
55 @XmlElement(name = "Topic")
56 protected List<TopicExpressionType> topic;
57 @XmlElement(name = "Demand", defaultValue = "false")
58 protected Boolean demand;
59 @XmlElement(name = "InitialTerminationTime")
60 @XmlSchemaType(name = "dateTime")
61 protected XMLGregorianCalendar initialTerminationTime;
62 @XmlAnyElement(lax = true)
63 protected List<Object> any;
64
65 /**
66 * Gets the value of the publisherReference property.
67 *
68 * @return
69 * possible object is
70 * {@link W3CEndpointReference }
71 *
72 */
73 public W3CEndpointReference getPublisherReference() {
74 return publisherReference;
75 }
76
77 /**
78 * Sets the value of the publisherReference property.
79 *
80 * @param value
81 * allowed object is
82 * {@link W3CEndpointReference }
83 *
84 */
85 public void setPublisherReference(W3CEndpointReference value) {
86 this.publisherReference = value;
87 }
88
89 /**
90 * Gets the value of the topic property.
91 *
92 * <p>
93 * This accessor method returns a reference to the live list,
94 * not a snapshot. Therefore any modification you make to the
95 * returned list will be present inside the JAXB object.
96 * This is why there is not a <CODE>set</CODE> method for the topic property.
97 *
98 * <p>
99 * For example, to add a new item, do as follows:
100 * <pre>
101 * getTopic().add(newItem);
102 * </pre>
103 *
104 *
105 * <p>
106 * Objects of the following type(s) are allowed in the list
107 * {@link TopicExpressionType }
108 *
109 *
110 */
111 public List<TopicExpressionType> getTopic() {
112 if (topic == null) {
113 topic = new ArrayList<TopicExpressionType>();
114 }
115 return this.topic;
116 }
117
118 /**
119 * Gets the value of the demand property.
120 *
121 * @return
122 * possible object is
123 * {@link Boolean }
124 *
125 */
126 public Boolean isDemand() {
127 return demand;
128 }
129
130 /**
131 * Sets the value of the demand property.
132 *
133 * @param value
134 * allowed object is
135 * {@link Boolean }
136 *
137 */
138 public void setDemand(Boolean value) {
139 this.demand = value;
140 }
141
142 /**
143 * Gets the value of the initialTerminationTime property.
144 *
145 * @return
146 * possible object is
147 * {@link XMLGregorianCalendar }
148 *
149 */
150 public XMLGregorianCalendar getInitialTerminationTime() {
151 return initialTerminationTime;
152 }
153
154 /**
155 * Sets the value of the initialTerminationTime property.
156 *
157 * @param value
158 * allowed object is
159 * {@link XMLGregorianCalendar }
160 *
161 */
162 public void setInitialTerminationTime(XMLGregorianCalendar value) {
163 this.initialTerminationTime = value;
164 }
165
166 /**
167 * Gets the value of the any property.
168 *
169 * <p>
170 * This accessor method returns a reference to the live list,
171 * not a snapshot. Therefore any modification you make to the
172 * returned list will be present inside the JAXB object.
173 * This is why there is not a <CODE>set</CODE> method for the any property.
174 *
175 * <p>
176 * For example, to add a new item, do as follows:
177 * <pre>
178 * getAny().add(newItem);
179 * </pre>
180 *
181 *
182 * <p>
183 * Objects of the following type(s) are allowed in the list
184 * {@link Element }
185 * {@link Object }
186 *
187 *
188 */
189 public List<Object> getAny() {
190 if (any == null) {
191 any = new ArrayList<Object>();
192 }
193 return this.any;
194 }
195
196 }