KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > ResultSetRowNode


1 /**
2  * ResultSetRowNode.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.types;
9
10 public class ResultSetRowNode implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc id;
12     private java.lang.String JavaDoc type;
13     private java.lang.String JavaDoc[] aspects;
14
15     public ResultSetRowNode() {
16     }
17
18     public ResultSetRowNode(
19            java.lang.String JavaDoc id,
20            java.lang.String JavaDoc type,
21            java.lang.String JavaDoc[] aspects) {
22            this.id = id;
23            this.type = type;
24            this.aspects = aspects;
25     }
26
27
28     /**
29      * Gets the id value for this ResultSetRowNode.
30      *
31      * @return id
32      */

33     public java.lang.String JavaDoc getId() {
34         return id;
35     }
36
37
38     /**
39      * Sets the id value for this ResultSetRowNode.
40      *
41      * @param id
42      */

43     public void setId(java.lang.String JavaDoc id) {
44         this.id = id;
45     }
46
47
48     /**
49      * Gets the type value for this ResultSetRowNode.
50      *
51      * @return type
52      */

53     public java.lang.String JavaDoc getType() {
54         return type;
55     }
56
57
58     /**
59      * Sets the type value for this ResultSetRowNode.
60      *
61      * @param type
62      */

63     public void setType(java.lang.String JavaDoc type) {
64         this.type = type;
65     }
66
67
68     /**
69      * Gets the aspects value for this ResultSetRowNode.
70      *
71      * @return aspects
72      */

73     public java.lang.String JavaDoc[] getAspects() {
74         return aspects;
75     }
76
77
78     /**
79      * Sets the aspects value for this ResultSetRowNode.
80      *
81      * @param aspects
82      */

83     public void setAspects(java.lang.String JavaDoc[] aspects) {
84         this.aspects = aspects;
85     }
86
87     public java.lang.String JavaDoc getAspects(int i) {
88         return this.aspects[i];
89     }
90
91     public void setAspects(int i, java.lang.String JavaDoc _value) {
92         this.aspects[i] = _value;
93     }
94
95     private java.lang.Object JavaDoc __equalsCalc = null;
96     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
97         if (!(obj instanceof ResultSetRowNode)) return false;
98         ResultSetRowNode other = (ResultSetRowNode) obj;
99         if (obj == null) return false;
100         if (this == obj) return true;
101         if (__equalsCalc != null) {
102             return (__equalsCalc == obj);
103         }
104         __equalsCalc = obj;
105         boolean _equals;
106         _equals = true &&
107             ((this.id==null && other.getId()==null) ||
108              (this.id!=null &&
109               this.id.equals(other.getId()))) &&
110             ((this.type==null && other.getType()==null) ||
111              (this.type!=null &&
112               this.type.equals(other.getType()))) &&
113             ((this.aspects==null && other.getAspects()==null) ||
114              (this.aspects!=null &&
115               java.util.Arrays.equals(this.aspects, other.getAspects())));
116         __equalsCalc = null;
117         return _equals;
118     }
119
120     private boolean __hashCodeCalc = false;
121     public synchronized int hashCode() {
122         if (__hashCodeCalc) {
123             return 0;
124         }
125         __hashCodeCalc = true;
126         int _hashCode = 1;
127         if (getId() != null) {
128             _hashCode += getId().hashCode();
129         }
130         if (getType() != null) {
131             _hashCode += getType().hashCode();
132         }
133         if (getAspects() != null) {
134             for (int i=0;
135                  i<java.lang.reflect.Array.getLength(getAspects());
136                  i++) {
137                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAspects(), i);
138                 if (obj != null &&
139                     !obj.getClass().isArray()) {
140                     _hashCode += obj.hashCode();
141                 }
142             }
143         }
144         __hashCodeCalc = false;
145         return _hashCode;
146     }
147
148     // Type metadata
149
private static org.apache.axis.description.TypeDesc typeDesc =
150         new org.apache.axis.description.TypeDesc(ResultSetRowNode.class, true);
151
152     static {
153         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node"));
154         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
155         elemField.setFieldName("id");
156         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "id"));
157         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "UUID"));
158         elemField.setNillable(false);
159         typeDesc.addFieldDesc(elemField);
160         elemField = new org.apache.axis.description.ElementDesc();
161         elemField.setFieldName("type");
162         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "type"));
163         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
164         elemField.setNillable(false);
165         typeDesc.addFieldDesc(elemField);
166         elemField = new org.apache.axis.description.ElementDesc();
167         elemField.setFieldName("aspects");
168         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "aspects"));
169         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
170         elemField.setMinOccurs(0);
171         elemField.setNillable(false);
172         elemField.setMaxOccursUnbounded(true);
173         typeDesc.addFieldDesc(elemField);
174     }
175
176     /**
177      * Return type metadata object
178      */

179     public static org.apache.axis.description.TypeDesc getTypeDesc() {
180         return typeDesc;
181     }
182
183     /**
184      * Get Custom Serializer
185      */

186     public static org.apache.axis.encoding.Serializer getSerializer(
187            java.lang.String JavaDoc mechType,
188            java.lang.Class JavaDoc _javaType,
189            javax.xml.namespace.QName JavaDoc _xmlType) {
190         return
191           new org.apache.axis.encoding.ser.BeanSerializer(
192             _javaType, _xmlType, typeDesc);
193     }
194
195     /**
196      * Get Custom Deserializer
197      */

198     public static org.apache.axis.encoding.Deserializer getDeserializer(
199            java.lang.String JavaDoc mechType,
200            java.lang.Class JavaDoc _javaType,
201            javax.xml.namespace.QName JavaDoc _xmlType) {
202         return
203           new org.apache.axis.encoding.ser.BeanDeserializer(
204             _javaType, _xmlType, typeDesc);
205     }
206
207 }
208
Popular Tags