Blame | Last modification | View Log | RSS feed
/*** ShipmentDryIceDetail.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.fedex.ship.stub;/*** Shipment-level totals of dry ice data across all packages.*/public class ShipmentDryIceDetail implements java.io.Serializable {/* Total number of packages in the shipment that contain dry ice. */private org.apache.axis.types.NonNegativeInteger packageCount;/* Total shipment dry ice weight for all packages. */private com.fedex.ship.stub.Weight totalWeight;public ShipmentDryIceDetail() {}public ShipmentDryIceDetail(org.apache.axis.types.NonNegativeInteger packageCount,com.fedex.ship.stub.Weight totalWeight) {this.packageCount = packageCount;this.totalWeight = totalWeight;}/*** Gets the packageCount value for this ShipmentDryIceDetail.** @return packageCount * Total number of packages in the shipment that contain dry ice.*/public org.apache.axis.types.NonNegativeInteger getPackageCount() {return packageCount;}/*** Sets the packageCount value for this ShipmentDryIceDetail.** @param packageCount * Total number of packages in the shipment that contain dry ice.*/public void setPackageCount(org.apache.axis.types.NonNegativeInteger packageCount) {this.packageCount = packageCount;}/*** Gets the totalWeight value for this ShipmentDryIceDetail.** @return totalWeight * Total shipment dry ice weight for all packages.*/public com.fedex.ship.stub.Weight getTotalWeight() {return totalWeight;}/*** Sets the totalWeight value for this ShipmentDryIceDetail.** @param totalWeight * Total shipment dry ice weight for all packages.*/public void setTotalWeight(com.fedex.ship.stub.Weight totalWeight) {this.totalWeight = totalWeight;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ShipmentDryIceDetail)) return false;ShipmentDryIceDetail other = (ShipmentDryIceDetail) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.packageCount==null && other.getPackageCount()==null) ||(this.packageCount!=null &&this.packageCount.equals(other.getPackageCount()))) &&((this.totalWeight==null && other.getTotalWeight()==null) ||(this.totalWeight!=null &&this.totalWeight.equals(other.getTotalWeight())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getPackageCount() != null) {_hashCode += getPackageCount().hashCode();}if (getTotalWeight() != null) {_hashCode += getTotalWeight().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ShipmentDryIceDetail.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentDryIceDetail"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("packageCount");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageCount"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("totalWeight");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalWeight"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));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);}}