1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class RoleSoap implements java.io.Serializable {
11 private long classNameId;
12
13 private long classPK;
14
15 private long companyId;
16
17 private java.lang.String description;
18
19 private java.lang.String name;
20
21 private long primaryKey;
22
23 private long roleId;
24
25 private java.lang.String subtype;
26
27 private java.lang.String title;
28
29 private int type;
30
31 public RoleSoap() {
32 }
33
34 public RoleSoap(
35 long classNameId,
36 long classPK,
37 long companyId,
38 java.lang.String description,
39 java.lang.String name,
40 long primaryKey,
41 long roleId,
42 java.lang.String subtype,
43 java.lang.String title,
44 int type) {
45 this.classNameId = classNameId;
46 this.classPK = classPK;
47 this.companyId = companyId;
48 this.description = description;
49 this.name = name;
50 this.primaryKey = primaryKey;
51 this.roleId = roleId;
52 this.subtype = subtype;
53 this.title = title;
54 this.type = type;
55 }
56
57
58
63 public long getClassNameId() {
64 return classNameId;
65 }
66
67
68
73 public void setClassNameId(long classNameId) {
74 this.classNameId = classNameId;
75 }
76
77
78
83 public long getClassPK() {
84 return classPK;
85 }
86
87
88
93 public void setClassPK(long classPK) {
94 this.classPK = classPK;
95 }
96
97
98
103 public long getCompanyId() {
104 return companyId;
105 }
106
107
108
113 public void setCompanyId(long companyId) {
114 this.companyId = companyId;
115 }
116
117
118
123 public java.lang.String getDescription() {
124 return description;
125 }
126
127
128
133 public void setDescription(java.lang.String description) {
134 this.description = description;
135 }
136
137
138
143 public java.lang.String getName() {
144 return name;
145 }
146
147
148
153 public void setName(java.lang.String name) {
154 this.name = name;
155 }
156
157
158
163 public long getPrimaryKey() {
164 return primaryKey;
165 }
166
167
168
173 public void setPrimaryKey(long primaryKey) {
174 this.primaryKey = primaryKey;
175 }
176
177
178
183 public long getRoleId() {
184 return roleId;
185 }
186
187
188
193 public void setRoleId(long roleId) {
194 this.roleId = roleId;
195 }
196
197
198
203 public java.lang.String getSubtype() {
204 return subtype;
205 }
206
207
208
213 public void setSubtype(java.lang.String subtype) {
214 this.subtype = subtype;
215 }
216
217
218
223 public java.lang.String getTitle() {
224 return title;
225 }
226
227
228
233 public void setTitle(java.lang.String title) {
234 this.title = title;
235 }
236
237
238
243 public int getType() {
244 return type;
245 }
246
247
248
253 public void setType(int type) {
254 this.type = type;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof RoleSoap)) return false;
260 RoleSoap other = (RoleSoap) obj;
261 if (obj == null) return false;
262 if (this == obj) return true;
263 if (__equalsCalc != null) {
264 return (__equalsCalc == obj);
265 }
266 __equalsCalc = obj;
267 boolean _equals;
268 _equals = true &&
269 this.classNameId == other.getClassNameId() &&
270 this.classPK == other.getClassPK() &&
271 this.companyId == other.getCompanyId() &&
272 ((this.description==null && other.getDescription()==null) ||
273 (this.description!=null &&
274 this.description.equals(other.getDescription()))) &&
275 ((this.name==null && other.getName()==null) ||
276 (this.name!=null &&
277 this.name.equals(other.getName()))) &&
278 this.primaryKey == other.getPrimaryKey() &&
279 this.roleId == other.getRoleId() &&
280 ((this.subtype==null && other.getSubtype()==null) ||
281 (this.subtype!=null &&
282 this.subtype.equals(other.getSubtype()))) &&
283 ((this.title==null && other.getTitle()==null) ||
284 (this.title!=null &&
285 this.title.equals(other.getTitle()))) &&
286 this.type == other.getType();
287 __equalsCalc = null;
288 return _equals;
289 }
290
291 private boolean __hashCodeCalc = false;
292 public synchronized int hashCode() {
293 if (__hashCodeCalc) {
294 return 0;
295 }
296 __hashCodeCalc = true;
297 int _hashCode = 1;
298 _hashCode += new Long(getClassNameId()).hashCode();
299 _hashCode += new Long(getClassPK()).hashCode();
300 _hashCode += new Long(getCompanyId()).hashCode();
301 if (getDescription() != null) {
302 _hashCode += getDescription().hashCode();
303 }
304 if (getName() != null) {
305 _hashCode += getName().hashCode();
306 }
307 _hashCode += new Long(getPrimaryKey()).hashCode();
308 _hashCode += new Long(getRoleId()).hashCode();
309 if (getSubtype() != null) {
310 _hashCode += getSubtype().hashCode();
311 }
312 if (getTitle() != null) {
313 _hashCode += getTitle().hashCode();
314 }
315 _hashCode += getType();
316 __hashCodeCalc = false;
317 return _hashCode;
318 }
319
320 private static org.apache.axis.description.TypeDesc typeDesc =
322 new org.apache.axis.description.TypeDesc(RoleSoap.class, true);
323
324 static {
325 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "RoleSoap"));
326 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("classNameId");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
330 elemField.setNillable(false);
331 typeDesc.addFieldDesc(elemField);
332 elemField = new org.apache.axis.description.ElementDesc();
333 elemField.setFieldName("classPK");
334 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
335 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
336 elemField.setNillable(false);
337 typeDesc.addFieldDesc(elemField);
338 elemField = new org.apache.axis.description.ElementDesc();
339 elemField.setFieldName("companyId");
340 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
341 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
342 elemField.setNillable(false);
343 typeDesc.addFieldDesc(elemField);
344 elemField = new org.apache.axis.description.ElementDesc();
345 elemField.setFieldName("description");
346 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
347 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
348 elemField.setNillable(true);
349 typeDesc.addFieldDesc(elemField);
350 elemField = new org.apache.axis.description.ElementDesc();
351 elemField.setFieldName("name");
352 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
353 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
354 elemField.setNillable(true);
355 typeDesc.addFieldDesc(elemField);
356 elemField = new org.apache.axis.description.ElementDesc();
357 elemField.setFieldName("primaryKey");
358 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
359 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
360 elemField.setNillable(false);
361 typeDesc.addFieldDesc(elemField);
362 elemField = new org.apache.axis.description.ElementDesc();
363 elemField.setFieldName("roleId");
364 elemField.setXmlName(new javax.xml.namespace.QName("", "roleId"));
365 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
366 elemField.setNillable(false);
367 typeDesc.addFieldDesc(elemField);
368 elemField = new org.apache.axis.description.ElementDesc();
369 elemField.setFieldName("subtype");
370 elemField.setXmlName(new javax.xml.namespace.QName("", "subtype"));
371 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
372 elemField.setNillable(true);
373 typeDesc.addFieldDesc(elemField);
374 elemField = new org.apache.axis.description.ElementDesc();
375 elemField.setFieldName("title");
376 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
377 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
378 elemField.setNillable(true);
379 typeDesc.addFieldDesc(elemField);
380 elemField = new org.apache.axis.description.ElementDesc();
381 elemField.setFieldName("type");
382 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
383 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
384 elemField.setNillable(false);
385 typeDesc.addFieldDesc(elemField);
386 }
387
388
391 public static org.apache.axis.description.TypeDesc getTypeDesc() {
392 return typeDesc;
393 }
394
395
398 public static org.apache.axis.encoding.Serializer getSerializer(
399 java.lang.String mechType,
400 java.lang.Class _javaType,
401 javax.xml.namespace.QName _xmlType) {
402 return
403 new org.apache.axis.encoding.ser.BeanSerializer(
404 _javaType, _xmlType, typeDesc);
405 }
406
407
410 public static org.apache.axis.encoding.Deserializer getDeserializer(
411 java.lang.String mechType,
412 java.lang.Class _javaType,
413 javax.xml.namespace.QName _xmlType) {
414 return
415 new org.apache.axis.encoding.ser.BeanDeserializer(
416 _javaType, _xmlType, typeDesc);
417 }
418
419 }
420