001: /**
002: * ProcessState.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package XflowService;
007:
008: public class ProcessState implements java.io.Serializable {
009: private java.lang.String processName;
010: private java.util.Calendar timeStarted;
011: private XflowService.WorkItemId workItemId;
012: private XflowService.WorkflowId workflowId;
013:
014: public ProcessState() {
015: }
016:
017: public java.lang.String getProcessName() {
018: return processName;
019: }
020:
021: public void setProcessName(java.lang.String processName) {
022: this .processName = processName;
023: }
024:
025: public java.util.Calendar getTimeStarted() {
026: return timeStarted;
027: }
028:
029: public void setTimeStarted(java.util.Calendar timeStarted) {
030: this .timeStarted = timeStarted;
031: }
032:
033: public XflowService.WorkItemId getWorkItemId() {
034: return workItemId;
035: }
036:
037: public void setWorkItemId(XflowService.WorkItemId workItemId) {
038: this .workItemId = workItemId;
039: }
040:
041: public XflowService.WorkflowId getWorkflowId() {
042: return workflowId;
043: }
044:
045: public void setWorkflowId(XflowService.WorkflowId workflowId) {
046: this .workflowId = workflowId;
047: }
048:
049: private java.lang.Object __equalsCalc = null;
050:
051: public synchronized boolean equals(java.lang.Object obj) {
052: if (!(obj instanceof ProcessState))
053: return false;
054: ProcessState other = (ProcessState) obj;
055: if (obj == null)
056: return false;
057: if (this == obj)
058: return true;
059: if (__equalsCalc != null) {
060: return (__equalsCalc == obj);
061: }
062: __equalsCalc = obj;
063: boolean _equals;
064: _equals = true
065: && ((processName == null && other.getProcessName() == null) || (processName != null && processName
066: .equals(other.getProcessName())))
067: && ((timeStarted == null && other.getTimeStarted() == null) || (timeStarted != null && timeStarted
068: .equals(other.getTimeStarted())))
069: && ((workItemId == null && other.getWorkItemId() == null) || (workItemId != null && workItemId
070: .equals(other.getWorkItemId())))
071: && ((workflowId == null && other.getWorkflowId() == null) || (workflowId != null && workflowId
072: .equals(other.getWorkflowId())));
073: __equalsCalc = null;
074: return _equals;
075: }
076:
077: private boolean __hashCodeCalc = false;
078:
079: public synchronized int hashCode() {
080: if (__hashCodeCalc) {
081: return 0;
082: }
083: __hashCodeCalc = true;
084: int _hashCode = 1;
085: if (getProcessName() != null) {
086: _hashCode += getProcessName().hashCode();
087: }
088: if (getTimeStarted() != null) {
089: _hashCode += getTimeStarted().hashCode();
090: }
091: if (getWorkItemId() != null) {
092: _hashCode += getWorkItemId().hashCode();
093: }
094: if (getWorkflowId() != null) {
095: _hashCode += getWorkflowId().hashCode();
096: }
097: __hashCodeCalc = false;
098: return _hashCode;
099: }
100:
101: // Type metadata
102: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
103: ProcessState.class);
104:
105: static {
106: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
107: field.setFieldName("processName");
108: field.setXmlName(new javax.xml.namespace.QName("",
109: "processName"));
110: field.setXmlType(new javax.xml.namespace.QName(
111: "http://www.w3.org/2001/XMLSchema", "string"));
112: typeDesc.addFieldDesc(field);
113: field = new org.apache.axis.description.ElementDesc();
114: field.setFieldName("timeStarted");
115: field.setXmlName(new javax.xml.namespace.QName("",
116: "timeStarted"));
117: field.setXmlType(new javax.xml.namespace.QName(
118: "http://www.w3.org/2001/XMLSchema", "dateTime"));
119: typeDesc.addFieldDesc(field);
120: field = new org.apache.axis.description.ElementDesc();
121: field.setFieldName("workItemId");
122: field
123: .setXmlName(new javax.xml.namespace.QName("",
124: "workItemId"));
125: field.setXmlType(new javax.xml.namespace.QName(
126: "urn:XflowService", "WorkItemId"));
127: typeDesc.addFieldDesc(field);
128: field = new org.apache.axis.description.ElementDesc();
129: field.setFieldName("workflowId");
130: field
131: .setXmlName(new javax.xml.namespace.QName("",
132: "workflowId"));
133: field.setXmlType(new javax.xml.namespace.QName(
134: "urn:XflowService", "WorkflowId"));
135: typeDesc.addFieldDesc(field);
136: };
137:
138: /**
139: * Return type metadata object
140: */
141: public static org.apache.axis.description.TypeDesc getTypeDesc() {
142: return typeDesc;
143: }
144:
145: /**
146: * Get Custom Serializer
147: */
148: public static org.apache.axis.encoding.Serializer getSerializer(
149: java.lang.String mechType, java.lang.Class _javaType,
150: javax.xml.namespace.QName _xmlType) {
151: return new org.apache.axis.encoding.ser.BeanSerializer(
152: _javaType, _xmlType, typeDesc);
153: }
154:
155: /**
156: * Get Custom Deserializer
157: */
158: public static org.apache.axis.encoding.Deserializer getDeserializer(
159: java.lang.String mechType, java.lang.Class _javaType,
160: javax.xml.namespace.QName _xmlType) {
161: return new org.apache.axis.encoding.ser.BeanDeserializer(
162: _javaType, _xmlType, typeDesc);
163: }
164:
165: }
|