KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ClassDefinition.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 ClassDefinition implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc name;
12     private java.lang.String JavaDoc title;
13     private java.lang.String JavaDoc description;
14     private java.lang.String JavaDoc superClass;
15     private boolean isAspect;
16     private org.alfresco.example.webservice.types.PropertyDefinition[] properties;
17     private org.alfresco.example.webservice.types.AssociationDefinition[] associations;
18
19     public ClassDefinition() {
20     }
21
22     public ClassDefinition(
23            java.lang.String JavaDoc name,
24            java.lang.String JavaDoc title,
25            java.lang.String JavaDoc description,
26            java.lang.String JavaDoc superClass,
27            boolean isAspect,
28            org.alfresco.example.webservice.types.PropertyDefinition[] properties,
29            org.alfresco.example.webservice.types.AssociationDefinition[] associations) {
30            this.name = name;
31            this.title = title;
32            this.description = description;
33            this.superClass = superClass;
34            this.isAspect = isAspect;
35            this.properties = properties;
36            this.associations = associations;
37     }
38
39
40     /**
41      * Gets the name value for this ClassDefinition.
42      *
43      * @return name
44      */

45     public java.lang.String JavaDoc getName() {
46         return name;
47     }
48
49
50     /**
51      * Sets the name value for this ClassDefinition.
52      *
53      * @param name
54      */

55     public void setName(java.lang.String JavaDoc name) {
56         this.name = name;
57     }
58
59
60     /**
61      * Gets the title value for this ClassDefinition.
62      *
63      * @return title
64      */

65     public java.lang.String JavaDoc getTitle() {
66         return title;
67     }
68
69
70     /**
71      * Sets the title value for this ClassDefinition.
72      *
73      * @param title
74      */

75     public void setTitle(java.lang.String JavaDoc title) {
76         this.title = title;
77     }
78
79
80     /**
81      * Gets the description value for this ClassDefinition.
82      *
83      * @return description
84      */

85     public java.lang.String JavaDoc getDescription() {
86         return description;
87     }
88
89
90     /**
91      * Sets the description value for this ClassDefinition.
92      *
93      * @param description
94      */

95     public void setDescription(java.lang.String JavaDoc description) {
96         this.description = description;
97     }
98
99
100     /**
101      * Gets the superClass value for this ClassDefinition.
102      *
103      * @return superClass
104      */

105     public java.lang.String JavaDoc getSuperClass() {
106         return superClass;
107     }
108
109
110     /**
111      * Sets the superClass value for this ClassDefinition.
112      *
113      * @param superClass
114      */

115     public void setSuperClass(java.lang.String JavaDoc superClass) {
116         this.superClass = superClass;
117     }
118
119
120     /**
121      * Gets the isAspect value for this ClassDefinition.
122      *
123      * @return isAspect
124      */

125     public boolean isIsAspect() {
126         return isAspect;
127     }
128
129
130     /**
131      * Sets the isAspect value for this ClassDefinition.
132      *
133      * @param isAspect
134      */

135     public void setIsAspect(boolean isAspect) {
136         this.isAspect = isAspect;
137     }
138
139
140     /**
141      * Gets the properties value for this ClassDefinition.
142      *
143      * @return properties
144      */

145     public org.alfresco.example.webservice.types.PropertyDefinition[] getProperties() {
146         return properties;
147     }
148
149
150     /**
151      * Sets the properties value for this ClassDefinition.
152      *
153      * @param properties
154      */

155     public void setProperties(org.alfresco.example.webservice.types.PropertyDefinition[] properties) {
156         this.properties = properties;
157     }
158
159     public org.alfresco.example.webservice.types.PropertyDefinition getProperties(int i) {
160         return this.properties[i];
161     }
162
163     public void setProperties(int i, org.alfresco.example.webservice.types.PropertyDefinition _value) {
164         this.properties[i] = _value;
165     }
166
167
168     /**
169      * Gets the associations value for this ClassDefinition.
170      *
171      * @return associations
172      */

173     public org.alfresco.example.webservice.types.AssociationDefinition[] getAssociations() {
174         return associations;
175     }
176
177
178     /**
179      * Sets the associations value for this ClassDefinition.
180      *
181      * @param associations
182      */

183     public void setAssociations(org.alfresco.example.webservice.types.AssociationDefinition[] associations) {
184         this.associations = associations;
185     }
186
187     public org.alfresco.example.webservice.types.AssociationDefinition getAssociations(int i) {
188         return this.associations[i];
189     }
190
191     public void setAssociations(int i, org.alfresco.example.webservice.types.AssociationDefinition _value) {
192         this.associations[i] = _value;
193     }
194
195     private java.lang.Object JavaDoc __equalsCalc = null;
196     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
197         if (!(obj instanceof ClassDefinition)) return false;
198         ClassDefinition other = (ClassDefinition) obj;
199         if (obj == null) return false;
200         if (this == obj) return true;
201         if (__equalsCalc != null) {
202             return (__equalsCalc == obj);
203         }
204         __equalsCalc = obj;
205         boolean _equals;
206         _equals = true &&
207             ((this.name==null && other.getName()==null) ||
208              (this.name!=null &&
209               this.name.equals(other.getName()))) &&
210             ((this.title==null && other.getTitle()==null) ||
211              (this.title!=null &&
212               this.title.equals(other.getTitle()))) &&
213             ((this.description==null && other.getDescription()==null) ||
214              (this.description!=null &&
215               this.description.equals(other.getDescription()))) &&
216             ((this.superClass==null && other.getSuperClass()==null) ||
217              (this.superClass!=null &&
218               this.superClass.equals(other.getSuperClass()))) &&
219             this.isAspect == other.isIsAspect() &&
220             ((this.properties==null && other.getProperties()==null) ||
221              (this.properties!=null &&
222               java.util.Arrays.equals(this.properties, other.getProperties()))) &&
223             ((this.associations==null && other.getAssociations()==null) ||
224              (this.associations!=null &&
225               java.util.Arrays.equals(this.associations, other.getAssociations())));
226         __equalsCalc = null;
227         return _equals;
228     }
229
230     private boolean __hashCodeCalc = false;
231     public synchronized int hashCode() {
232         if (__hashCodeCalc) {
233             return 0;
234         }
235         __hashCodeCalc = true;
236         int _hashCode = 1;
237         if (getName() != null) {
238             _hashCode += getName().hashCode();
239         }
240         if (getTitle() != null) {
241             _hashCode += getTitle().hashCode();
242         }
243         if (getDescription() != null) {
244             _hashCode += getDescription().hashCode();
245         }
246         if (getSuperClass() != null) {
247             _hashCode += getSuperClass().hashCode();
248         }
249         _hashCode += (isIsAspect() ? Boolean.TRUE : Boolean.FALSE).hashCode();
250         if (getProperties() != null) {
251             for (int i=0;
252                  i<java.lang.reflect.Array.getLength(getProperties());
253                  i++) {
254                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperties(), i);
255                 if (obj != null &&
256                     !obj.getClass().isArray()) {
257                     _hashCode += obj.hashCode();
258                 }
259             }
260         }
261         if (getAssociations() != null) {
262             for (int i=0;
263                  i<java.lang.reflect.Array.getLength(getAssociations());
264                  i++) {
265                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAssociations(), i);
266                 if (obj != null &&
267                     !obj.getClass().isArray()) {
268                     _hashCode += obj.hashCode();
269                 }
270             }
271         }
272         __hashCodeCalc = false;
273         return _hashCode;
274     }
275
276     // Type metadata
277
private static org.apache.axis.description.TypeDesc typeDesc =
278         new org.apache.axis.description.TypeDesc(ClassDefinition.class, true);
279
280     static {
281         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition"));
282         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
283         elemField.setFieldName("name");
284         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "name"));
285         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
286         elemField.setNillable(false);
287         typeDesc.addFieldDesc(elemField);
288         elemField = new org.apache.axis.description.ElementDesc();
289         elemField.setFieldName("title");
290         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "title"));
291         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
292         elemField.setMinOccurs(0);
293         elemField.setNillable(false);
294         typeDesc.addFieldDesc(elemField);
295         elemField = new org.apache.axis.description.ElementDesc();
296         elemField.setFieldName("description");
297         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "description"));
298         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
299         elemField.setMinOccurs(0);
300         elemField.setNillable(false);
301         typeDesc.addFieldDesc(elemField);
302         elemField = new org.apache.axis.description.ElementDesc();
303         elemField.setFieldName("superClass");
304         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "superClass"));
305         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
306         elemField.setMinOccurs(0);
307         elemField.setNillable(false);
308         typeDesc.addFieldDesc(elemField);
309         elemField = new org.apache.axis.description.ElementDesc();
310         elemField.setFieldName("isAspect");
311         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "isAspect"));
312         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
313         elemField.setNillable(false);
314         typeDesc.addFieldDesc(elemField);
315         elemField = new org.apache.axis.description.ElementDesc();
316         elemField.setFieldName("properties");
317         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "properties"));
318         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition"));
319         elemField.setMinOccurs(0);
320         elemField.setNillable(true);
321         elemField.setMaxOccursUnbounded(true);
322         typeDesc.addFieldDesc(elemField);
323         elemField = new org.apache.axis.description.ElementDesc();
324         elemField.setFieldName("associations");
325         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "associations"));
326         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition"));
327         elemField.setMinOccurs(0);
328         elemField.setNillable(true);
329         elemField.setMaxOccursUnbounded(true);
330         typeDesc.addFieldDesc(elemField);
331     }
332
333     /**
334      * Return type metadata object
335      */

336     public static org.apache.axis.description.TypeDesc getTypeDesc() {
337         return typeDesc;
338     }
339
340     /**
341      * Get Custom Serializer
342      */

343     public static org.apache.axis.encoding.Serializer getSerializer(
344            java.lang.String JavaDoc mechType,
345            java.lang.Class JavaDoc _javaType,
346            javax.xml.namespace.QName JavaDoc _xmlType) {
347         return
348           new org.apache.axis.encoding.ser.BeanSerializer(
349             _javaType, _xmlType, typeDesc);
350     }
351
352     /**
353      * Get Custom Deserializer
354      */

355     public static org.apache.axis.encoding.Deserializer getDeserializer(
356            java.lang.String JavaDoc mechType,
357            java.lang.Class JavaDoc _javaType,
358            javax.xml.namespace.QName JavaDoc _xmlType) {
359         return
360           new org.apache.axis.encoding.ser.BeanDeserializer(
361             _javaType, _xmlType, typeDesc);
362     }
363
364 }
365
Popular Tags