1
7
8 package com.liferay.client.soap.portlet.polls.model;
9
10 public class PollsChoiceSoap implements java.io.Serializable {
11 private long choiceId;
12
13 private java.lang.String description;
14
15 private java.lang.String name;
16
17 private long primaryKey;
18
19 private long questionId;
20
21 private java.lang.String uuid;
22
23 public PollsChoiceSoap() {
24 }
25
26 public PollsChoiceSoap(
27 long choiceId,
28 java.lang.String description,
29 java.lang.String name,
30 long primaryKey,
31 long questionId,
32 java.lang.String uuid) {
33 this.choiceId = choiceId;
34 this.description = description;
35 this.name = name;
36 this.primaryKey = primaryKey;
37 this.questionId = questionId;
38 this.uuid = uuid;
39 }
40
41
42
47 public long getChoiceId() {
48 return choiceId;
49 }
50
51
52
57 public void setChoiceId(long choiceId) {
58 this.choiceId = choiceId;
59 }
60
61
62
67 public java.lang.String getDescription() {
68 return description;
69 }
70
71
72
77 public void setDescription(java.lang.String description) {
78 this.description = description;
79 }
80
81
82
87 public java.lang.String getName() {
88 return name;
89 }
90
91
92
97 public void setName(java.lang.String name) {
98 this.name = name;
99 }
100
101
102
107 public long getPrimaryKey() {
108 return primaryKey;
109 }
110
111
112
117 public void setPrimaryKey(long primaryKey) {
118 this.primaryKey = primaryKey;
119 }
120
121
122
127 public long getQuestionId() {
128 return questionId;
129 }
130
131
132
137 public void setQuestionId(long questionId) {
138 this.questionId = questionId;
139 }
140
141
142
147 public java.lang.String getUuid() {
148 return uuid;
149 }
150
151
152
157 public void setUuid(java.lang.String uuid) {
158 this.uuid = uuid;
159 }
160
161 private java.lang.Object __equalsCalc = null;
162 public synchronized boolean equals(java.lang.Object obj) {
163 if (!(obj instanceof PollsChoiceSoap)) return false;
164 PollsChoiceSoap other = (PollsChoiceSoap) obj;
165 if (obj == null) return false;
166 if (this == obj) return true;
167 if (__equalsCalc != null) {
168 return (__equalsCalc == obj);
169 }
170 __equalsCalc = obj;
171 boolean _equals;
172 _equals = true &&
173 this.choiceId == other.getChoiceId() &&
174 ((this.description==null && other.getDescription()==null) ||
175 (this.description!=null &&
176 this.description.equals(other.getDescription()))) &&
177 ((this.name==null && other.getName()==null) ||
178 (this.name!=null &&
179 this.name.equals(other.getName()))) &&
180 this.primaryKey == other.getPrimaryKey() &&
181 this.questionId == other.getQuestionId() &&
182 ((this.uuid==null && other.getUuid()==null) ||
183 (this.uuid!=null &&
184 this.uuid.equals(other.getUuid())));
185 __equalsCalc = null;
186 return _equals;
187 }
188
189 private boolean __hashCodeCalc = false;
190 public synchronized int hashCode() {
191 if (__hashCodeCalc) {
192 return 0;
193 }
194 __hashCodeCalc = true;
195 int _hashCode = 1;
196 _hashCode += new Long(getChoiceId()).hashCode();
197 if (getDescription() != null) {
198 _hashCode += getDescription().hashCode();
199 }
200 if (getName() != null) {
201 _hashCode += getName().hashCode();
202 }
203 _hashCode += new Long(getPrimaryKey()).hashCode();
204 _hashCode += new Long(getQuestionId()).hashCode();
205 if (getUuid() != null) {
206 _hashCode += getUuid().hashCode();
207 }
208 __hashCodeCalc = false;
209 return _hashCode;
210 }
211
212 private static org.apache.axis.description.TypeDesc typeDesc =
214 new org.apache.axis.description.TypeDesc(PollsChoiceSoap.class, true);
215
216 static {
217 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsChoiceSoap"));
218 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
219 elemField.setFieldName("choiceId");
220 elemField.setXmlName(new javax.xml.namespace.QName("", "choiceId"));
221 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
222 elemField.setNillable(false);
223 typeDesc.addFieldDesc(elemField);
224 elemField = new org.apache.axis.description.ElementDesc();
225 elemField.setFieldName("description");
226 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
227 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
228 elemField.setNillable(true);
229 typeDesc.addFieldDesc(elemField);
230 elemField = new org.apache.axis.description.ElementDesc();
231 elemField.setFieldName("name");
232 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
233 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
234 elemField.setNillable(true);
235 typeDesc.addFieldDesc(elemField);
236 elemField = new org.apache.axis.description.ElementDesc();
237 elemField.setFieldName("primaryKey");
238 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
239 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
240 elemField.setNillable(false);
241 typeDesc.addFieldDesc(elemField);
242 elemField = new org.apache.axis.description.ElementDesc();
243 elemField.setFieldName("questionId");
244 elemField.setXmlName(new javax.xml.namespace.QName("", "questionId"));
245 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
246 elemField.setNillable(false);
247 typeDesc.addFieldDesc(elemField);
248 elemField = new org.apache.axis.description.ElementDesc();
249 elemField.setFieldName("uuid");
250 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
251 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
252 elemField.setNillable(true);
253 typeDesc.addFieldDesc(elemField);
254 }
255
256
259 public static org.apache.axis.description.TypeDesc getTypeDesc() {
260 return typeDesc;
261 }
262
263
266 public static org.apache.axis.encoding.Serializer getSerializer(
267 java.lang.String mechType,
268 java.lang.Class _javaType,
269 javax.xml.namespace.QName _xmlType) {
270 return
271 new org.apache.axis.encoding.ser.BeanSerializer(
272 _javaType, _xmlType, typeDesc);
273 }
274
275
278 public static org.apache.axis.encoding.Deserializer getDeserializer(
279 java.lang.String mechType,
280 java.lang.Class _javaType,
281 javax.xml.namespace.QName _xmlType) {
282 return
283 new org.apache.axis.encoding.ser.BeanDeserializer(
284 _javaType, _xmlType, typeDesc);
285 }
286
287 }
288