001 /**
002 * OutputReportIncident.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 OutputReportIncident implements java.io.Serializable {
011 private java.lang.String code;
012
013 public OutputReportIncident() {
014 }
015
016 public OutputReportIncident(
017 java.lang.String code) {
018 this.code = code;
019 }
020
021
022 /**
023 * Gets the code value for this OutputReportIncident.
024 *
025 * @return code
026 */
027 public java.lang.String getCode() {
028 return code;
029 }
030
031
032 /**
033 * Sets the code value for this OutputReportIncident.
034 *
035 * @param code
036 */
037 public void setCode(java.lang.String code) {
038 this.code = code;
039 }
040
041 private java.lang.Object __equalsCalc = null;
042 public synchronized boolean equals(java.lang.Object obj) {
043 if (!(obj instanceof OutputReportIncident)) return false;
044 OutputReportIncident other = (OutputReportIncident) obj;
045 if (obj == null) return false;
046 if (this == obj) return true;
047 if (__equalsCalc != null) {
048 return (__equalsCalc == obj);
049 }
050 __equalsCalc = obj;
051 boolean _equals;
052 _equals = true &&
053 ((this.code==null && other.getCode()==null) ||
054 (this.code!=null &&
055 this.code.equals(other.getCode())));
056 __equalsCalc = null;
057 return _equals;
058 }
059
060 private boolean __hashCodeCalc = false;
061 public synchronized int hashCode() {
062 if (__hashCodeCalc) {
063 return 0;
064 }
065 __hashCodeCalc = true;
066 int _hashCode = 1;
067 if (getCode() != null) {
068 _hashCode += getCode().hashCode();
069 }
070 __hashCodeCalc = false;
071 return _hashCode;
072 }
073
074 // Type metadata
075 private static org.apache.axis.description.TypeDesc typeDesc =
076 new org.apache.axis.description.TypeDesc(OutputReportIncident.class, true);
077
078 static {
079 typeDesc.setXmlType(new javax.xml.namespace.QName("http://reportincident.example.camel.apache.org", ">outputReportIncident"));
080 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
081 elemField.setFieldName("code");
082 elemField.setXmlName(new javax.xml.namespace.QName("", "code"));
083 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
084 elemField.setNillable(false);
085 typeDesc.addFieldDesc(elemField);
086 }
087
088 /**
089 * Return type metadata object
090 */
091 public static org.apache.axis.description.TypeDesc getTypeDesc() {
092 return typeDesc;
093 }
094
095 /**
096 * Get Custom Serializer
097 */
098 public static org.apache.axis.encoding.Serializer getSerializer(
099 java.lang.String mechType,
100 java.lang.Class _javaType,
101 javax.xml.namespace.QName _xmlType) {
102 return
103 new org.apache.axis.encoding.ser.BeanSerializer(
104 _javaType, _xmlType, typeDesc);
105 }
106
107 /**
108 * Get Custom Deserializer
109 */
110 public static org.apache.axis.encoding.Deserializer getDeserializer(
111 java.lang.String mechType,
112 java.lang.Class _javaType,
113 javax.xml.namespace.QName _xmlType) {
114 return
115 new org.apache.axis.encoding.ser.BeanDeserializer(
116 _javaType, _xmlType, typeDesc);
117 }
118
119 }