001: /**
002: * WorkItemId.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package XflowService;
007:
008: public class WorkItemId implements java.io.Serializable {
009: private int id;
010: private int value;
011:
012: public WorkItemId() {
013: }
014:
015: public int getId() {
016: return id;
017: }
018:
019: public void setId(int id) {
020: this .id = id;
021: }
022:
023: public int getValue() {
024: return value;
025: }
026:
027: public void setValue(int value) {
028: this .value = value;
029: }
030:
031: private java.lang.Object __equalsCalc = null;
032:
033: public synchronized boolean equals(java.lang.Object obj) {
034: if (!(obj instanceof WorkItemId))
035: return false;
036: WorkItemId other = (WorkItemId) obj;
037: if (obj == null)
038: return false;
039: if (this == obj)
040: return true;
041: if (__equalsCalc != null) {
042: return (__equalsCalc == obj);
043: }
044: __equalsCalc = obj;
045: boolean _equals;
046: _equals = true && id == other.getId()
047: && value == other.getValue();
048: __equalsCalc = null;
049: return _equals;
050: }
051:
052: private boolean __hashCodeCalc = false;
053:
054: public synchronized int hashCode() {
055: if (__hashCodeCalc) {
056: return 0;
057: }
058: __hashCodeCalc = true;
059: int _hashCode = 1;
060: _hashCode += getId();
061: _hashCode += getValue();
062: __hashCodeCalc = false;
063: return _hashCode;
064: }
065:
066: // Type metadata
067: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
068: WorkItemId.class);
069:
070: static {
071: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
072: field.setFieldName("id");
073: field.setXmlName(new javax.xml.namespace.QName("", "id"));
074: field.setXmlType(new javax.xml.namespace.QName(
075: "http://www.w3.org/2001/XMLSchema", "int"));
076: typeDesc.addFieldDesc(field);
077: field = new org.apache.axis.description.ElementDesc();
078: field.setFieldName("value");
079: field.setXmlName(new javax.xml.namespace.QName("", "value"));
080: field.setXmlType(new javax.xml.namespace.QName(
081: "http://www.w3.org/2001/XMLSchema", "int"));
082: typeDesc.addFieldDesc(field);
083: };
084:
085: /**
086: * Return type metadata object
087: */
088: public static org.apache.axis.description.TypeDesc getTypeDesc() {
089: return typeDesc;
090: }
091:
092: /**
093: * Get Custom Serializer
094: */
095: public static org.apache.axis.encoding.Serializer getSerializer(
096: java.lang.String mechType, java.lang.Class _javaType,
097: javax.xml.namespace.QName _xmlType) {
098: return new org.apache.axis.encoding.ser.BeanSerializer(
099: _javaType, _xmlType, typeDesc);
100: }
101:
102: /**
103: * Get Custom Deserializer
104: */
105: public static org.apache.axis.encoding.Deserializer getDeserializer(
106: java.lang.String mechType, java.lang.Class _javaType,
107: javax.xml.namespace.QName _xmlType) {
108: return new org.apache.axis.encoding.ser.BeanDeserializer(
109: _javaType, _xmlType, typeDesc);
110: }
111:
112: }
|