Rev 22598 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** ShipmentCreationResponse.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;import java.util.Arrays;public class ShipmentCreationResponse implements java.io.Serializable {@Overridepublic String toString() {return "ShipmentCreationResponse [transaction=" + transaction + ", notifications="+ Arrays.toString(notifications) + ", hasErrors=" + hasErrors + ", shipments="+ Arrays.toString(shipments) + "]";}private com.aramex.stub.Transaction transaction;private com.aramex.stub.Notification[] notifications;private java.lang.Boolean hasErrors;private com.aramex.stub.ProcessedShipment[] shipments;public ShipmentCreationResponse() {}public ShipmentCreationResponse(com.aramex.stub.Transaction transaction,com.aramex.stub.Notification[] notifications,java.lang.Boolean hasErrors,com.aramex.stub.ProcessedShipment[] shipments) {this.transaction = transaction;this.notifications = notifications;this.hasErrors = hasErrors;this.shipments = shipments;}/*** Gets the transaction value for this ShipmentCreationResponse.** @return transaction*/public com.aramex.stub.Transaction getTransaction() {return transaction;}/*** Sets the transaction value for this ShipmentCreationResponse.** @param transaction*/public void setTransaction(com.aramex.stub.Transaction transaction) {this.transaction = transaction;}/*** Gets the notifications value for this ShipmentCreationResponse.** @return notifications*/public com.aramex.stub.Notification[] getNotifications() {return notifications;}/*** Sets the notifications value for this ShipmentCreationResponse.** @param notifications*/public void setNotifications(com.aramex.stub.Notification[] notifications) {this.notifications = notifications;}/*** Gets the hasErrors value for this ShipmentCreationResponse.** @return hasErrors*/public java.lang.Boolean getHasErrors() {return hasErrors;}/*** Sets the hasErrors value for this ShipmentCreationResponse.** @param hasErrors*/public void setHasErrors(java.lang.Boolean hasErrors) {this.hasErrors = hasErrors;}/*** Gets the shipments value for this ShipmentCreationResponse.** @return shipments*/public com.aramex.stub.ProcessedShipment[] getShipments() {return shipments;}/*** Sets the shipments value for this ShipmentCreationResponse.** @param shipments*/public void setShipments(com.aramex.stub.ProcessedShipment[] shipments) {this.shipments = shipments;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ShipmentCreationResponse)) return false;ShipmentCreationResponse other = (ShipmentCreationResponse) 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.shipments==null && other.getShipments()==null) ||(this.shipments!=null &&java.util.Arrays.equals(this.shipments, other.getShipments())));__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 (getShipments() != null) {for (int i=0;i<java.lang.reflect.Array.getLength(getShipments());i++) {java.lang.Object obj = java.lang.reflect.Array.get(getShipments(), i);if (obj != null &&!obj.getClass().isArray()) {_hashCode += obj.hashCode();}}}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ShipmentCreationResponse.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ShipmentCreationResponse"));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("shipments");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Shipments"));elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedShipment"));elemField.setMinOccurs(0);elemField.setNillable(true);elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedShipment"));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);}}