1
7
8 package com.liferay.client.soap.portlet.announcements.model;
9
10 public class AnnouncementsDeliverySoap implements java.io.Serializable {
11 private long companyId;
12
13 private long deliveryId;
14
15 private boolean email;
16
17 private long primaryKey;
18
19 private boolean sms;
20
21 private java.lang.String type;
22
23 private long userId;
24
25 private boolean website;
26
27 public AnnouncementsDeliverySoap() {
28 }
29
30 public AnnouncementsDeliverySoap(
31 long companyId,
32 long deliveryId,
33 boolean email,
34 long primaryKey,
35 boolean sms,
36 java.lang.String type,
37 long userId,
38 boolean website) {
39 this.companyId = companyId;
40 this.deliveryId = deliveryId;
41 this.email = email;
42 this.primaryKey = primaryKey;
43 this.sms = sms;
44 this.type = type;
45 this.userId = userId;
46 this.website = website;
47 }
48
49
50
55 public long getCompanyId() {
56 return companyId;
57 }
58
59
60
65 public void setCompanyId(long companyId) {
66 this.companyId = companyId;
67 }
68
69
70
75 public long getDeliveryId() {
76 return deliveryId;
77 }
78
79
80
85 public void setDeliveryId(long deliveryId) {
86 this.deliveryId = deliveryId;
87 }
88
89
90
95 public boolean isEmail() {
96 return email;
97 }
98
99
100
105 public void setEmail(boolean email) {
106 this.email = email;
107 }
108
109
110
115 public long getPrimaryKey() {
116 return primaryKey;
117 }
118
119
120
125 public void setPrimaryKey(long primaryKey) {
126 this.primaryKey = primaryKey;
127 }
128
129
130
135 public boolean isSms() {
136 return sms;
137 }
138
139
140
145 public void setSms(boolean sms) {
146 this.sms = sms;
147 }
148
149
150
155 public java.lang.String getType() {
156 return type;
157 }
158
159
160
165 public void setType(java.lang.String type) {
166 this.type = type;
167 }
168
169
170
175 public long getUserId() {
176 return userId;
177 }
178
179
180
185 public void setUserId(long userId) {
186 this.userId = userId;
187 }
188
189
190
195 public boolean isWebsite() {
196 return website;
197 }
198
199
200
205 public void setWebsite(boolean website) {
206 this.website = website;
207 }
208
209 private java.lang.Object __equalsCalc = null;
210 public synchronized boolean equals(java.lang.Object obj) {
211 if (!(obj instanceof AnnouncementsDeliverySoap)) return false;
212 AnnouncementsDeliverySoap other = (AnnouncementsDeliverySoap) obj;
213 if (obj == null) return false;
214 if (this == obj) return true;
215 if (__equalsCalc != null) {
216 return (__equalsCalc == obj);
217 }
218 __equalsCalc = obj;
219 boolean _equals;
220 _equals = true &&
221 this.companyId == other.getCompanyId() &&
222 this.deliveryId == other.getDeliveryId() &&
223 this.email == other.isEmail() &&
224 this.primaryKey == other.getPrimaryKey() &&
225 this.sms == other.isSms() &&
226 ((this.type==null && other.getType()==null) ||
227 (this.type!=null &&
228 this.type.equals(other.getType()))) &&
229 this.userId == other.getUserId() &&
230 this.website == other.isWebsite();
231 __equalsCalc = null;
232 return _equals;
233 }
234
235 private boolean __hashCodeCalc = false;
236 public synchronized int hashCode() {
237 if (__hashCodeCalc) {
238 return 0;
239 }
240 __hashCodeCalc = true;
241 int _hashCode = 1;
242 _hashCode += new Long(getCompanyId()).hashCode();
243 _hashCode += new Long(getDeliveryId()).hashCode();
244 _hashCode += (isEmail() ? Boolean.TRUE : Boolean.FALSE).hashCode();
245 _hashCode += new Long(getPrimaryKey()).hashCode();
246 _hashCode += (isSms() ? Boolean.TRUE : Boolean.FALSE).hashCode();
247 if (getType() != null) {
248 _hashCode += getType().hashCode();
249 }
250 _hashCode += new Long(getUserId()).hashCode();
251 _hashCode += (isWebsite() ? Boolean.TRUE : Boolean.FALSE).hashCode();
252 __hashCodeCalc = false;
253 return _hashCode;
254 }
255
256 private static org.apache.axis.description.TypeDesc typeDesc =
258 new org.apache.axis.description.TypeDesc(AnnouncementsDeliverySoap.class, true);
259
260 static {
261 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.announcements.portlet.liferay.com", "AnnouncementsDeliverySoap"));
262 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
263 elemField.setFieldName("companyId");
264 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
265 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
266 elemField.setNillable(false);
267 typeDesc.addFieldDesc(elemField);
268 elemField = new org.apache.axis.description.ElementDesc();
269 elemField.setFieldName("deliveryId");
270 elemField.setXmlName(new javax.xml.namespace.QName("", "deliveryId"));
271 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
272 elemField.setNillable(false);
273 typeDesc.addFieldDesc(elemField);
274 elemField = new org.apache.axis.description.ElementDesc();
275 elemField.setFieldName("email");
276 elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
277 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
278 elemField.setNillable(false);
279 typeDesc.addFieldDesc(elemField);
280 elemField = new org.apache.axis.description.ElementDesc();
281 elemField.setFieldName("primaryKey");
282 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
283 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
284 elemField.setNillable(false);
285 typeDesc.addFieldDesc(elemField);
286 elemField = new org.apache.axis.description.ElementDesc();
287 elemField.setFieldName("sms");
288 elemField.setXmlName(new javax.xml.namespace.QName("", "sms"));
289 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
290 elemField.setNillable(false);
291 typeDesc.addFieldDesc(elemField);
292 elemField = new org.apache.axis.description.ElementDesc();
293 elemField.setFieldName("type");
294 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
295 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
296 elemField.setNillable(true);
297 typeDesc.addFieldDesc(elemField);
298 elemField = new org.apache.axis.description.ElementDesc();
299 elemField.setFieldName("userId");
300 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
301 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
302 elemField.setNillable(false);
303 typeDesc.addFieldDesc(elemField);
304 elemField = new org.apache.axis.description.ElementDesc();
305 elemField.setFieldName("website");
306 elemField.setXmlName(new javax.xml.namespace.QName("", "website"));
307 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
308 elemField.setNillable(false);
309 typeDesc.addFieldDesc(elemField);
310 }
311
312
315 public static org.apache.axis.description.TypeDesc getTypeDesc() {
316 return typeDesc;
317 }
318
319
322 public static org.apache.axis.encoding.Serializer getSerializer(
323 java.lang.String mechType,
324 java.lang.Class _javaType,
325 javax.xml.namespace.QName _xmlType) {
326 return
327 new org.apache.axis.encoding.ser.BeanSerializer(
328 _javaType, _xmlType, typeDesc);
329 }
330
331
334 public static org.apache.axis.encoding.Deserializer getDeserializer(
335 java.lang.String mechType,
336 java.lang.Class _javaType,
337 javax.xml.namespace.QName _xmlType) {
338 return
339 new org.apache.axis.encoding.ser.BeanDeserializer(
340 _javaType, _xmlType, typeDesc);
341 }
342
343 }
344