1 16 17 package test.encoding; 18 19 import org.apache.axis.description.ElementDesc; 20 import org.apache.axis.description.FieldDesc; 21 import org.apache.axis.description.TypeDesc; 22 23 import javax.xml.namespace.QName ; 24 25 28 public class IndexPropBean { 29 private java.lang.String [] name; 30 31 public IndexPropBean() {} 32 33 public java.lang.String getName(int i) { 34 return name[i]; 35 } 36 37 public void setName(int i, java.lang.String name){ 38 this.name[i] = name; 39 } 40 41 public java.lang.String [] getName() { 42 return name; 43 } 44 45 public void setName(java.lang.String name[]){ 46 this.name = name; 47 } 48 49 public boolean equals(Object obj) 50 { 51 if (obj == null || !(obj instanceof IndexPropBean)) 52 return false; 53 IndexPropBean other = (IndexPropBean)obj; 54 if (other.name == null && this.name == null) 55 return true; 56 if (other.name != null && 57 java.util.Arrays.equals(other.name, name)) 58 return true; 59 return false; 60 } 61 62 public int hashCode() { 63 int _hashCode = 0; 64 if (name != null) { 65 for (int i=0; 66 i<java.lang.reflect.Array.getLength(name); 67 i++) { 68 java.lang.Object obj = java.lang.reflect.Array.get(name, i); 69 if (obj != null) { 70 _hashCode += obj.hashCode(); 71 } 72 } 73 } 74 return _hashCode; 75 } 76 private static TypeDesc typeDesc; 78 79 static { 80 typeDesc = new TypeDesc(IndexPropBean.class); 81 FieldDesc field; 82 83 field = new ElementDesc(); 84 field.setFieldName("name"); 85 field.setXmlName(new QName ("", "name")); 86 typeDesc.addFieldDesc(field); 87 } 88 89 public static TypeDesc getTypeDesc() 90 { 91 return typeDesc; 92 } 93 94 97 public static org.apache.axis.encoding.Serializer getSerializer( 98 java.lang.String mechType, 99 java.lang.Class _javaType, 100 javax.xml.namespace.QName _xmlType) { 101 return 102 new org.apache.axis.encoding.ser.BeanSerializer( 103 _javaType, _xmlType, typeDesc); 104 } 105 106 109 public static org.apache.axis.encoding.Deserializer getDeserializer( 110 java.lang.String mechType, 111 java.lang.Class _javaType, 112 javax.xml.namespace.QName _xmlType) { 113 return 114 new org.apache.axis.encoding.ser.BeanDeserializer( 115 _javaType, _xmlType, typeDesc); 116 } 117 } 118 | Popular Tags |