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