1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ResultSetMetaData implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.ValueDefinition[] valueDefs; 12 private org.alfresco.example.webservice.types.ClassDefinition[] classDefs; 13 14 public ResultSetMetaData() { 15 } 16 17 public ResultSetMetaData( 18 org.alfresco.example.webservice.types.ValueDefinition[] valueDefs, 19 org.alfresco.example.webservice.types.ClassDefinition[] classDefs) { 20 this.valueDefs = valueDefs; 21 this.classDefs = classDefs; 22 } 23 24 25 30 public org.alfresco.example.webservice.types.ValueDefinition[] getValueDefs() { 31 return valueDefs; 32 } 33 34 35 40 public void setValueDefs(org.alfresco.example.webservice.types.ValueDefinition[] valueDefs) { 41 this.valueDefs = valueDefs; 42 } 43 44 public org.alfresco.example.webservice.types.ValueDefinition getValueDefs(int i) { 45 return this.valueDefs[i]; 46 } 47 48 public void setValueDefs(int i, org.alfresco.example.webservice.types.ValueDefinition _value) { 49 this.valueDefs[i] = _value; 50 } 51 52 53 58 public org.alfresco.example.webservice.types.ClassDefinition[] getClassDefs() { 59 return classDefs; 60 } 61 62 63 68 public void setClassDefs(org.alfresco.example.webservice.types.ClassDefinition[] classDefs) { 69 this.classDefs = classDefs; 70 } 71 72 public org.alfresco.example.webservice.types.ClassDefinition getClassDefs(int i) { 73 return this.classDefs[i]; 74 } 75 76 public void setClassDefs(int i, org.alfresco.example.webservice.types.ClassDefinition _value) { 77 this.classDefs[i] = _value; 78 } 79 80 private java.lang.Object __equalsCalc = null; 81 public synchronized boolean equals(java.lang.Object obj) { 82 if (!(obj instanceof ResultSetMetaData)) return false; 83 ResultSetMetaData other = (ResultSetMetaData) obj; 84 if (obj == null) return false; 85 if (this == obj) return true; 86 if (__equalsCalc != null) { 87 return (__equalsCalc == obj); 88 } 89 __equalsCalc = obj; 90 boolean _equals; 91 _equals = true && 92 ((this.valueDefs==null && other.getValueDefs()==null) || 93 (this.valueDefs!=null && 94 java.util.Arrays.equals(this.valueDefs, other.getValueDefs()))) && 95 ((this.classDefs==null && other.getClassDefs()==null) || 96 (this.classDefs!=null && 97 java.util.Arrays.equals(this.classDefs, other.getClassDefs()))); 98 __equalsCalc = null; 99 return _equals; 100 } 101 102 private boolean __hashCodeCalc = false; 103 public synchronized int hashCode() { 104 if (__hashCodeCalc) { 105 return 0; 106 } 107 __hashCodeCalc = true; 108 int _hashCode = 1; 109 if (getValueDefs() != null) { 110 for (int i=0; 111 i<java.lang.reflect.Array.getLength(getValueDefs()); 112 i++) { 113 java.lang.Object obj = java.lang.reflect.Array.get(getValueDefs(), i); 114 if (obj != null && 115 !obj.getClass().isArray()) { 116 _hashCode += obj.hashCode(); 117 } 118 } 119 } 120 if (getClassDefs() != null) { 121 for (int i=0; 122 i<java.lang.reflect.Array.getLength(getClassDefs()); 123 i++) { 124 java.lang.Object obj = java.lang.reflect.Array.get(getClassDefs(), i); 125 if (obj != null && 126 !obj.getClass().isArray()) { 127 _hashCode += obj.hashCode(); 128 } 129 } 130 } 131 __hashCodeCalc = false; 132 return _hashCode; 133 } 134 135 private static org.apache.axis.description.TypeDesc typeDesc = 137 new org.apache.axis.description.TypeDesc(ResultSetMetaData.class, true); 138 139 static { 140 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData")); 141 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 142 elemField.setFieldName("valueDefs"); 143 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "valueDefs")); 144 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition")); 145 elemField.setMinOccurs(0); 146 elemField.setNillable(false); 147 elemField.setMaxOccursUnbounded(true); 148 typeDesc.addFieldDesc(elemField); 149 elemField = new org.apache.axis.description.ElementDesc(); 150 elemField.setFieldName("classDefs"); 151 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "classDefs")); 152 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition")); 153 elemField.setMinOccurs(0); 154 elemField.setNillable(false); 155 elemField.setMaxOccursUnbounded(true); 156 typeDesc.addFieldDesc(elemField); 157 } 158 159 162 public static org.apache.axis.description.TypeDesc getTypeDesc() { 163 return typeDesc; 164 } 165 166 169 public static org.apache.axis.encoding.Serializer getSerializer( 170 java.lang.String mechType, 171 java.lang.Class _javaType, 172 javax.xml.namespace.QName _xmlType) { 173 return 174 new org.apache.axis.encoding.ser.BeanSerializer( 175 _javaType, _xmlType, typeDesc); 176 } 177 178 181 public static org.apache.axis.encoding.Deserializer getDeserializer( 182 java.lang.String mechType, 183 java.lang.Class _javaType, 184 javax.xml.namespace.QName _xmlType) { 185 return 186 new org.apache.axis.encoding.ser.BeanDeserializer( 187 _javaType, _xmlType, typeDesc); 188 } 189 190 } 191 | Popular Tags |