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.XmlElement;
9 import javax.xml.bind.annotation.XmlRootElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import javax.xml.datatype.XMLGregorianCalendar;
13 import javax.xml.ws.wsaddressing.W3CEndpointReference;
14 import org.oasis_open.docs.wsn.b_2.TopicExpressionType;
15
16
17 /**
18 * <p>Java class for anonymous complex type.
19 *
20 * <p>The following schema fragment specifies the expected content contained within this class.
21 *
22 * <pre>
23 * <complexType>
24 * <complexContent>
25 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26 * <sequence>
27 * <element ref="{http://docs.oasis-open.org/wsn/br-2}PublisherReference" minOccurs="0"/>
28 * <element ref="{http://docs.oasis-open.org/wsn/br-2}Topic" maxOccurs="unbounded" minOccurs="0"/>
29 * <element ref="{http://docs.oasis-open.org/wsn/br-2}Demand"/>
30 * <element ref="{http://docs.oasis-open.org/wsn/br-2}CreationTime" minOccurs="0"/>
31 * </sequence>
32 * </restriction>
33 * </complexContent>
34 * </complexType>
35 * </pre>
36 *
37 *
38 */
39 @XmlAccessorType(XmlAccessType.FIELD)
40 @XmlType(name = "", propOrder = {
41 "publisherReference",
42 "topic",
43 "demand",
44 "creationTime"
45 })
46 @XmlRootElement(name = "PublisherRegistrationRP")
47 public class PublisherRegistrationRP {
48
49 @XmlElement(name = "PublisherReference")
50 protected W3CEndpointReference publisherReference;
51 @XmlElement(name = "Topic")
52 protected List<TopicExpressionType> topic;
53 @XmlElement(name = "Demand")
54 protected boolean demand;
55 @XmlElement(name = "CreationTime")
56 @XmlSchemaType(name = "dateTime")
57 protected XMLGregorianCalendar creationTime;
58
59 /**
60 * Gets the value of the publisherReference property.
61 *
62 * @return
63 * possible object is
64 * {@link W3CEndpointReference }
65 *
66 */
67 public W3CEndpointReference getPublisherReference() {
68 return publisherReference;
69 }
70
71 /**
72 * Sets the value of the publisherReference property.
73 *
74 * @param value
75 * allowed object is
76 * {@link W3CEndpointReference }
77 *
78 */
79 public void setPublisherReference(W3CEndpointReference value) {
80 this.publisherReference = value;
81 }
82
83 /**
84 * Gets the value of the topic property.
85 *
86 * <p>
87 * This accessor method returns a reference to the live list,
88 * not a snapshot. Therefore any modification you make to the
89 * returned list will be present inside the JAXB object.
90 * This is why there is not a <CODE>set</CODE> method for the topic property.
91 *
92 * <p>
93 * For example, to add a new item, do as follows:
94 * <pre>
95 * getTopic().add(newItem);
96 * </pre>
97 *
98 *
99 * <p>
100 * Objects of the following type(s) are allowed in the list
101 * {@link TopicExpressionType }
102 *
103 *
104 */
105 public List<TopicExpressionType> getTopic() {
106 if (topic == null) {
107 topic = new ArrayList<TopicExpressionType>();
108 }
109 return this.topic;
110 }
111
112 /**
113 * Gets the value of the demand property.
114 *
115 */
116 public boolean isDemand() {
117 return demand;
118 }
119
120 /**
121 * Sets the value of the demand property.
122 *
123 */
124 public void setDemand(boolean value) {
125 this.demand = value;
126 }
127
128 /**
129 * Gets the value of the creationTime property.
130 *
131 * @return
132 * possible object is
133 * {@link XMLGregorianCalendar }
134 *
135 */
136 public XMLGregorianCalendar getCreationTime() {
137 return creationTime;
138 }
139
140 /**
141 * Sets the value of the creationTime property.
142 *
143 * @param value
144 * allowed object is
145 * {@link XMLGregorianCalendar }
146 *
147 */
148 public void setCreationTime(XMLGregorianCalendar value) {
149 this.creationTime = value;
150 }
151
152 }