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