KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ResultSetRowNode.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 ResultSetRowNode implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc id;
12
13     private java.lang.String JavaDoc type;
14
15     private java.lang.String JavaDoc[] aspects;
16
17     public ResultSetRowNode() {
18     }
19
20     public ResultSetRowNode(
21            java.lang.String JavaDoc id,
22            java.lang.String JavaDoc type,
23            java.lang.String JavaDoc[] aspects) {
24            this.id = id;
25            this.type = type;
26            this.aspects = aspects;
27     }
28
29
30     /**
31      * Gets the id value for this ResultSetRowNode.
32      *
33      * @return id
34      */

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

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

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

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

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

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

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

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

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