KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

67     public org.alfresco.repo.webservice.action.ActionItemDefinitionType getType() {
68         return type;
69     }
70
71
72     /**
73      * Sets the type value for this ActionItemDefinition.
74      *
75      * @param type
76      */

77     public void setType(org.alfresco.repo.webservice.action.ActionItemDefinitionType type) {
78         this.type = type;
79     }
80
81
82     /**
83      * Gets the title value for this ActionItemDefinition.
84      *
85      * @return title
86      */

87     public java.lang.String JavaDoc getTitle() {
88         return title;
89     }
90
91
92     /**
93      * Sets the title value for this ActionItemDefinition.
94      *
95      * @param title
96      */

97     public void setTitle(java.lang.String JavaDoc title) {
98         this.title = title;
99     }
100
101
102     /**
103      * Gets the description value for this ActionItemDefinition.
104      *
105      * @return description
106      */

107     public java.lang.String JavaDoc getDescription() {
108         return description;
109     }
110
111
112     /**
113      * Sets the description value for this ActionItemDefinition.
114      *
115      * @param description
116      */

117     public void setDescription(java.lang.String JavaDoc description) {
118         this.description = description;
119     }
120
121
122     /**
123      * Gets the adHocPropertiesAllowed value for this ActionItemDefinition.
124      *
125      * @return adHocPropertiesAllowed
126      */

127     public boolean isAdHocPropertiesAllowed() {
128         return adHocPropertiesAllowed;
129     }
130
131
132     /**
133      * Sets the adHocPropertiesAllowed value for this ActionItemDefinition.
134      *
135      * @param adHocPropertiesAllowed
136      */

137     public void setAdHocPropertiesAllowed(boolean adHocPropertiesAllowed) {
138         this.adHocPropertiesAllowed = adHocPropertiesAllowed;
139     }
140
141
142     /**
143      * Gets the parameterDefinition value for this ActionItemDefinition.
144      *
145      * @return parameterDefinition
146      */

147     public org.alfresco.repo.webservice.action.ParameterDefinition[] getParameterDefinition() {
148         return parameterDefinition;
149     }
150
151
152     /**
153      * Sets the parameterDefinition value for this ActionItemDefinition.
154      *
155      * @param parameterDefinition
156      */

157     public void setParameterDefinition(org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) {
158         this.parameterDefinition = parameterDefinition;
159     }
160
161     public org.alfresco.repo.webservice.action.ParameterDefinition getParameterDefinition(int i) {
162         return this.parameterDefinition[i];
163     }
164
165     public void setParameterDefinition(int i, org.alfresco.repo.webservice.action.ParameterDefinition _value) {
166         this.parameterDefinition[i] = _value;
167     }
168
169     private java.lang.Object JavaDoc __equalsCalc = null;
170     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
171         if (!(obj instanceof ActionItemDefinition)) return false;
172         ActionItemDefinition other = (ActionItemDefinition) obj;
173         if (obj == null) return false;
174         if (this == obj) return true;
175         if (__equalsCalc != null) {
176             return (__equalsCalc == obj);
177         }
178         __equalsCalc = obj;
179         boolean _equals;
180         _equals = true &&
181             ((this.name==null && other.getName()==null) ||
182              (this.name!=null &&
183               this.name.equals(other.getName()))) &&
184             ((this.type==null && other.getType()==null) ||
185              (this.type!=null &&
186               this.type.equals(other.getType()))) &&
187             ((this.title==null && other.getTitle()==null) ||
188              (this.title!=null &&
189               this.title.equals(other.getTitle()))) &&
190             ((this.description==null && other.getDescription()==null) ||
191              (this.description!=null &&
192               this.description.equals(other.getDescription()))) &&
193             this.adHocPropertiesAllowed == other.isAdHocPropertiesAllowed() &&
194             ((this.parameterDefinition==null && other.getParameterDefinition()==null) ||
195              (this.parameterDefinition!=null &&
196               java.util.Arrays.equals(this.parameterDefinition, other.getParameterDefinition())));
197         __equalsCalc = null;
198         return _equals;
199     }
200
201     private boolean __hashCodeCalc = false;
202     public synchronized int hashCode() {
203         if (__hashCodeCalc) {
204             return 0;
205         }
206         __hashCodeCalc = true;
207         int _hashCode = 1;
208         if (getName() != null) {
209             _hashCode += getName().hashCode();
210         }
211         if (getType() != null) {
212             _hashCode += getType().hashCode();
213         }
214         if (getTitle() != null) {
215             _hashCode += getTitle().hashCode();
216         }
217         if (getDescription() != null) {
218             _hashCode += getDescription().hashCode();
219         }
220         _hashCode += (isAdHocPropertiesAllowed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
221         if (getParameterDefinition() != null) {
222             for (int i=0;
223                  i<java.lang.reflect.Array.getLength(getParameterDefinition());
224                  i++) {
225                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getParameterDefinition(), i);
226                 if (obj != null &&
227                     !obj.getClass().isArray()) {
228                     _hashCode += obj.hashCode();
229                 }
230             }
231         }
232         __hashCodeCalc = false;
233         return _hashCode;
234     }
235
236     // Type metadata
237
private static org.apache.axis.description.TypeDesc typeDesc =
238         new org.apache.axis.description.TypeDesc(ActionItemDefinition.class, true);
239
240     static {
241         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ActionItemDefinition"));
242         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
243         elemField.setFieldName("name");
244         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "name"));
245         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
246         elemField.setNillable(false);
247         typeDesc.addFieldDesc(elemField);
248         elemField = new org.apache.axis.description.ElementDesc();
249         elemField.setFieldName("type");
250         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "type"));
251         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ActionItemDefinitionType"));
252         elemField.setNillable(false);
253         typeDesc.addFieldDesc(elemField);
254         elemField = new org.apache.axis.description.ElementDesc();
255         elemField.setFieldName("title");
256         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "title"));
257         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
258         elemField.setNillable(false);
259         typeDesc.addFieldDesc(elemField);
260         elemField = new org.apache.axis.description.ElementDesc();
261         elemField.setFieldName("description");
262         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "description"));
263         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
264         elemField.setNillable(true);
265         typeDesc.addFieldDesc(elemField);
266         elemField = new org.apache.axis.description.ElementDesc();
267         elemField.setFieldName("adHocPropertiesAllowed");
268         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "adHocPropertiesAllowed"));
269         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
270         elemField.setNillable(false);
271         typeDesc.addFieldDesc(elemField);
272         elemField = new org.apache.axis.description.ElementDesc();
273         elemField.setFieldName("parameterDefinition");
274         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "parameterDefinition"));
275         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
276         elemField.setMinOccurs(0);
277         elemField.setNillable(true);
278         elemField.setMaxOccursUnbounded(true);
279         typeDesc.addFieldDesc(elemField);
280     }
281
282     /**
283      * Return type metadata object
284      */

285     public static org.apache.axis.description.TypeDesc getTypeDesc() {
286         return typeDesc;
287     }
288
289     /**
290      * Get Custom Serializer
291      */

292     public static org.apache.axis.encoding.Serializer getSerializer(
293            java.lang.String JavaDoc mechType,
294            java.lang.Class JavaDoc _javaType,
295            javax.xml.namespace.QName JavaDoc _xmlType) {
296         return
297           new org.apache.axis.encoding.ser.BeanSerializer(
298             _javaType, _xmlType, typeDesc);
299     }
300
301     /**
302      * Get Custom Deserializer
303      */

304     public static org.apache.axis.encoding.Deserializer getDeserializer(
305            java.lang.String JavaDoc mechType,
306            java.lang.Class JavaDoc _javaType,
307            javax.xml.namespace.QName JavaDoc _xmlType) {
308         return
309           new org.apache.axis.encoding.ser.BeanDeserializer(
310             _javaType, _xmlType, typeDesc);
311     }
312
313 }
314
Popular Tags