1
7
8 package com.liferay.client.portlet.workflow.model;
9
10 public class WorkflowToken implements java.io.Serializable {
11 private java.lang.Object[] children;
12
13 private java.lang.String name;
14
15 private java.lang.Object[] tasks;
16
17 private long tokenId;
18
19 private java.lang.String type;
20
21 public WorkflowToken() {
22 }
23
24 public WorkflowToken(
25 java.lang.Object[] children,
26 java.lang.String name,
27 java.lang.Object[] tasks,
28 long tokenId,
29 java.lang.String type) {
30 this.children = children;
31 this.name = name;
32 this.tasks = tasks;
33 this.tokenId = tokenId;
34 this.type = type;
35 }
36
37
38
43 public java.lang.Object[] getChildren() {
44 return children;
45 }
46
47
48
53 public void setChildren(java.lang.Object[] children) {
54 this.children = children;
55 }
56
57
58
63 public java.lang.String getName() {
64 return name;
65 }
66
67
68
73 public void setName(java.lang.String name) {
74 this.name = name;
75 }
76
77
78
83 public java.lang.Object[] getTasks() {
84 return tasks;
85 }
86
87
88
93 public void setTasks(java.lang.Object[] tasks) {
94 this.tasks = tasks;
95 }
96
97
98
103 public long getTokenId() {
104 return tokenId;
105 }
106
107
108
113 public void setTokenId(long tokenId) {
114 this.tokenId = tokenId;
115 }
116
117
118
123 public java.lang.String getType() {
124 return type;
125 }
126
127
128
133 public void setType(java.lang.String type) {
134 this.type = type;
135 }
136
137 private java.lang.Object __equalsCalc = null;
138 public synchronized boolean equals(java.lang.Object obj) {
139 if (!(obj instanceof WorkflowToken)) return false;
140 WorkflowToken other = (WorkflowToken) obj;
141 if (obj == null) return false;
142 if (this == obj) return true;
143 if (__equalsCalc != null) {
144 return (__equalsCalc == obj);
145 }
146 __equalsCalc = obj;
147 boolean _equals;
148 _equals = true &&
149 ((this.children==null && other.getChildren()==null) ||
150 (this.children!=null &&
151 java.util.Arrays.equals(this.children, other.getChildren()))) &&
152 ((this.name==null && other.getName()==null) ||
153 (this.name!=null &&
154 this.name.equals(other.getName()))) &&
155 ((this.tasks==null && other.getTasks()==null) ||
156 (this.tasks!=null &&
157 java.util.Arrays.equals(this.tasks, other.getTasks()))) &&
158 this.tokenId == other.getTokenId() &&
159 ((this.type==null && other.getType()==null) ||
160 (this.type!=null &&
161 this.type.equals(other.getType())));
162 __equalsCalc = null;
163 return _equals;
164 }
165
166 private boolean __hashCodeCalc = false;
167 public synchronized int hashCode() {
168 if (__hashCodeCalc) {
169 return 0;
170 }
171 __hashCodeCalc = true;
172 int _hashCode = 1;
173 if (getChildren() != null) {
174 for (int i=0;
175 i<java.lang.reflect.Array.getLength(getChildren());
176 i++) {
177 java.lang.Object obj = java.lang.reflect.Array.get(getChildren(), i);
178 if (obj != null &&
179 !obj.getClass().isArray()) {
180 _hashCode += obj.hashCode();
181 }
182 }
183 }
184 if (getName() != null) {
185 _hashCode += getName().hashCode();
186 }
187 if (getTasks() != null) {
188 for (int i=0;
189 i<java.lang.reflect.Array.getLength(getTasks());
190 i++) {
191 java.lang.Object obj = java.lang.reflect.Array.get(getTasks(), i);
192 if (obj != null &&
193 !obj.getClass().isArray()) {
194 _hashCode += obj.hashCode();
195 }
196 }
197 }
198 _hashCode += new Long(getTokenId()).hashCode();
199 if (getType() != null) {
200 _hashCode += getType().hashCode();
201 }
202 __hashCodeCalc = false;
203 return _hashCode;
204 }
205
206 private static org.apache.axis.description.TypeDesc typeDesc =
208 new org.apache.axis.description.TypeDesc(WorkflowToken.class, true);
209
210 static {
211 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.workflow.portlet.liferay.com", "WorkflowToken"));
212 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
213 elemField.setFieldName("children");
214 elemField.setXmlName(new javax.xml.namespace.QName("", "children"));
215 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
216 elemField.setNillable(true);
217 typeDesc.addFieldDesc(elemField);
218 elemField = new org.apache.axis.description.ElementDesc();
219 elemField.setFieldName("name");
220 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
221 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
222 elemField.setNillable(true);
223 typeDesc.addFieldDesc(elemField);
224 elemField = new org.apache.axis.description.ElementDesc();
225 elemField.setFieldName("tasks");
226 elemField.setXmlName(new javax.xml.namespace.QName("", "tasks"));
227 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
228 elemField.setNillable(true);
229 typeDesc.addFieldDesc(elemField);
230 elemField = new org.apache.axis.description.ElementDesc();
231 elemField.setFieldName("tokenId");
232 elemField.setXmlName(new javax.xml.namespace.QName("", "tokenId"));
233 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
234 elemField.setNillable(false);
235 typeDesc.addFieldDesc(elemField);
236 elemField = new org.apache.axis.description.ElementDesc();
237 elemField.setFieldName("type");
238 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
239 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
240 elemField.setNillable(true);
241 typeDesc.addFieldDesc(elemField);
242 }
243
244
247 public static org.apache.axis.description.TypeDesc getTypeDesc() {
248 return typeDesc;
249 }
250
251
254 public static org.apache.axis.encoding.Serializer getSerializer(
255 java.lang.String mechType,
256 java.lang.Class _javaType,
257 javax.xml.namespace.QName _xmlType) {
258 return
259 new org.apache.axis.encoding.ser.BeanSerializer(
260 _javaType, _xmlType, typeDesc);
261 }
262
263
266 public static org.apache.axis.encoding.Deserializer getDeserializer(
267 java.lang.String mechType,
268 java.lang.Class _javaType,
269 javax.xml.namespace.QName _xmlType) {
270 return
271 new org.apache.axis.encoding.ser.BeanDeserializer(
272 _javaType, _xmlType, typeDesc);
273 }
274
275 }
276