Rev 20640 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** ReserveRangeResponse.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 ReserveRangeResponse implements java.io.Serializable {private com.aramex.stub.Transaction transaction;private com.aramex.stub.Notification[] notifications;private java.lang.Boolean hasErrors;private java.lang.String fromWaybill;private java.lang.String toWaybill;public ReserveRangeResponse() {}public ReserveRangeResponse(com.aramex.stub.Transaction transaction,com.aramex.stub.Notification[] notifications,java.lang.Boolean hasErrors,java.lang.String fromWaybill,java.lang.String toWaybill) {this.transaction = transaction;this.notifications = notifications;this.hasErrors = hasErrors;this.fromWaybill = fromWaybill;this.toWaybill = toWaybill;}/*** Gets the transaction value for this ReserveRangeResponse.** @return transaction*/public com.aramex.stub.Transaction getTransaction() {return transaction;}/*** Sets the transaction value for this ReserveRangeResponse.** @param transaction*/public void setTransaction(com.aramex.stub.Transaction transaction) {this.transaction = transaction;}/*** Gets the notifications value for this ReserveRangeResponse.** @return notifications*/public com.aramex.stub.Notification[] getNotifications() {return notifications;}/*** Sets the notifications value for this ReserveRangeResponse.** @param notifications*/public void setNotifications(com.aramex.stub.Notification[] notifications) {this.notifications = notifications;}/*** Gets the hasErrors value for this ReserveRangeResponse.** @return hasErrors*/public java.lang.Boolean getHasErrors() {return hasErrors;}/*** Sets the hasErrors value for this ReserveRangeResponse.** @param hasErrors*/public void setHasErrors(java.lang.Boolean hasErrors) {this.hasErrors = hasErrors;}/*** Gets the fromWaybill value for this ReserveRangeResponse.** @return fromWaybill*/public java.lang.String getFromWaybill() {return fromWaybill;}/*** Sets the fromWaybill value for this ReserveRangeResponse.** @param fromWaybill*/public void setFromWaybill(java.lang.String fromWaybill) {this.fromWaybill = fromWaybill;}/*** Gets the toWaybill value for this ReserveRangeResponse.** @return toWaybill*/public java.lang.String getToWaybill() {return toWaybill;}/*** Sets the toWaybill value for this ReserveRangeResponse.** @param toWaybill*/public void setToWaybill(java.lang.String toWaybill) {this.toWaybill = toWaybill;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ReserveRangeResponse)) return false;ReserveRangeResponse other = (ReserveRangeResponse) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.transaction==null && other.getTransaction()==null) ||(this.transaction!=null &&this.transaction.equals(other.getTransaction()))) &&((this.notifications==null && other.getNotifications()==null) ||(this.notifications!=null &&java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&((this.hasErrors==null && other.getHasErrors()==null) ||(this.hasErrors!=null &&this.hasErrors.equals(other.getHasErrors()))) &&((this.fromWaybill==null && other.getFromWaybill()==null) ||(this.fromWaybill!=null &&this.fromWaybill.equals(other.getFromWaybill()))) &&((this.toWaybill==null && other.getToWaybill()==null) ||(this.toWaybill!=null &&this.toWaybill.equals(other.getToWaybill())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getTransaction() != null) {_hashCode += getTransaction().hashCode();}if (getNotifications() != null) {for (int i=0;i<java.lang.reflect.Array.getLength(getNotifications());i++) {java.lang.Object obj = java.lang.reflect.Array.get(getNotifications(), i);if (obj != null &&!obj.getClass().isArray()) {_hashCode += obj.hashCode();}}}if (getHasErrors() != null) {_hashCode += getHasErrors().hashCode();}if (getFromWaybill() != null) {_hashCode += getFromWaybill().hashCode();}if (getToWaybill() != null) {_hashCode += getToWaybill().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ReserveRangeResponse.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ReserveRangeResponse"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("transaction");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));elemField.setMinOccurs(0);elemField.setNillable(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("notifications");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));elemField.setMinOccurs(0);elemField.setNillable(true);elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("hasErrors");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("fromWaybill");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "FromWaybill"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setMinOccurs(0);elemField.setNillable(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("toWaybill");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ToWaybill"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setMinOccurs(0);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);}}