1 7 8 package localjava.client.stub.addressbook.wsiftypes; 9 10 public class Phone implements java.io.Serializable { 11 private int areaCode; 12 private java.lang.String exchange; 13 private java.lang.String number; 14 15 public Phone() { 16 } 17 18 public int getAreaCode() { 19 return areaCode; 20 } 21 22 public void setAreaCode(int areaCode) { 23 this.areaCode = areaCode; 24 } 25 26 public java.lang.String getExchange() { 27 return exchange; 28 } 29 30 public void setExchange(java.lang.String exchange) { 31 this.exchange = exchange; 32 } 33 34 public java.lang.String getNumber() { 35 return number; 36 } 37 38 public void setNumber(java.lang.String number) { 39 this.number = number; 40 } 41 42 private java.lang.Object __equalsCalc = null; 43 public synchronized boolean equals(java.lang.Object obj) { 44 if (!(obj instanceof Phone)) return false; 45 Phone other = (Phone) obj; 46 if (obj == null) return false; 47 if (this == obj) return true; 48 if (__equalsCalc != null) { 49 return (__equalsCalc == obj); 50 } 51 __equalsCalc = obj; 52 boolean _equals; 53 _equals = true && 54 areaCode == other.getAreaCode() && 55 ((exchange==null && other.getExchange()==null) || 56 (exchange!=null && 57 exchange.equals(other.getExchange()))) && 58 ((number==null && other.getNumber()==null) || 59 (number!=null && 60 number.equals(other.getNumber()))); 61 __equalsCalc = null; 62 return _equals; 63 } 64 65 private boolean __hashCodeCalc = false; 66 public synchronized int hashCode() { 67 if (__hashCodeCalc) { 68 return 0; 69 } 70 __hashCodeCalc = true; 71 int _hashCode = 1; 72 _hashCode += getAreaCode(); 73 if (getExchange() != null) { 74 _hashCode += getExchange().hashCode(); 75 } 76 if (getNumber() != null) { 77 _hashCode += getNumber().hashCode(); 78 } 79 __hashCodeCalc = false; 80 return _hashCode; 81 } 82 83 private static org.apache.axis.description.TypeDesc typeDesc = 85 new org.apache.axis.description.TypeDesc(Phone.class); 86 87 static { 88 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc(); 89 field.setFieldName("areaCode"); 90 field.setXmlName(new javax.xml.namespace.QName ("", "areaCode")); 91 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/1999/XMLSchema", "int")); 92 typeDesc.addFieldDesc(field); 93 field = new org.apache.axis.description.ElementDesc(); 94 field.setFieldName("exchange"); 95 field.setXmlName(new javax.xml.namespace.QName ("", "exchange")); 96 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/1999/XMLSchema", "string")); 97 typeDesc.addFieldDesc(field); 98 field = new org.apache.axis.description.ElementDesc(); 99 field.setFieldName("number"); 100 field.setXmlName(new javax.xml.namespace.QName ("", "number")); 101 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/1999/XMLSchema", "string")); 102 typeDesc.addFieldDesc(field); 103 }; 104 105 108 public static org.apache.axis.description.TypeDesc getTypeDesc() { 109 return typeDesc; 110 } 111 112 115 public static org.apache.axis.encoding.Serializer getSerializer( 116 java.lang.String mechType, 117 java.lang.Class _javaType, 118 javax.xml.namespace.QName _xmlType) { 119 return 120 new org.apache.axis.encoding.ser.BeanSerializer( 121 _javaType, _xmlType, typeDesc); 122 } 123 124 127 public static org.apache.axis.encoding.Deserializer getDeserializer( 128 java.lang.String mechType, 129 java.lang.Class _javaType, 130 javax.xml.namespace.QName _xmlType) { 131 return 132 new org.apache.axis.encoding.ser.BeanDeserializer( 133 _javaType, _xmlType, typeDesc); 134 } 135 136 } 137 | Popular Tags |