KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * AssociationDefinition.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 AssociationDefinition 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 boolean isChild;
15     private org.alfresco.example.webservice.types.RoleDefinition sourceRole;
16     private org.alfresco.example.webservice.types.RoleDefinition targetRole;
17     private java.lang.String JavaDoc targetClass;
18
19     public AssociationDefinition() {
20     }
21
22     public AssociationDefinition(
23            java.lang.String JavaDoc name,
24            java.lang.String JavaDoc title,
25            java.lang.String JavaDoc description,
26            boolean isChild,
27            org.alfresco.example.webservice.types.RoleDefinition sourceRole,
28            org.alfresco.example.webservice.types.RoleDefinition targetRole,
29            java.lang.String JavaDoc targetClass) {
30            this.name = name;
31            this.title = title;
32            this.description = description;
33            this.isChild = isChild;
34            this.sourceRole = sourceRole;
35            this.targetRole = targetRole;
36            this.targetClass = targetClass;
37     }
38
39
40     /**
41      * Gets the name value for this AssociationDefinition.
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 AssociationDefinition.
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 AssociationDefinition.
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 AssociationDefinition.
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 AssociationDefinition.
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 AssociationDefinition.
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 isChild value for this AssociationDefinition.
102      *
103      * @return isChild
104      */

105     public boolean isIsChild() {
106         return isChild;
107     }
108
109
110     /**
111      * Sets the isChild value for this AssociationDefinition.
112      *
113      * @param isChild
114      */

115     public void setIsChild(boolean isChild) {
116         this.isChild = isChild;
117     }
118
119
120     /**
121      * Gets the sourceRole value for this AssociationDefinition.
122      *
123      * @return sourceRole
124      */

125     public org.alfresco.example.webservice.types.RoleDefinition getSourceRole() {
126         return sourceRole;
127     }
128
129
130     /**
131      * Sets the sourceRole value for this AssociationDefinition.
132      *
133      * @param sourceRole
134      */

135     public void setSourceRole(org.alfresco.example.webservice.types.RoleDefinition sourceRole) {
136         this.sourceRole = sourceRole;
137     }
138
139
140     /**
141      * Gets the targetRole value for this AssociationDefinition.
142      *
143      * @return targetRole
144      */

145     public org.alfresco.example.webservice.types.RoleDefinition getTargetRole() {
146         return targetRole;
147     }
148
149
150     /**
151      * Sets the targetRole value for this AssociationDefinition.
152      *
153      * @param targetRole
154      */

155     public void setTargetRole(org.alfresco.example.webservice.types.RoleDefinition targetRole) {
156         this.targetRole = targetRole;
157     }
158
159
160     /**
161      * Gets the targetClass value for this AssociationDefinition.
162      *
163      * @return targetClass
164      */

165     public java.lang.String JavaDoc getTargetClass() {
166         return targetClass;
167     }
168
169
170     /**
171      * Sets the targetClass value for this AssociationDefinition.
172      *
173      * @param targetClass
174      */

175     public void setTargetClass(java.lang.String JavaDoc targetClass) {
176         this.targetClass = targetClass;
177     }
178
179     private java.lang.Object JavaDoc __equalsCalc = null;
180     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
181         if (!(obj instanceof AssociationDefinition)) return false;
182         AssociationDefinition other = (AssociationDefinition) obj;
183         if (obj == null) return false;
184         if (this == obj) return true;
185         if (__equalsCalc != null) {
186             return (__equalsCalc == obj);
187         }
188         __equalsCalc = obj;
189         boolean _equals;
190         _equals = true &&
191             ((this.name==null && other.getName()==null) ||
192              (this.name!=null &&
193               this.name.equals(other.getName()))) &&
194             ((this.title==null && other.getTitle()==null) ||
195              (this.title!=null &&
196               this.title.equals(other.getTitle()))) &&
197             ((this.description==null && other.getDescription()==null) ||
198              (this.description!=null &&
199               this.description.equals(other.getDescription()))) &&
200             this.isChild == other.isIsChild() &&
201             ((this.sourceRole==null && other.getSourceRole()==null) ||
202              (this.sourceRole!=null &&
203               this.sourceRole.equals(other.getSourceRole()))) &&
204             ((this.targetRole==null && other.getTargetRole()==null) ||
205              (this.targetRole!=null &&
206               this.targetRole.equals(other.getTargetRole()))) &&
207             ((this.targetClass==null && other.getTargetClass()==null) ||
208              (this.targetClass!=null &&
209               this.targetClass.equals(other.getTargetClass())));
210         __equalsCalc = null;
211         return _equals;
212     }
213
214     private boolean __hashCodeCalc = false;
215     public synchronized int hashCode() {
216         if (__hashCodeCalc) {
217             return 0;
218         }
219         __hashCodeCalc = true;
220         int _hashCode = 1;
221         if (getName() != null) {
222             _hashCode += getName().hashCode();
223         }
224         if (getTitle() != null) {
225             _hashCode += getTitle().hashCode();
226         }
227         if (getDescription() != null) {
228             _hashCode += getDescription().hashCode();
229         }
230         _hashCode += (isIsChild() ? Boolean.TRUE : Boolean.FALSE).hashCode();
231         if (getSourceRole() != null) {
232             _hashCode += getSourceRole().hashCode();
233         }
234         if (getTargetRole() != null) {
235             _hashCode += getTargetRole().hashCode();
236         }
237         if (getTargetClass() != null) {
238             _hashCode += getTargetClass().hashCode();
239         }
240         __hashCodeCalc = false;
241         return _hashCode;
242     }
243
244     // Type metadata
245
private static org.apache.axis.description.TypeDesc typeDesc =
246         new org.apache.axis.description.TypeDesc(AssociationDefinition.class, true);
247
248     static {
249         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition"));
250         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
251         elemField.setFieldName("name");
252         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "name"));
253         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
254         elemField.setNillable(false);
255         typeDesc.addFieldDesc(elemField);
256         elemField = new org.apache.axis.description.ElementDesc();
257         elemField.setFieldName("title");
258         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "title"));
259         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
260         elemField.setMinOccurs(0);
261         elemField.setNillable(false);
262         typeDesc.addFieldDesc(elemField);
263         elemField = new org.apache.axis.description.ElementDesc();
264         elemField.setFieldName("description");
265         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "description"));
266         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
267         elemField.setMinOccurs(0);
268         elemField.setNillable(false);
269         typeDesc.addFieldDesc(elemField);
270         elemField = new org.apache.axis.description.ElementDesc();
271         elemField.setFieldName("isChild");
272         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "isChild"));
273         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
274         elemField.setNillable(false);
275         typeDesc.addFieldDesc(elemField);
276         elemField = new org.apache.axis.description.ElementDesc();
277         elemField.setFieldName("sourceRole");
278         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "sourceRole"));
279         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition"));
280         elemField.setMinOccurs(0);
281         elemField.setNillable(false);
282         typeDesc.addFieldDesc(elemField);
283         elemField = new org.apache.axis.description.ElementDesc();
284         elemField.setFieldName("targetRole");
285         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "targetRole"));
286         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition"));
287         elemField.setMinOccurs(0);
288         elemField.setNillable(false);
289         typeDesc.addFieldDesc(elemField);
290         elemField = new org.apache.axis.description.ElementDesc();
291         elemField.setFieldName("targetClass");
292         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "targetClass"));
293         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
294         elemField.setNillable(false);
295         typeDesc.addFieldDesc(elemField);
296     }
297
298     /**
299      * Return type metadata object
300      */

301     public static org.apache.axis.description.TypeDesc getTypeDesc() {
302         return typeDesc;
303     }
304
305     /**
306      * Get Custom Serializer
307      */

308     public static org.apache.axis.encoding.Serializer getSerializer(
309            java.lang.String JavaDoc mechType,
310            java.lang.Class JavaDoc _javaType,
311            javax.xml.namespace.QName JavaDoc _xmlType) {
312         return
313           new org.apache.axis.encoding.ser.BeanSerializer(
314             _javaType, _xmlType, typeDesc);
315     }
316
317     /**
318      * Get Custom Deserializer
319      */

320     public static org.apache.axis.encoding.Deserializer getDeserializer(
321            java.lang.String JavaDoc mechType,
322            java.lang.Class JavaDoc _javaType,
323            javax.xml.namespace.QName JavaDoc _xmlType) {
324         return
325           new org.apache.axis.encoding.ser.BeanDeserializer(
326             _javaType, _xmlType, typeDesc);
327     }
328
329 }
330
Popular Tags