1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ResultSetRow implements java.io.Serializable { 11 private long rowIndex; 12 private org.alfresco.example.webservice.types.NamedValue[] columns; 13 private java.lang.Float score; 14 private org.alfresco.example.webservice.types.ResultSetRowNode node; 15 16 public ResultSetRow() { 17 } 18 19 public ResultSetRow( 20 long rowIndex, 21 org.alfresco.example.webservice.types.NamedValue[] columns, 22 java.lang.Float score, 23 org.alfresco.example.webservice.types.ResultSetRowNode node) { 24 this.rowIndex = rowIndex; 25 this.columns = columns; 26 this.score = score; 27 this.node = node; 28 } 29 30 31 36 public long getRowIndex() { 37 return rowIndex; 38 } 39 40 41 46 public void setRowIndex(long rowIndex) { 47 this.rowIndex = rowIndex; 48 } 49 50 51 56 public org.alfresco.example.webservice.types.NamedValue[] getColumns() { 57 return columns; 58 } 59 60 61 66 public void setColumns(org.alfresco.example.webservice.types.NamedValue[] columns) { 67 this.columns = columns; 68 } 69 70 public org.alfresco.example.webservice.types.NamedValue getColumns(int i) { 71 return this.columns[i]; 72 } 73 74 public void setColumns(int i, org.alfresco.example.webservice.types.NamedValue _value) { 75 this.columns[i] = _value; 76 } 77 78 79 84 public java.lang.Float getScore() { 85 return score; 86 } 87 88 89 94 public void setScore(java.lang.Float score) { 95 this.score = score; 96 } 97 98 99 104 public org.alfresco.example.webservice.types.ResultSetRowNode getNode() { 105 return node; 106 } 107 108 109 114 public void setNode(org.alfresco.example.webservice.types.ResultSetRowNode node) { 115 this.node = node; 116 } 117 118 private java.lang.Object __equalsCalc = null; 119 public synchronized boolean equals(java.lang.Object obj) { 120 if (!(obj instanceof ResultSetRow)) return false; 121 ResultSetRow other = (ResultSetRow) obj; 122 if (obj == null) return false; 123 if (this == obj) return true; 124 if (__equalsCalc != null) { 125 return (__equalsCalc == obj); 126 } 127 __equalsCalc = obj; 128 boolean _equals; 129 _equals = true && 130 this.rowIndex == other.getRowIndex() && 131 ((this.columns==null && other.getColumns()==null) || 132 (this.columns!=null && 133 java.util.Arrays.equals(this.columns, other.getColumns()))) && 134 ((this.score==null && other.getScore()==null) || 135 (this.score!=null && 136 this.score.equals(other.getScore()))) && 137 ((this.node==null && other.getNode()==null) || 138 (this.node!=null && 139 this.node.equals(other.getNode()))); 140 __equalsCalc = null; 141 return _equals; 142 } 143 144 private boolean __hashCodeCalc = false; 145 public synchronized int hashCode() { 146 if (__hashCodeCalc) { 147 return 0; 148 } 149 __hashCodeCalc = true; 150 int _hashCode = 1; 151 _hashCode += new Long (getRowIndex()).hashCode(); 152 if (getColumns() != null) { 153 for (int i=0; 154 i<java.lang.reflect.Array.getLength(getColumns()); 155 i++) { 156 java.lang.Object obj = java.lang.reflect.Array.get(getColumns(), i); 157 if (obj != null && 158 !obj.getClass().isArray()) { 159 _hashCode += obj.hashCode(); 160 } 161 } 162 } 163 if (getScore() != null) { 164 _hashCode += getScore().hashCode(); 165 } 166 if (getNode() != null) { 167 _hashCode += getNode().hashCode(); 168 } 169 __hashCodeCalc = false; 170 return _hashCode; 171 } 172 173 private static org.apache.axis.description.TypeDesc typeDesc = 175 new org.apache.axis.description.TypeDesc(ResultSetRow.class, true); 176 177 static { 178 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow")); 179 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 180 elemField.setFieldName("rowIndex"); 181 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "rowIndex")); 182 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "long")); 183 elemField.setNillable(false); 184 typeDesc.addFieldDesc(elemField); 185 elemField = new org.apache.axis.description.ElementDesc(); 186 elemField.setFieldName("columns"); 187 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "columns")); 188 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 189 elemField.setMinOccurs(0); 190 elemField.setNillable(false); 191 elemField.setMaxOccursUnbounded(true); 192 typeDesc.addFieldDesc(elemField); 193 elemField = new org.apache.axis.description.ElementDesc(); 194 elemField.setFieldName("score"); 195 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "score")); 196 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "float")); 197 elemField.setMinOccurs(0); 198 elemField.setNillable(false); 199 typeDesc.addFieldDesc(elemField); 200 elemField = new org.apache.axis.description.ElementDesc(); 201 elemField.setFieldName("node"); 202 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "node")); 203 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node")); 204 elemField.setMinOccurs(0); 205 elemField.setNillable(false); 206 typeDesc.addFieldDesc(elemField); 207 } 208 209 212 public static org.apache.axis.description.TypeDesc getTypeDesc() { 213 return typeDesc; 214 } 215 216 219 public static org.apache.axis.encoding.Serializer getSerializer( 220 java.lang.String mechType, 221 java.lang.Class _javaType, 222 javax.xml.namespace.QName _xmlType) { 223 return 224 new org.apache.axis.encoding.ser.BeanSerializer( 225 _javaType, _xmlType, typeDesc); 226 } 227 228 231 public static org.apache.axis.encoding.Deserializer getDeserializer( 232 java.lang.String mechType, 233 java.lang.Class _javaType, 234 javax.xml.namespace.QName _xmlType) { 235 return 236 new org.apache.axis.encoding.ser.BeanDeserializer( 237 _javaType, _xmlType, typeDesc); 238 } 239 240 } 241 | Popular Tags |