KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > types > ResultSetRow


1 /**
2  * ResultSetRow.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.types;
9
10 public class ResultSetRow implements java.io.Serializable JavaDoc {
11     private long rowIndex;
12
13     private org.alfresco.repo.webservice.types.NamedValue[] columns;
14
15     private java.lang.Float JavaDoc score;
16
17     private org.alfresco.repo.webservice.types.ResultSetRowNode node;
18
19     public ResultSetRow() {
20     }
21
22     public ResultSetRow(
23            long rowIndex,
24            org.alfresco.repo.webservice.types.NamedValue[] columns,
25            java.lang.Float JavaDoc score,
26            org.alfresco.repo.webservice.types.ResultSetRowNode node) {
27            this.rowIndex = rowIndex;
28            this.columns = columns;
29            this.score = score;
30            this.node = node;
31     }
32
33
34     /**
35      * Gets the rowIndex value for this ResultSetRow.
36      *
37      * @return rowIndex
38      */

39     public long getRowIndex() {
40         return rowIndex;
41     }
42
43
44     /**
45      * Sets the rowIndex value for this ResultSetRow.
46      *
47      * @param rowIndex
48      */

49     public void setRowIndex(long rowIndex) {
50         this.rowIndex = rowIndex;
51     }
52
53
54     /**
55      * Gets the columns value for this ResultSetRow.
56      *
57      * @return columns
58      */

59     public org.alfresco.repo.webservice.types.NamedValue[] getColumns() {
60         return columns;
61     }
62
63
64     /**
65      * Sets the columns value for this ResultSetRow.
66      *
67      * @param columns
68      */

69     public void setColumns(org.alfresco.repo.webservice.types.NamedValue[] columns) {
70         this.columns = columns;
71     }
72
73     public org.alfresco.repo.webservice.types.NamedValue getColumns(int i) {
74         return this.columns[i];
75     }
76
77     public void setColumns(int i, org.alfresco.repo.webservice.types.NamedValue _value) {
78         this.columns[i] = _value;
79     }
80
81
82     /**
83      * Gets the score value for this ResultSetRow.
84      *
85      * @return score
86      */

87     public java.lang.Float JavaDoc getScore() {
88         return score;
89     }
90
91
92     /**
93      * Sets the score value for this ResultSetRow.
94      *
95      * @param score
96      */

97     public void setScore(java.lang.Float JavaDoc score) {
98         this.score = score;
99     }
100
101
102     /**
103      * Gets the node value for this ResultSetRow.
104      *
105      * @return node
106      */

107     public org.alfresco.repo.webservice.types.ResultSetRowNode getNode() {
108         return node;
109     }
110
111
112     /**
113      * Sets the node value for this ResultSetRow.
114      *
115      * @param node
116      */

117     public void setNode(org.alfresco.repo.webservice.types.ResultSetRowNode node) {
118         this.node = node;
119     }
120
121     private java.lang.Object JavaDoc __equalsCalc = null;
122     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
123         if (!(obj instanceof ResultSetRow)) return false;
124         ResultSetRow other = (ResultSetRow) obj;
125         if (obj == null) return false;
126         if (this == obj) return true;
127         if (__equalsCalc != null) {
128             return (__equalsCalc == obj);
129         }
130         __equalsCalc = obj;
131         boolean _equals;
132         _equals = true &&
133             this.rowIndex == other.getRowIndex() &&
134             ((this.columns==null && other.getColumns()==null) ||
135              (this.columns!=null &&
136               java.util.Arrays.equals(this.columns, other.getColumns()))) &&
137             ((this.score==null && other.getScore()==null) ||
138              (this.score!=null &&
139               this.score.equals(other.getScore()))) &&
140             ((this.node==null && other.getNode()==null) ||
141              (this.node!=null &&
142               this.node.equals(other.getNode())));
143         __equalsCalc = null;
144         return _equals;
145     }
146
147     private boolean __hashCodeCalc = false;
148     public synchronized int hashCode() {
149         if (__hashCodeCalc) {
150             return 0;
151         }
152         __hashCodeCalc = true;
153         int _hashCode = 1;
154         _hashCode += new Long JavaDoc(getRowIndex()).hashCode();
155         if (getColumns() != null) {
156             for (int i=0;
157                  i<java.lang.reflect.Array.getLength(getColumns());
158                  i++) {
159                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getColumns(), i);
160                 if (obj != null &&
161                     !obj.getClass().isArray()) {
162                     _hashCode += obj.hashCode();
163                 }
164             }
165         }
166         if (getScore() != null) {
167             _hashCode += getScore().hashCode();
168         }
169         if (getNode() != null) {
170             _hashCode += getNode().hashCode();
171         }
172         __hashCodeCalc = false;
173         return _hashCode;
174     }
175
176     // Type metadata
177
private static org.apache.axis.description.TypeDesc typeDesc =
178         new org.apache.axis.description.TypeDesc(ResultSetRow.class, true);
179
180     static {
181         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow"));
182         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
183         elemField.setFieldName("rowIndex");
184         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "rowIndex"));
185         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "long"));
186         elemField.setNillable(false);
187         typeDesc.addFieldDesc(elemField);
188         elemField = new org.apache.axis.description.ElementDesc();
189         elemField.setFieldName("columns");
190         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "columns"));
191         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
192         elemField.setMinOccurs(0);
193         elemField.setNillable(false);
194         elemField.setMaxOccursUnbounded(true);
195         typeDesc.addFieldDesc(elemField);
196         elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("score");
198         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "score"));
199         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "float"));
200         elemField.setMinOccurs(0);
201         elemField.setNillable(false);
202         typeDesc.addFieldDesc(elemField);
203         elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("node");
205         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "node"));
206         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node"));
207         elemField.setMinOccurs(0);
208         elemField.setNillable(false);
209         typeDesc.addFieldDesc(elemField);
210     }
211
212     /**
213      * Return type metadata object
214      */

215     public static org.apache.axis.description.TypeDesc getTypeDesc() {
216         return typeDesc;
217     }
218
219     /**
220      * Get Custom Serializer
221      */

222     public static org.apache.axis.encoding.Serializer getSerializer(
223            java.lang.String JavaDoc mechType,
224            java.lang.Class JavaDoc _javaType,
225            javax.xml.namespace.QName JavaDoc _xmlType) {
226         return
227           new org.apache.axis.encoding.ser.BeanSerializer(
228             _javaType, _xmlType, typeDesc);
229     }
230
231     /**
232      * Get Custom Deserializer
233      */

234     public static org.apache.axis.encoding.Deserializer getDeserializer(
235            java.lang.String JavaDoc mechType,
236            java.lang.Class JavaDoc _javaType,
237            javax.xml.namespace.QName JavaDoc _xmlType) {
238         return
239           new org.apache.axis.encoding.ser.BeanDeserializer(
240             _javaType, _xmlType, typeDesc);
241     }
242
243 }
244
Popular Tags