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