Rev 20640 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** ScheduledDeliveryResponse.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 ScheduledDeliveryResponse implements java.io.Serializable {private com.aramex.stub.Transaction transaction;private com.aramex.stub.Notification[] notifications;private java.lang.Boolean hasErrors;private java.lang.Integer id;public ScheduledDeliveryResponse() {}public ScheduledDeliveryResponse(com.aramex.stub.Transaction transaction,com.aramex.stub.Notification[] notifications,java.lang.Boolean hasErrors,java.lang.Integer id) {this.transaction = transaction;this.notifications = notifications;this.hasErrors = hasErrors;this.id = id;}/*** Gets the transaction value for this ScheduledDeliveryResponse.** @return transaction*/public com.aramex.stub.Transaction getTransaction() {return transaction;}/*** Sets the transaction value for this ScheduledDeliveryResponse.** @param transaction*/public void setTransaction(com.aramex.stub.Transaction transaction) {this.transaction = transaction;}/*** Gets the notifications value for this ScheduledDeliveryResponse.** @return notifications*/public com.aramex.stub.Notification[] getNotifications() {return notifications;}/*** Sets the notifications value for this ScheduledDeliveryResponse.** @param notifications*/public void setNotifications(com.aramex.stub.Notification[] notifications) {this.notifications = notifications;}/*** Gets the hasErrors value for this ScheduledDeliveryResponse.** @return hasErrors*/public java.lang.Boolean getHasErrors() {return hasErrors;}/*** Sets the hasErrors value for this ScheduledDeliveryResponse.** @param hasErrors*/public void setHasErrors(java.lang.Boolean hasErrors) {this.hasErrors = hasErrors;}/*** Gets the id value for this ScheduledDeliveryResponse.** @return id*/public java.lang.Integer getId() {return id;}/*** Sets the id value for this ScheduledDeliveryResponse.** @param id*/public void setId(java.lang.Integer id) {this.id = id;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ScheduledDeliveryResponse)) return false;ScheduledDeliveryResponse other = (ScheduledDeliveryResponse) 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.id==null && other.getId()==null) ||(this.id!=null &&this.id.equals(other.getId())));__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 (getId() != null) {_hashCode += getId().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ScheduledDeliveryResponse.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ScheduledDeliveryResponse"));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("id");elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Id"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));elemField.setMinOccurs(0);elemField.setNillable(false);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);}}