KickJava   Java API By Example, From Geeks To Geeks.

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


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

51     public java.lang.String JavaDoc getName() {
52         return name;
53     }
54
55
56     /**
57      * Sets the name value for this ClassDefinition.
58      *
59      * @param name
60      */

61     public void setName(java.lang.String JavaDoc name) {
62         this.name = name;
63     }
64
65
66     /**
67      * Gets the title value for this ClassDefinition.
68      *
69      * @return title
70      */

71     public java.lang.String JavaDoc getTitle() {
72         return title;
73     }
74
75
76     /**
77      * Sets the title value for this ClassDefinition.
78      *
79      * @param title
80      */

81     public void setTitle(java.lang.String JavaDoc title) {
82         this.title = title;
83     }
84
85
86     /**
87      * Gets the description value for this ClassDefinition.
88      *
89      * @return description
90      */

91     public java.lang.String JavaDoc getDescription() {
92         return description;
93     }
94
95
96     /**
97      * Sets the description value for this ClassDefinition.
98      *
99      * @param description
100      */

101     public void setDescription(java.lang.String JavaDoc description) {
102         this.description = description;
103     }
104
105
106     /**
107      * Gets the superClass value for this ClassDefinition.
108      *
109      * @return superClass
110      */

111     public java.lang.String JavaDoc getSuperClass() {
112         return superClass;
113     }
114
115
116     /**
117      * Sets the superClass value for this ClassDefinition.
118      *
119      * @param superClass
120      */

121     public void setSuperClass(java.lang.String JavaDoc superClass) {
122         this.superClass = superClass;
123     }
124
125
126     /**
127      * Gets the isAspect value for this ClassDefinition.
128      *
129      * @return isAspect
130      */

131     public boolean isIsAspect() {
132         return isAspect;
133     }
134
135
136     /**
137      * Sets the isAspect value for this ClassDefinition.
138      *
139      * @param isAspect
140      */

141     public void setIsAspect(boolean isAspect) {
142         this.isAspect = isAspect;
143     }
144
145
146     /**
147      * Gets the properties value for this ClassDefinition.
148      *
149      * @return properties
150      */

151     public org.alfresco.repo.webservice.types.PropertyDefinition[] getProperties() {
152         return properties;
153     }
154
155
156     /**
157      * Sets the properties value for this ClassDefinition.
158      *
159      * @param properties
160      */

161     public void setProperties(org.alfresco.repo.webservice.types.PropertyDefinition[] properties) {
162         this.properties = properties;
163     }
164
165     public org.alfresco.repo.webservice.types.PropertyDefinition getProperties(int i) {
166         return this.properties[i];
167     }
168
169     public void setProperties(int i, org.alfresco.repo.webservice.types.PropertyDefinition _value) {
170         this.properties[i] = _value;
171     }
172
173
174     /**
175      * Gets the associations value for this ClassDefinition.
176      *
177      * @return associations
178      */

179     public org.alfresco.repo.webservice.types.AssociationDefinition[] getAssociations() {
180         return associations;
181     }
182
183
184     /**
185      * Sets the associations value for this ClassDefinition.
186      *
187      * @param associations
188      */

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

342     public static org.apache.axis.description.TypeDesc getTypeDesc() {
343         return typeDesc;
344     }
345
346     /**
347      * Get Custom Serializer
348      */

349     public static org.apache.axis.encoding.Serializer getSerializer(
350            java.lang.String JavaDoc mechType,
351            java.lang.Class JavaDoc _javaType,
352            javax.xml.namespace.QName JavaDoc _xmlType) {
353         return
354           new org.apache.axis.encoding.ser.BeanSerializer(
355             _javaType, _xmlType, typeDesc);
356     }
357
358     /**
359      * Get Custom Deserializer
360      */

361     public static org.apache.axis.encoding.Deserializer getDeserializer(
362            java.lang.String JavaDoc mechType,
363            java.lang.Class JavaDoc _javaType,
364            javax.xml.namespace.QName JavaDoc _xmlType) {
365         return
366           new org.apache.axis.encoding.ser.BeanDeserializer(
367             _javaType, _xmlType, typeDesc);
368     }
369
370 }
371
Popular Tags