Blame | Last modification | View Log | RSS feed
/*** HazardousCommodityContent.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;/*** Documents the kind and quantity of an individual hazardous commodity* in a package.*/public class HazardousCommodityContent implements java.io.Serializable {/* Identifies and describes an individual hazardous commodity. */private com.fedex.ship.stub.HazardousCommodityDescription description;/* Specifies the amount of the commodity in alternate units. */private com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity;/* Customer-provided specifications for handling individual commodities. */private com.fedex.ship.stub.HazardousCommodityOptionDetail options;/* Specifies the details of any radio active materials within* the commodity. */private com.fedex.ship.stub.RadionuclideDetail radionuclideDetail;public HazardousCommodityContent() {}public HazardousCommodityContent(com.fedex.ship.stub.HazardousCommodityDescription description,com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity,com.fedex.ship.stub.HazardousCommodityOptionDetail options,com.fedex.ship.stub.RadionuclideDetail radionuclideDetail) {this.description = description;this.quantity = quantity;this.options = options;this.radionuclideDetail = radionuclideDetail;}/*** Gets the description value for this HazardousCommodityContent.** @return description * Identifies and describes an individual hazardous commodity.*/public com.fedex.ship.stub.HazardousCommodityDescription getDescription() {return description;}/*** Sets the description value for this HazardousCommodityContent.** @param description * Identifies and describes an individual hazardous commodity.*/public void setDescription(com.fedex.ship.stub.HazardousCommodityDescription description) {this.description = description;}/*** Gets the quantity value for this HazardousCommodityContent.** @return quantity * Specifies the amount of the commodity in alternate units.*/public com.fedex.ship.stub.HazardousCommodityQuantityDetail getQuantity() {return quantity;}/*** Sets the quantity value for this HazardousCommodityContent.** @param quantity * Specifies the amount of the commodity in alternate units.*/public void setQuantity(com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity) {this.quantity = quantity;}/*** Gets the options value for this HazardousCommodityContent.** @return options * Customer-provided specifications for handling individual commodities.*/public com.fedex.ship.stub.HazardousCommodityOptionDetail getOptions() {return options;}/*** Sets the options value for this HazardousCommodityContent.** @param options * Customer-provided specifications for handling individual commodities.*/public void setOptions(com.fedex.ship.stub.HazardousCommodityOptionDetail options) {this.options = options;}/*** Gets the radionuclideDetail value for this HazardousCommodityContent.** @return radionuclideDetail * Specifies the details of any radio active materials within* the commodity.*/public com.fedex.ship.stub.RadionuclideDetail getRadionuclideDetail() {return radionuclideDetail;}/*** Sets the radionuclideDetail value for this HazardousCommodityContent.** @param radionuclideDetail * Specifies the details of any radio active materials within* the commodity.*/public void setRadionuclideDetail(com.fedex.ship.stub.RadionuclideDetail radionuclideDetail) {this.radionuclideDetail = radionuclideDetail;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof HazardousCommodityContent)) return false;HazardousCommodityContent other = (HazardousCommodityContent) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.description==null && other.getDescription()==null) ||(this.description!=null &&this.description.equals(other.getDescription()))) &&((this.quantity==null && other.getQuantity()==null) ||(this.quantity!=null &&this.quantity.equals(other.getQuantity()))) &&((this.options==null && other.getOptions()==null) ||(this.options!=null &&this.options.equals(other.getOptions()))) &&((this.radionuclideDetail==null && other.getRadionuclideDetail()==null) ||(this.radionuclideDetail!=null &&this.radionuclideDetail.equals(other.getRadionuclideDetail())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getDescription() != null) {_hashCode += getDescription().hashCode();}if (getQuantity() != null) {_hashCode += getQuantity().hashCode();}if (getOptions() != null) {_hashCode += getOptions().hashCode();}if (getRadionuclideDetail() != null) {_hashCode += getRadionuclideDetail().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(HazardousCommodityContent.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityContent"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("description");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Description"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityDescription"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("quantity");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Quantity"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityQuantityDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("options");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Options"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityOptionDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("radionuclideDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadionuclideDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadionuclideDetail"));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);}}