KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > action > Action


1 /**
2  * Action.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.action;
9
10 public class Action implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc id;
12
13     private java.lang.String JavaDoc actionName;
14
15     private java.lang.String JavaDoc title;
16
17     private java.lang.String JavaDoc description;
18
19     private boolean executeAsynchronously;
20
21     private org.alfresco.repo.webservice.types.NamedValue[] parameters;
22
23     private org.alfresco.repo.webservice.action.Condition[] conditions;
24
25     private org.alfresco.repo.webservice.action.Action compensatingAction;
26
27     private org.alfresco.repo.webservice.action.Action[] actions;
28
29     private org.alfresco.repo.webservice.types.Reference reference;
30
31     public Action() {
32     }
33
34     public Action(
35            java.lang.String JavaDoc id,
36            java.lang.String JavaDoc actionName,
37            java.lang.String JavaDoc title,
38            java.lang.String JavaDoc description,
39            boolean executeAsynchronously,
40            org.alfresco.repo.webservice.types.NamedValue[] parameters,
41            org.alfresco.repo.webservice.action.Condition[] conditions,
42            org.alfresco.repo.webservice.action.Action compensatingAction,
43            org.alfresco.repo.webservice.action.Action[] actions,
44            org.alfresco.repo.webservice.types.Reference reference) {
45            this.id = id;
46            this.actionName = actionName;
47            this.title = title;
48            this.description = description;
49            this.executeAsynchronously = executeAsynchronously;
50            this.parameters = parameters;
51            this.conditions = conditions;
52            this.compensatingAction = compensatingAction;
53            this.actions = actions;
54            this.reference = reference;
55     }
56
57
58     /**
59      * Gets the id value for this Action.
60      *
61      * @return id
62      */

63     public java.lang.String JavaDoc getId() {
64         return id;
65     }
66
67
68     /**
69      * Sets the id value for this Action.
70      *
71      * @param id
72      */

73     public void setId(java.lang.String JavaDoc id) {
74         this.id = id;
75     }
76
77
78     /**
79      * Gets the actionName value for this Action.
80      *
81      * @return actionName
82      */

83     public java.lang.String JavaDoc getActionName() {
84         return actionName;
85     }
86
87
88     /**
89      * Sets the actionName value for this Action.
90      *
91      * @param actionName
92      */

93     public void setActionName(java.lang.String JavaDoc actionName) {
94         this.actionName = actionName;
95     }
96
97
98     /**
99      * Gets the title value for this Action.
100      *
101      * @return title
102      */

103     public java.lang.String JavaDoc getTitle() {
104         return title;
105     }
106
107
108     /**
109      * Sets the title value for this Action.
110      *
111      * @param title
112      */

113     public void setTitle(java.lang.String JavaDoc title) {
114         this.title = title;
115     }
116
117
118     /**
119      * Gets the description value for this Action.
120      *
121      * @return description
122      */

123     public java.lang.String JavaDoc getDescription() {
124         return description;
125     }
126
127
128     /**
129      * Sets the description value for this Action.
130      *
131      * @param description
132      */

133     public void setDescription(java.lang.String JavaDoc description) {
134         this.description = description;
135     }
136
137
138     /**
139      * Gets the executeAsynchronously value for this Action.
140      *
141      * @return executeAsynchronously
142      */

143     public boolean isExecuteAsynchronously() {
144         return executeAsynchronously;
145     }
146
147
148     /**
149      * Sets the executeAsynchronously value for this Action.
150      *
151      * @param executeAsynchronously
152      */

153     public void setExecuteAsynchronously(boolean executeAsynchronously) {
154         this.executeAsynchronously = executeAsynchronously;
155     }
156
157
158     /**
159      * Gets the parameters value for this Action.
160      *
161      * @return parameters
162      */

163     public org.alfresco.repo.webservice.types.NamedValue[] getParameters() {
164         return parameters;
165     }
166
167
168     /**
169      * Sets the parameters value for this Action.
170      *
171      * @param parameters
172      */

173     public void setParameters(org.alfresco.repo.webservice.types.NamedValue[] parameters) {
174         this.parameters = parameters;
175     }
176
177     public org.alfresco.repo.webservice.types.NamedValue getParameters(int i) {
178         return this.parameters[i];
179     }
180
181     public void setParameters(int i, org.alfresco.repo.webservice.types.NamedValue _value) {
182         this.parameters[i] = _value;
183     }
184
185
186     /**
187      * Gets the conditions value for this Action.
188      *
189      * @return conditions
190      */

191     public org.alfresco.repo.webservice.action.Condition[] getConditions() {
192         return conditions;
193     }
194
195
196     /**
197      * Sets the conditions value for this Action.
198      *
199      * @param conditions
200      */

201     public void setConditions(org.alfresco.repo.webservice.action.Condition[] conditions) {
202         this.conditions = conditions;
203     }
204
205     public org.alfresco.repo.webservice.action.Condition getConditions(int i) {
206         return this.conditions[i];
207     }
208
209     public void setConditions(int i, org.alfresco.repo.webservice.action.Condition _value) {
210         this.conditions[i] = _value;
211     }
212
213
214     /**
215      * Gets the compensatingAction value for this Action.
216      *
217      * @return compensatingAction
218      */

219     public org.alfresco.repo.webservice.action.Action getCompensatingAction() {
220         return compensatingAction;
221     }
222
223
224     /**
225      * Sets the compensatingAction value for this Action.
226      *
227      * @param compensatingAction
228      */

229     public void setCompensatingAction(org.alfresco.repo.webservice.action.Action compensatingAction) {
230         this.compensatingAction = compensatingAction;
231     }
232
233
234     /**
235      * Gets the actions value for this Action.
236      *
237      * @return actions
238      */

239     public org.alfresco.repo.webservice.action.Action[] getActions() {
240         return actions;
241     }
242
243
244     /**
245      * Sets the actions value for this Action.
246      *
247      * @param actions
248      */

249     public void setActions(org.alfresco.repo.webservice.action.Action[] actions) {
250         this.actions = actions;
251     }
252
253     public org.alfresco.repo.webservice.action.Action getActions(int i) {
254         return this.actions[i];
255     }
256
257     public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) {
258         this.actions[i] = _value;
259     }
260
261
262     /**
263      * Gets the reference value for this Action.
264      *
265      * @return reference
266      */

267     public org.alfresco.repo.webservice.types.Reference getReference() {
268         return reference;
269     }
270
271
272     /**
273      * Sets the reference value for this Action.
274      *
275      * @param reference
276      */

277     public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
278         this.reference = reference;
279     }
280
281     private java.lang.Object JavaDoc __equalsCalc = null;
282     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
283         if (!(obj instanceof Action)) return false;
284         Action other = (Action) obj;
285         if (obj == null) return false;
286         if (this == obj) return true;
287         if (__equalsCalc != null) {
288             return (__equalsCalc == obj);
289         }
290         __equalsCalc = obj;
291         boolean _equals;
292         _equals = true &&
293             ((this.id==null && other.getId()==null) ||
294              (this.id!=null &&
295               this.id.equals(other.getId()))) &&
296             ((this.actionName==null && other.getActionName()==null) ||
297              (this.actionName!=null &&
298               this.actionName.equals(other.getActionName()))) &&
299             ((this.title==null && other.getTitle()==null) ||
300              (this.title!=null &&
301               this.title.equals(other.getTitle()))) &&
302             ((this.description==null && other.getDescription()==null) ||
303              (this.description!=null &&
304               this.description.equals(other.getDescription()))) &&
305             this.executeAsynchronously == other.isExecuteAsynchronously() &&
306             ((this.parameters==null && other.getParameters()==null) ||
307              (this.parameters!=null &&
308               java.util.Arrays.equals(this.parameters, other.getParameters()))) &&
309             ((this.conditions==null && other.getConditions()==null) ||
310              (this.conditions!=null &&
311               java.util.Arrays.equals(this.conditions, other.getConditions()))) &&
312             ((this.compensatingAction==null && other.getCompensatingAction()==null) ||
313              (this.compensatingAction!=null &&
314               this.compensatingAction.equals(other.getCompensatingAction()))) &&
315             ((this.actions==null && other.getActions()==null) ||
316              (this.actions!=null &&
317               java.util.Arrays.equals(this.actions, other.getActions()))) &&
318             ((this.reference==null && other.getReference()==null) ||
319              (this.reference!=null &&
320               this.reference.equals(other.getReference())));
321         __equalsCalc = null;
322         return _equals;
323     }
324
325     private boolean __hashCodeCalc = false;
326     public synchronized int hashCode() {
327         if (__hashCodeCalc) {
328             return 0;
329         }
330         __hashCodeCalc = true;
331         int _hashCode = 1;
332         if (getId() != null) {
333             _hashCode += getId().hashCode();
334         }
335         if (getActionName() != null) {
336             _hashCode += getActionName().hashCode();
337         }
338         if (getTitle() != null) {
339             _hashCode += getTitle().hashCode();
340         }
341         if (getDescription() != null) {
342             _hashCode += getDescription().hashCode();
343         }
344         _hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode();
345         if (getParameters() != null) {
346             for (int i=0;
347                  i<java.lang.reflect.Array.getLength(getParameters());
348                  i++) {
349                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getParameters(), i);
350                 if (obj != null &&
351                     !obj.getClass().isArray()) {
352                     _hashCode += obj.hashCode();
353                 }
354             }
355         }
356         if (getConditions() != null) {
357             for (int i=0;
358                  i<java.lang.reflect.Array.getLength(getConditions());
359                  i++) {
360                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getConditions(), i);
361                 if (obj != null &&
362                     !obj.getClass().isArray()) {
363                     _hashCode += obj.hashCode();
364                 }
365             }
366         }
367         if (getCompensatingAction() != null) {
368             _hashCode += getCompensatingAction().hashCode();
369         }
370         if (getActions() != null) {
371             for (int i=0;
372                  i<java.lang.reflect.Array.getLength(getActions());
373                  i++) {
374                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getActions(), i);
375                 if (obj != null &&
376                     !obj.getClass().isArray()) {
377                     _hashCode += obj.hashCode();
378                 }
379             }
380         }
381         if (getReference() != null) {
382             _hashCode += getReference().hashCode();
383         }
384         __hashCodeCalc = false;
385         return _hashCode;
386     }
387
388     // Type metadata
389
private static org.apache.axis.description.TypeDesc typeDesc =
390         new org.apache.axis.description.TypeDesc(Action.class, true);
391
392     static {
393         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "Action"));
394         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
395         elemField.setFieldName("id");
396         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "id"));
397         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
398         elemField.setNillable(true);
399         typeDesc.addFieldDesc(elemField);
400         elemField = new org.apache.axis.description.ElementDesc();
401         elemField.setFieldName("actionName");
402         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "actionName"));
403         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
404         elemField.setNillable(false);
405         typeDesc.addFieldDesc(elemField);
406         elemField = new org.apache.axis.description.ElementDesc();
407         elemField.setFieldName("title");
408         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "title"));
409         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
410         elemField.setNillable(true);
411         typeDesc.addFieldDesc(elemField);
412         elemField = new org.apache.axis.description.ElementDesc();
413         elemField.setFieldName("description");
414         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "description"));
415         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
416         elemField.setNillable(true);
417         typeDesc.addFieldDesc(elemField);
418         elemField = new org.apache.axis.description.ElementDesc();
419         elemField.setFieldName("executeAsynchronously");
420         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "executeAsynchronously"));
421         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
422         elemField.setNillable(false);
423         typeDesc.addFieldDesc(elemField);
424         elemField = new org.apache.axis.description.ElementDesc();
425         elemField.setFieldName("parameters");
426         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
427         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
428         elemField.setMinOccurs(0);
429         elemField.setNillable(true);
430         elemField.setMaxOccursUnbounded(true);
431         typeDesc.addFieldDesc(elemField);
432         elemField = new org.apache.axis.description.ElementDesc();
433         elemField.setFieldName("conditions");
434         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "conditions"));
435         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
436         elemField.setMinOccurs(0);
437         elemField.setNillable(true);
438         elemField.setMaxOccursUnbounded(true);
439         typeDesc.addFieldDesc(elemField);
440         elemField = new org.apache.axis.description.ElementDesc();
441         elemField.setFieldName("compensatingAction");
442         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "compensatingAction"));
443         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "Action"));
444         elemField.setNillable(true);
445         typeDesc.addFieldDesc(elemField);
446         elemField = new org.apache.axis.description.ElementDesc();
447         elemField.setFieldName("actions");
448         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "actions"));
449         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "Action"));
450         elemField.setMinOccurs(0);
451         elemField.setNillable(true);
452         elemField.setMaxOccursUnbounded(true);
453         typeDesc.addFieldDesc(elemField);
454         elemField = new org.apache.axis.description.ElementDesc();
455         elemField.setFieldName("reference");
456         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "reference"));
457         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
458         elemField.setNillable(true);
459         typeDesc.addFieldDesc(elemField);
460     }
461
462     /**
463      * Return type metadata object
464      */

465     public static org.apache.axis.description.TypeDesc getTypeDesc() {
466         return typeDesc;
467     }
468
469     /**
470      * Get Custom Serializer
471      */

472     public static org.apache.axis.encoding.Serializer getSerializer(
473            java.lang.String JavaDoc mechType,
474            java.lang.Class JavaDoc _javaType,
475            javax.xml.namespace.QName JavaDoc _xmlType) {
476         return
477           new org.apache.axis.encoding.ser.BeanSerializer(
478             _javaType, _xmlType, typeDesc);
479     }
480
481     /**
482      * Get Custom Deserializer
483      */

484     public static org.apache.axis.encoding.Deserializer getDeserializer(
485            java.lang.String JavaDoc mechType,
486            java.lang.Class JavaDoc _javaType,
487            javax.xml.namespace.QName JavaDoc _xmlType) {
488         return
489           new org.apache.axis.encoding.ser.BeanDeserializer(
490             _javaType, _xmlType, typeDesc);
491     }
492
493 }
494
Popular Tags