KickJava   Java API By Example, From Geeks To Geeks.

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


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

111     public boolean isIsChild() {
112         return isChild;
113     }
114
115
116     /**
117      * Sets the isChild value for this AssociationDefinition.
118      *
119      * @param isChild
120      */

121     public void setIsChild(boolean isChild) {
122         this.isChild = isChild;
123     }
124
125
126     /**
127      * Gets the sourceRole value for this AssociationDefinition.
128      *
129      * @return sourceRole
130      */

131     public org.alfresco.repo.webservice.types.RoleDefinition getSourceRole() {
132         return sourceRole;
133     }
134
135
136     /**
137      * Sets the sourceRole value for this AssociationDefinition.
138      *
139      * @param sourceRole
140      */

141     public void setSourceRole(org.alfresco.repo.webservice.types.RoleDefinition sourceRole) {
142         this.sourceRole = sourceRole;
143     }
144
145
146     /**
147      * Gets the targetRole value for this AssociationDefinition.
148      *
149      * @return targetRole
150      */

151     public org.alfresco.repo.webservice.types.RoleDefinition getTargetRole() {
152         return targetRole;
153     }
154
155
156     /**
157      * Sets the targetRole value for this AssociationDefinition.
158      *
159      * @param targetRole
160      */

161     public void setTargetRole(org.alfresco.repo.webservice.types.RoleDefinition targetRole) {
162         this.targetRole = targetRole;
163     }
164
165
166     /**
167      * Gets the targetClass value for this AssociationDefinition.
168      *
169      * @return targetClass
170      */

171     public java.lang.String JavaDoc getTargetClass() {
172         return targetClass;
173     }
174
175
176     /**
177      * Sets the targetClass value for this AssociationDefinition.
178      *
179      * @param targetClass
180      */

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

307     public static org.apache.axis.description.TypeDesc getTypeDesc() {
308         return typeDesc;
309     }
310
311     /**
312      * Get Custom Serializer
313      */

314     public static org.apache.axis.encoding.Serializer getSerializer(
315            java.lang.String JavaDoc mechType,
316            java.lang.Class JavaDoc _javaType,
317            javax.xml.namespace.QName JavaDoc _xmlType) {
318         return
319           new org.apache.axis.encoding.ser.BeanSerializer(
320             _javaType, _xmlType, typeDesc);
321     }
322
323     /**
324      * Get Custom Deserializer
325      */

326     public static org.apache.axis.encoding.Deserializer getDeserializer(
327            java.lang.String JavaDoc mechType,
328            java.lang.Class JavaDoc _javaType,
329            javax.xml.namespace.QName JavaDoc _xmlType) {
330         return
331           new org.apache.axis.encoding.ser.BeanDeserializer(
332             _javaType, _xmlType, typeDesc);
333     }
334
335 }
336
Popular Tags