001: /**
002: * WorkflowState.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package XflowService;
007:
008: public class WorkflowState implements java.io.Serializable {
009: private java.util.Vector activeProcesses;
010: private java.lang.String initiator;
011: private boolean isActive;
012: private java.lang.String state;
013: private java.util.Calendar timeEnded;
014: private java.util.Calendar timeStarted;
015: private java.util.HashMap variables;
016: private XflowService.WorkflowId workflowId;
017: private java.lang.String workflowName;
018: private int workflowVersion;
019: private int version;
020:
021: public WorkflowState() {
022: }
023:
024: public java.util.Vector getActiveProcesses() {
025: return activeProcesses;
026: }
027:
028: public void setActiveProcesses(java.util.Vector activeProcesses) {
029: this .activeProcesses = activeProcesses;
030: }
031:
032: public java.lang.String getInitiator() {
033: return initiator;
034: }
035:
036: public void setInitiator(java.lang.String initiator) {
037: this .initiator = initiator;
038: }
039:
040: public boolean isIsActive() {
041: return isActive;
042: }
043:
044: public void setIsActive(boolean isActive) {
045: this .isActive = isActive;
046: }
047:
048: public java.lang.String getState() {
049: return state;
050: }
051:
052: public void setState(java.lang.String state) {
053: this .state = state;
054: }
055:
056: public java.util.Calendar getTimeEnded() {
057: return timeEnded;
058: }
059:
060: public void setTimeEnded(java.util.Calendar timeEnded) {
061: this .timeEnded = timeEnded;
062: }
063:
064: public java.util.Calendar getTimeStarted() {
065: return timeStarted;
066: }
067:
068: public void setTimeStarted(java.util.Calendar timeStarted) {
069: this .timeStarted = timeStarted;
070: }
071:
072: public java.util.HashMap getVariables() {
073: return variables;
074: }
075:
076: public void setVariables(java.util.HashMap variables) {
077: this .variables = variables;
078: }
079:
080: public XflowService.WorkflowId getWorkflowId() {
081: return workflowId;
082: }
083:
084: public void setWorkflowId(XflowService.WorkflowId workflowId) {
085: this .workflowId = workflowId;
086: }
087:
088: public java.lang.String getWorkflowName() {
089: return workflowName;
090: }
091:
092: public void setWorkflowName(java.lang.String workflowName) {
093: this .workflowName = workflowName;
094: }
095:
096: public int getWorkflowVersion() {
097: return workflowVersion;
098: }
099:
100: public void setWorkflowVersion(int workflowVersion) {
101: this .workflowVersion = workflowVersion;
102: }
103:
104: public int getVersion() {
105: return version;
106: }
107:
108: public void setVersion(int version) {
109: this .version = version;
110: }
111:
112: private java.lang.Object __equalsCalc = null;
113:
114: public synchronized boolean equals(java.lang.Object obj) {
115: if (!(obj instanceof WorkflowState))
116: return false;
117: WorkflowState other = (WorkflowState) obj;
118: if (obj == null)
119: return false;
120: if (this == obj)
121: return true;
122: if (__equalsCalc != null) {
123: return (__equalsCalc == obj);
124: }
125: __equalsCalc = obj;
126: boolean _equals;
127: _equals = true
128: && ((activeProcesses == null && other
129: .getActiveProcesses() == null) || (activeProcesses != null && activeProcesses
130: .equals(other.getActiveProcesses())))
131: && ((initiator == null && other.getInitiator() == null) || (initiator != null && initiator
132: .equals(other.getInitiator())))
133: && isActive == other.isIsActive()
134: && ((state == null && other.getState() == null) || (state != null && state
135: .equals(other.getState())))
136: && ((timeEnded == null && other.getTimeEnded() == null) || (timeEnded != null && timeEnded
137: .equals(other.getTimeEnded())))
138: && ((timeStarted == null && other.getTimeStarted() == null) || (timeStarted != null && timeStarted
139: .equals(other.getTimeStarted())))
140: && ((variables == null && other.getVariables() == null) || (variables != null && variables
141: .equals(other.getVariables())))
142: && ((workflowId == null && other.getWorkflowId() == null) || (workflowId != null && workflowId
143: .equals(other.getWorkflowId())))
144: && ((workflowName == null && other.getWorkflowName() == null) || (workflowName != null && workflowName
145: .equals(other.getWorkflowName())))
146: && workflowVersion == other.getWorkflowVersion()
147: && version == other.getVersion();
148: __equalsCalc = null;
149: return _equals;
150: }
151:
152: private boolean __hashCodeCalc = false;
153:
154: public synchronized int hashCode() {
155: if (__hashCodeCalc) {
156: return 0;
157: }
158: __hashCodeCalc = true;
159: int _hashCode = 1;
160: if (getActiveProcesses() != null) {
161: _hashCode += getActiveProcesses().hashCode();
162: }
163: if (getInitiator() != null) {
164: _hashCode += getInitiator().hashCode();
165: }
166: _hashCode += new Boolean(isIsActive()).hashCode();
167: if (getState() != null) {
168: _hashCode += getState().hashCode();
169: }
170: if (getTimeEnded() != null) {
171: _hashCode += getTimeEnded().hashCode();
172: }
173: if (getTimeStarted() != null) {
174: _hashCode += getTimeStarted().hashCode();
175: }
176: if (getVariables() != null) {
177: _hashCode += getVariables().hashCode();
178: }
179: if (getWorkflowId() != null) {
180: _hashCode += getWorkflowId().hashCode();
181: }
182: if (getWorkflowName() != null) {
183: _hashCode += getWorkflowName().hashCode();
184: }
185: _hashCode += getWorkflowVersion();
186: _hashCode += getVersion();
187: __hashCodeCalc = false;
188: return _hashCode;
189: }
190:
191: // Type metadata
192: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
193: WorkflowState.class);
194:
195: static {
196: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
197: field.setFieldName("activeProcesses");
198: field.setXmlName(new javax.xml.namespace.QName("",
199: "activeProcesses"));
200: field.setXmlType(new javax.xml.namespace.QName(
201: "http://xml.apache.org/xml-soap", "Vector"));
202: typeDesc.addFieldDesc(field);
203: field = new org.apache.axis.description.ElementDesc();
204: field.setFieldName("initiator");
205: field
206: .setXmlName(new javax.xml.namespace.QName("",
207: "initiator"));
208: field.setXmlType(new javax.xml.namespace.QName(
209: "http://www.w3.org/2001/XMLSchema", "string"));
210: typeDesc.addFieldDesc(field);
211: field = new org.apache.axis.description.ElementDesc();
212: field.setFieldName("isActive");
213: field.setXmlName(new javax.xml.namespace.QName("", "isActive"));
214: field.setXmlType(new javax.xml.namespace.QName(
215: "http://www.w3.org/2001/XMLSchema", "boolean"));
216: typeDesc.addFieldDesc(field);
217: field = new org.apache.axis.description.ElementDesc();
218: field.setFieldName("state");
219: field.setXmlName(new javax.xml.namespace.QName("", "state"));
220: field.setXmlType(new javax.xml.namespace.QName(
221: "http://www.w3.org/2001/XMLSchema", "string"));
222: typeDesc.addFieldDesc(field);
223: field = new org.apache.axis.description.ElementDesc();
224: field.setFieldName("timeEnded");
225: field
226: .setXmlName(new javax.xml.namespace.QName("",
227: "timeEnded"));
228: field.setXmlType(new javax.xml.namespace.QName(
229: "http://www.w3.org/2001/XMLSchema", "dateTime"));
230: typeDesc.addFieldDesc(field);
231: field = new org.apache.axis.description.ElementDesc();
232: field.setFieldName("timeStarted");
233: field.setXmlName(new javax.xml.namespace.QName("",
234: "timeStarted"));
235: field.setXmlType(new javax.xml.namespace.QName(
236: "http://www.w3.org/2001/XMLSchema", "dateTime"));
237: typeDesc.addFieldDesc(field);
238: field = new org.apache.axis.description.ElementDesc();
239: field.setFieldName("variables");
240: field
241: .setXmlName(new javax.xml.namespace.QName("",
242: "variables"));
243: field.setXmlType(new javax.xml.namespace.QName(
244: "http://xml.apache.org/xml-soap", "Map"));
245: typeDesc.addFieldDesc(field);
246: field = new org.apache.axis.description.ElementDesc();
247: field.setFieldName("workflowId");
248: field
249: .setXmlName(new javax.xml.namespace.QName("",
250: "workflowId"));
251: field.setXmlType(new javax.xml.namespace.QName(
252: "urn:XflowService", "WorkflowId"));
253: typeDesc.addFieldDesc(field);
254: field = new org.apache.axis.description.ElementDesc();
255: field.setFieldName("workflowName");
256: field.setXmlName(new javax.xml.namespace.QName("",
257: "workflowName"));
258: field.setXmlType(new javax.xml.namespace.QName(
259: "http://www.w3.org/2001/XMLSchema", "string"));
260: typeDesc.addFieldDesc(field);
261: field = new org.apache.axis.description.ElementDesc();
262: field.setFieldName("workflowVersion");
263: field.setXmlName(new javax.xml.namespace.QName("",
264: "workflowVersion"));
265: field.setXmlType(new javax.xml.namespace.QName(
266: "http://www.w3.org/2001/XMLSchema", "int"));
267: typeDesc.addFieldDesc(field);
268: field = new org.apache.axis.description.ElementDesc();
269: field.setFieldName("version");
270: field.setXmlName(new javax.xml.namespace.QName("", "version"));
271: field.setXmlType(new javax.xml.namespace.QName(
272: "http://www.w3.org/2001/XMLSchema", "int"));
273: typeDesc.addFieldDesc(field);
274: };
275:
276: /**
277: * Return type metadata object
278: */
279: public static org.apache.axis.description.TypeDesc getTypeDesc() {
280: return typeDesc;
281: }
282:
283: /**
284: * Get Custom Serializer
285: */
286: public static org.apache.axis.encoding.Serializer getSerializer(
287: java.lang.String mechType, java.lang.Class _javaType,
288: javax.xml.namespace.QName _xmlType) {
289: return new org.apache.axis.encoding.ser.BeanSerializer(
290: _javaType, _xmlType, typeDesc);
291: }
292:
293: /**
294: * Get Custom Deserializer
295: */
296: public static org.apache.axis.encoding.Deserializer getDeserializer(
297: java.lang.String mechType, java.lang.Class _javaType,
298: javax.xml.namespace.QName _xmlType) {
299: return new org.apache.axis.encoding.ser.BeanDeserializer(
300: _javaType, _xmlType, typeDesc);
301: }
302:
303: }
|