1
7
8 package com.liferay.client.portlet.workflow.model;
9
10 public class WorkflowDefinition implements java.io.Serializable {
11 private long definitionId;
12
13 private java.lang.String name;
14
15 private java.lang.String type;
16
17 private double version;
18
19 private java.lang.String xml;
20
21 public WorkflowDefinition() {
22 }
23
24 public WorkflowDefinition(
25 long definitionId,
26 java.lang.String name,
27 java.lang.String type,
28 double version,
29 java.lang.String xml) {
30 this.definitionId = definitionId;
31 this.name = name;
32 this.type = type;
33 this.version = version;
34 this.xml = xml;
35 }
36
37
38
43 public long getDefinitionId() {
44 return definitionId;
45 }
46
47
48
53 public void setDefinitionId(long definitionId) {
54 this.definitionId = definitionId;
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.String getType() {
84 return type;
85 }
86
87
88
93 public void setType(java.lang.String type) {
94 this.type = type;
95 }
96
97
98
103 public double getVersion() {
104 return version;
105 }
106
107
108
113 public void setVersion(double version) {
114 this.version = version;
115 }
116
117
118
123 public java.lang.String getXml() {
124 return xml;
125 }
126
127
128
133 public void setXml(java.lang.String xml) {
134 this.xml = xml;
135 }
136
137 private java.lang.Object __equalsCalc = null;
138 public synchronized boolean equals(java.lang.Object obj) {
139 if (!(obj instanceof WorkflowDefinition)) return false;
140 WorkflowDefinition other = (WorkflowDefinition) 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.definitionId == other.getDefinitionId() &&
150 ((this.name==null && other.getName()==null) ||
151 (this.name!=null &&
152 this.name.equals(other.getName()))) &&
153 ((this.type==null && other.getType()==null) ||
154 (this.type!=null &&
155 this.type.equals(other.getType()))) &&
156 this.version == other.getVersion() &&
157 ((this.xml==null && other.getXml()==null) ||
158 (this.xml!=null &&
159 this.xml.equals(other.getXml())));
160 __equalsCalc = null;
161 return _equals;
162 }
163
164 private boolean __hashCodeCalc = false;
165 public synchronized int hashCode() {
166 if (__hashCodeCalc) {
167 return 0;
168 }
169 __hashCodeCalc = true;
170 int _hashCode = 1;
171 _hashCode += new Long(getDefinitionId()).hashCode();
172 if (getName() != null) {
173 _hashCode += getName().hashCode();
174 }
175 if (getType() != null) {
176 _hashCode += getType().hashCode();
177 }
178 _hashCode += new Double(getVersion()).hashCode();
179 if (getXml() != null) {
180 _hashCode += getXml().hashCode();
181 }
182 __hashCodeCalc = false;
183 return _hashCode;
184 }
185
186 private static org.apache.axis.description.TypeDesc typeDesc =
188 new org.apache.axis.description.TypeDesc(WorkflowDefinition.class, true);
189
190 static {
191 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.workflow.portlet.liferay.com", "WorkflowDefinition"));
192 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
193 elemField.setFieldName("definitionId");
194 elemField.setXmlName(new javax.xml.namespace.QName("", "definitionId"));
195 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
196 elemField.setNillable(false);
197 typeDesc.addFieldDesc(elemField);
198 elemField = new org.apache.axis.description.ElementDesc();
199 elemField.setFieldName("name");
200 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
201 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
202 elemField.setNillable(true);
203 typeDesc.addFieldDesc(elemField);
204 elemField = new org.apache.axis.description.ElementDesc();
205 elemField.setFieldName("type");
206 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
207 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
208 elemField.setNillable(true);
209 typeDesc.addFieldDesc(elemField);
210 elemField = new org.apache.axis.description.ElementDesc();
211 elemField.setFieldName("version");
212 elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
213 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
214 elemField.setNillable(false);
215 typeDesc.addFieldDesc(elemField);
216 elemField = new org.apache.axis.description.ElementDesc();
217 elemField.setFieldName("xml");
218 elemField.setXmlName(new javax.xml.namespace.QName("", "xml"));
219 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
220 elemField.setNillable(true);
221 typeDesc.addFieldDesc(elemField);
222 }
223
224
227 public static org.apache.axis.description.TypeDesc getTypeDesc() {
228 return typeDesc;
229 }
230
231
234 public static org.apache.axis.encoding.Serializer getSerializer(
235 java.lang.String mechType,
236 java.lang.Class _javaType,
237 javax.xml.namespace.QName _xmlType) {
238 return
239 new org.apache.axis.encoding.ser.BeanSerializer(
240 _javaType, _xmlType, typeDesc);
241 }
242
243
246 public static org.apache.axis.encoding.Deserializer getDeserializer(
247 java.lang.String mechType,
248 java.lang.Class _javaType,
249 javax.xml.namespace.QName _xmlType) {
250 return
251 new org.apache.axis.encoding.ser.BeanDeserializer(
252 _javaType, _xmlType, typeDesc);
253 }
254
255 }
256