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