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