1   /**
2    * WorkflowDefinition.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
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      /**
39       * Gets the definitionId value for this WorkflowDefinition.
40       * 
41       * @return definitionId
42       */
43      public long getDefinitionId() {
44          return definitionId;
45      }
46  
47  
48      /**
49       * Sets the definitionId value for this WorkflowDefinition.
50       * 
51       * @param definitionId
52       */
53      public void setDefinitionId(long definitionId) {
54          this.definitionId = definitionId;
55      }
56  
57  
58      /**
59       * Gets the name value for this WorkflowDefinition.
60       * 
61       * @return name
62       */
63      public java.lang.String getName() {
64          return name;
65      }
66  
67  
68      /**
69       * Sets the name value for this WorkflowDefinition.
70       * 
71       * @param name
72       */
73      public void setName(java.lang.String name) {
74          this.name = name;
75      }
76  
77  
78      /**
79       * Gets the type value for this WorkflowDefinition.
80       * 
81       * @return type
82       */
83      public java.lang.String getType() {
84          return type;
85      }
86  
87  
88      /**
89       * Sets the type value for this WorkflowDefinition.
90       * 
91       * @param type
92       */
93      public void setType(java.lang.String type) {
94          this.type = type;
95      }
96  
97  
98      /**
99       * Gets the version value for this WorkflowDefinition.
100      * 
101      * @return version
102      */
103     public double getVersion() {
104         return version;
105     }
106 
107 
108     /**
109      * Sets the version value for this WorkflowDefinition.
110      * 
111      * @param version
112      */
113     public void setVersion(double version) {
114         this.version = version;
115     }
116 
117 
118     /**
119      * Gets the xml value for this WorkflowDefinition.
120      * 
121      * @return xml
122      */
123     public java.lang.String getXml() {
124         return xml;
125     }
126 
127 
128     /**
129      * Sets the xml value for this WorkflowDefinition.
130      * 
131      * @param xml
132      */
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     // Type metadata
187     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     /**
225      * Return type metadata object
226      */
227     public static org.apache.axis.description.TypeDesc getTypeDesc() {
228         return typeDesc;
229     }
230 
231     /**
232      * Get Custom Serializer
233      */
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     /**
244      * Get Custom Deserializer
245      */
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