001 /**
002 * InputReportIncident.java
003 *
004 * This file was auto-generated from WSDL
005 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
006 */
007
008 package org.apache.camel.example.reportincident;
009
010 public class InputReportIncident implements java.io.Serializable {
011 private java.lang.String incidentId;
012
013 private java.lang.String incidentDate;
014
015 private java.lang.String givenName;
016
017 private java.lang.String familyName;
018
019 private java.lang.String summary;
020
021 private java.lang.String details;
022
023 private java.lang.String email;
024
025 private java.lang.String phone;
026
027 public InputReportIncident() {
028 }
029
030 public InputReportIncident(
031 java.lang.String incidentId,
032 java.lang.String incidentDate,
033 java.lang.String givenName,
034 java.lang.String familyName,
035 java.lang.String summary,
036 java.lang.String details,
037 java.lang.String email,
038 java.lang.String phone) {
039 this.incidentId = incidentId;
040 this.incidentDate = incidentDate;
041 this.givenName = givenName;
042 this.familyName = familyName;
043 this.summary = summary;
044 this.details = details;
045 this.email = email;
046 this.phone = phone;
047 }
048
049
050 /**
051 * Gets the incidentId value for this InputReportIncident.
052 *
053 * @return incidentId
054 */
055 public java.lang.String getIncidentId() {
056 return incidentId;
057 }
058
059
060 /**
061 * Sets the incidentId value for this InputReportIncident.
062 *
063 * @param incidentId
064 */
065 public void setIncidentId(java.lang.String incidentId) {
066 this.incidentId = incidentId;
067 }
068
069
070 /**
071 * Gets the incidentDate value for this InputReportIncident.
072 *
073 * @return incidentDate
074 */
075 public java.lang.String getIncidentDate() {
076 return incidentDate;
077 }
078
079
080 /**
081 * Sets the incidentDate value for this InputReportIncident.
082 *
083 * @param incidentDate
084 */
085 public void setIncidentDate(java.lang.String incidentDate) {
086 this.incidentDate = incidentDate;
087 }
088
089
090 /**
091 * Gets the givenName value for this InputReportIncident.
092 *
093 * @return givenName
094 */
095 public java.lang.String getGivenName() {
096 return givenName;
097 }
098
099
100 /**
101 * Sets the givenName value for this InputReportIncident.
102 *
103 * @param givenName
104 */
105 public void setGivenName(java.lang.String givenName) {
106 this.givenName = givenName;
107 }
108
109
110 /**
111 * Gets the familyName value for this InputReportIncident.
112 *
113 * @return familyName
114 */
115 public java.lang.String getFamilyName() {
116 return familyName;
117 }
118
119
120 /**
121 * Sets the familyName value for this InputReportIncident.
122 *
123 * @param familyName
124 */
125 public void setFamilyName(java.lang.String familyName) {
126 this.familyName = familyName;
127 }
128
129
130 /**
131 * Gets the summary value for this InputReportIncident.
132 *
133 * @return summary
134 */
135 public java.lang.String getSummary() {
136 return summary;
137 }
138
139
140 /**
141 * Sets the summary value for this InputReportIncident.
142 *
143 * @param summary
144 */
145 public void setSummary(java.lang.String summary) {
146 this.summary = summary;
147 }
148
149
150 /**
151 * Gets the details value for this InputReportIncident.
152 *
153 * @return details
154 */
155 public java.lang.String getDetails() {
156 return details;
157 }
158
159
160 /**
161 * Sets the details value for this InputReportIncident.
162 *
163 * @param details
164 */
165 public void setDetails(java.lang.String details) {
166 this.details = details;
167 }
168
169
170 /**
171 * Gets the email value for this InputReportIncident.
172 *
173 * @return email
174 */
175 public java.lang.String getEmail() {
176 return email;
177 }
178
179
180 /**
181 * Sets the email value for this InputReportIncident.
182 *
183 * @param email
184 */
185 public void setEmail(java.lang.String email) {
186 this.email = email;
187 }
188
189
190 /**
191 * Gets the phone value for this InputReportIncident.
192 *
193 * @return phone
194 */
195 public java.lang.String getPhone() {
196 return phone;
197 }
198
199
200 /**
201 * Sets the phone value for this InputReportIncident.
202 *
203 * @param phone
204 */
205 public void setPhone(java.lang.String phone) {
206 this.phone = phone;
207 }
208
209 private java.lang.Object __equalsCalc = null;
210 public synchronized boolean equals(java.lang.Object obj) {
211 if (!(obj instanceof InputReportIncident)) return false;
212 InputReportIncident other = (InputReportIncident) 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.incidentId==null && other.getIncidentId()==null) ||
222 (this.incidentId!=null &&
223 this.incidentId.equals(other.getIncidentId()))) &&
224 ((this.incidentDate==null && other.getIncidentDate()==null) ||
225 (this.incidentDate!=null &&
226 this.incidentDate.equals(other.getIncidentDate()))) &&
227 ((this.givenName==null && other.getGivenName()==null) ||
228 (this.givenName!=null &&
229 this.givenName.equals(other.getGivenName()))) &&
230 ((this.familyName==null && other.getFamilyName()==null) ||
231 (this.familyName!=null &&
232 this.familyName.equals(other.getFamilyName()))) &&
233 ((this.summary==null && other.getSummary()==null) ||
234 (this.summary!=null &&
235 this.summary.equals(other.getSummary()))) &&
236 ((this.details==null && other.getDetails()==null) ||
237 (this.details!=null &&
238 this.details.equals(other.getDetails()))) &&
239 ((this.email==null && other.getEmail()==null) ||
240 (this.email!=null &&
241 this.email.equals(other.getEmail()))) &&
242 ((this.phone==null && other.getPhone()==null) ||
243 (this.phone!=null &&
244 this.phone.equals(other.getPhone())));
245 __equalsCalc = null;
246 return _equals;
247 }
248
249 private boolean __hashCodeCalc = false;
250 public synchronized int hashCode() {
251 if (__hashCodeCalc) {
252 return 0;
253 }
254 __hashCodeCalc = true;
255 int _hashCode = 1;
256 if (getIncidentId() != null) {
257 _hashCode += getIncidentId().hashCode();
258 }
259 if (getIncidentDate() != null) {
260 _hashCode += getIncidentDate().hashCode();
261 }
262 if (getGivenName() != null) {
263 _hashCode += getGivenName().hashCode();
264 }
265 if (getFamilyName() != null) {
266 _hashCode += getFamilyName().hashCode();
267 }
268 if (getSummary() != null) {
269 _hashCode += getSummary().hashCode();
270 }
271 if (getDetails() != null) {
272 _hashCode += getDetails().hashCode();
273 }
274 if (getEmail() != null) {
275 _hashCode += getEmail().hashCode();
276 }
277 if (getPhone() != null) {
278 _hashCode += getPhone().hashCode();
279 }
280 __hashCodeCalc = false;
281 return _hashCode;
282 }
283
284 // Type metadata
285 private static org.apache.axis.description.TypeDesc typeDesc =
286 new org.apache.axis.description.TypeDesc(InputReportIncident.class, true);
287
288 static {
289 typeDesc.setXmlType(new javax.xml.namespace.QName("http://reportincident.example.camel.apache.org", ">inputReportIncident"));
290 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
291 elemField.setFieldName("incidentId");
292 elemField.setXmlName(new javax.xml.namespace.QName("", "incidentId"));
293 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
294 elemField.setNillable(false);
295 typeDesc.addFieldDesc(elemField);
296 elemField = new org.apache.axis.description.ElementDesc();
297 elemField.setFieldName("incidentDate");
298 elemField.setXmlName(new javax.xml.namespace.QName("", "incidentDate"));
299 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
300 elemField.setNillable(false);
301 typeDesc.addFieldDesc(elemField);
302 elemField = new org.apache.axis.description.ElementDesc();
303 elemField.setFieldName("givenName");
304 elemField.setXmlName(new javax.xml.namespace.QName("", "givenName"));
305 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
306 elemField.setNillable(false);
307 typeDesc.addFieldDesc(elemField);
308 elemField = new org.apache.axis.description.ElementDesc();
309 elemField.setFieldName("familyName");
310 elemField.setXmlName(new javax.xml.namespace.QName("", "familyName"));
311 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
312 elemField.setNillable(false);
313 typeDesc.addFieldDesc(elemField);
314 elemField = new org.apache.axis.description.ElementDesc();
315 elemField.setFieldName("summary");
316 elemField.setXmlName(new javax.xml.namespace.QName("", "summary"));
317 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
318 elemField.setNillable(false);
319 typeDesc.addFieldDesc(elemField);
320 elemField = new org.apache.axis.description.ElementDesc();
321 elemField.setFieldName("details");
322 elemField.setXmlName(new javax.xml.namespace.QName("", "details"));
323 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
324 elemField.setNillable(false);
325 typeDesc.addFieldDesc(elemField);
326 elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("email");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
330 elemField.setNillable(false);
331 typeDesc.addFieldDesc(elemField);
332 elemField = new org.apache.axis.description.ElementDesc();
333 elemField.setFieldName("phone");
334 elemField.setXmlName(new javax.xml.namespace.QName("", "phone"));
335 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
336 elemField.setNillable(false);
337 typeDesc.addFieldDesc(elemField);
338 }
339
340 /**
341 * Return type metadata object
342 */
343 public static org.apache.axis.description.TypeDesc getTypeDesc() {
344 return typeDesc;
345 }
346
347 /**
348 * Get Custom Serializer
349 */
350 public static org.apache.axis.encoding.Serializer getSerializer(
351 java.lang.String mechType,
352 java.lang.Class _javaType,
353 javax.xml.namespace.QName _xmlType) {
354 return
355 new org.apache.axis.encoding.ser.BeanSerializer(
356 _javaType, _xmlType, typeDesc);
357 }
358
359 /**
360 * Get Custom Deserializer
361 */
362 public static org.apache.axis.encoding.Deserializer getDeserializer(
363 java.lang.String mechType,
364 java.lang.Class _javaType,
365 javax.xml.namespace.QName _xmlType) {
366 return
367 new org.apache.axis.encoding.ser.BeanDeserializer(
368 _javaType, _xmlType, typeDesc);
369 }
370
371 }