Blame | Last modification | View Log | RSS feed
/*** ExistingShipment.java** This file was auto-generated from WSDL* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.*/package com.aramex.stub;public class ExistingShipment implements java.io.Serializable {private java.lang.String number;private java.lang.String originEntity;private java.lang.String productGroup;public ExistingShipment() {}public ExistingShipment(java.lang.String number,java.lang.String originEntity,java.lang.String productGroup) {this.number = number;this.originEntity = originEntity;this.productGroup = productGroup;}/*** Gets the number value for this ExistingShipment.** @return number*/public java.lang.String getNumber() {return number;}/*** Sets the number value for this ExistingShipment.** @param number*/public void setNumber(java.lang.String number) {this.number = number;}/*** Gets the originEntity value for this ExistingShipment.** @return originEntity*/public java.lang.String getOriginEntity() {return originEntity;}/*** Sets the originEntity value for this ExistingShipment.** @param originEntity*/public void setOriginEntity(java.lang.String originEntity) {this.originEntity = originEntity;}/*** Gets the productGroup value for this ExistingShipment.** @return productGroup*/public java.lang.String getProductGroup() {return productGroup;}/*** Sets the productGroup value for this ExistingShipment.** @param productGroup*/public void setProductGroup(java.lang.String productGroup) {this.productGroup = productGroup;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ExistingShipment)) return false;ExistingShipment other = (ExistingShipment) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.number==null && other.getNumber()==null) ||(this.number!=null &&this.number.equals(other.getNumber()))) &&((this.originEntity==null && other.getOriginEntity()==null) ||(this.originEntity!=null &&this.originEntity.equals(other.getOriginEntity()))) &&((this.productGroup==null && other.getProductGroup()==null) ||(this.productGroup!=null &&this.productGroup.equals(other.getProductGroup())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getNumber() != null) {_hashCode += getNumber().hashCode();}if (getOriginEntity() != null) {_hashCode += getOriginEntity().hashCode();}if (getProductGroup() != null) {_hashCode += getProductGroup().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ExistingShipment.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ExistingShipment"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("number");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Number"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setNillable(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("originEntity");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "OriginEntity"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setNillable(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("productGroup");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProductGroup"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setNillable(true);typeDesc.addFieldDesc(elemField);}/*** Return type metadata object*/public static org.apache.axis.description.TypeDesc getTypeDesc() {return typeDesc;}/*** Get Custom Serializer*/public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,java.lang.Class _javaType,javax.xml.namespace.QName _xmlType) {returnnew org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc);}/*** Get Custom Deserializer*/public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,java.lang.Class _javaType,javax.xml.namespace.QName _xmlType) {returnnew org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc);}}