Blame | Last modification | View Log | RSS feed
/*** ShippingDocumentSpecification.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;/*** Contains all data required for additional (non-label) shipping* documents to be produced in conjunction with a specific shipment.*/public class ShippingDocumentSpecification implements java.io.Serializable {/* Indicates the types of shipping documents requested by the* shipper. */private com.fedex.ship.stub.RequestedShippingDocumentType[] shippingDocumentTypes;private com.fedex.ship.stub.CertificateOfOriginDetail certificateOfOrigin;private com.fedex.ship.stub.CommercialInvoiceDetail commercialInvoiceDetail;/* Specifies the production of each package-level custom document* (the same specification is used for all packages). */private com.fedex.ship.stub.CustomDocumentDetail[] customPackageDocumentDetail;/* Specifies the production of a shipment-level custom document. */private com.fedex.ship.stub.CustomDocumentDetail[] customShipmentDocumentDetail;/* This element is currently not supported and is for the future* use. (Details pertaining to the GAA.) */private com.fedex.ship.stub.GeneralAgencyAgreementDetail generalAgencyAgreementDetail;private com.fedex.ship.stub.NaftaCertificateOfOriginDetail naftaCertificateOfOriginDetail;/* Specifies the production of the OP-900 document for hazardous* materials packages. */private com.fedex.ship.stub.Op900Detail op900Detail;/* Specifies the production of the 1421c document for dangerous* goods shipment. */private com.fedex.ship.stub.DangerousGoodsShippersDeclarationDetail dangerousGoodsShippersDeclarationDetail;/* Specifies the production of the OP-900 document for hazardous* materials. */private com.fedex.ship.stub.FreightAddressLabelDetail freightAddressLabelDetail;/* Specifies the production of the return instructions document. */private com.fedex.ship.stub.ReturnInstructionsDetail returnInstructionsDetail;public ShippingDocumentSpecification() {}public ShippingDocumentSpecification(com.fedex.ship.stub.RequestedShippingDocumentType[] shippingDocumentTypes,com.fedex.ship.stub.CertificateOfOriginDetail certificateOfOrigin,com.fedex.ship.stub.CommercialInvoiceDetail commercialInvoiceDetail,com.fedex.ship.stub.CustomDocumentDetail[] customPackageDocumentDetail,com.fedex.ship.stub.CustomDocumentDetail[] customShipmentDocumentDetail,com.fedex.ship.stub.GeneralAgencyAgreementDetail generalAgencyAgreementDetail,com.fedex.ship.stub.NaftaCertificateOfOriginDetail naftaCertificateOfOriginDetail,com.fedex.ship.stub.Op900Detail op900Detail,com.fedex.ship.stub.DangerousGoodsShippersDeclarationDetail dangerousGoodsShippersDeclarationDetail,com.fedex.ship.stub.FreightAddressLabelDetail freightAddressLabelDetail,com.fedex.ship.stub.ReturnInstructionsDetail returnInstructionsDetail) {this.shippingDocumentTypes = shippingDocumentTypes;this.certificateOfOrigin = certificateOfOrigin;this.commercialInvoiceDetail = commercialInvoiceDetail;this.customPackageDocumentDetail = customPackageDocumentDetail;this.customShipmentDocumentDetail = customShipmentDocumentDetail;this.generalAgencyAgreementDetail = generalAgencyAgreementDetail;this.naftaCertificateOfOriginDetail = naftaCertificateOfOriginDetail;this.op900Detail = op900Detail;this.dangerousGoodsShippersDeclarationDetail = dangerousGoodsShippersDeclarationDetail;this.freightAddressLabelDetail = freightAddressLabelDetail;this.returnInstructionsDetail = returnInstructionsDetail;}/*** Gets the shippingDocumentTypes value for this ShippingDocumentSpecification.** @return shippingDocumentTypes * Indicates the types of shipping documents requested by the* shipper.*/public com.fedex.ship.stub.RequestedShippingDocumentType[] getShippingDocumentTypes() {return shippingDocumentTypes;}/*** Sets the shippingDocumentTypes value for this ShippingDocumentSpecification.** @param shippingDocumentTypes * Indicates the types of shipping documents requested by the* shipper.*/public void setShippingDocumentTypes(com.fedex.ship.stub.RequestedShippingDocumentType[] shippingDocumentTypes) {this.shippingDocumentTypes = shippingDocumentTypes;}public com.fedex.ship.stub.RequestedShippingDocumentType getShippingDocumentTypes(int i) {return this.shippingDocumentTypes[i];}public void setShippingDocumentTypes(int i, com.fedex.ship.stub.RequestedShippingDocumentType _value) {this.shippingDocumentTypes[i] = _value;}/*** Gets the certificateOfOrigin value for this ShippingDocumentSpecification.** @return certificateOfOrigin*/public com.fedex.ship.stub.CertificateOfOriginDetail getCertificateOfOrigin() {return certificateOfOrigin;}/*** Sets the certificateOfOrigin value for this ShippingDocumentSpecification.** @param certificateOfOrigin*/public void setCertificateOfOrigin(com.fedex.ship.stub.CertificateOfOriginDetail certificateOfOrigin) {this.certificateOfOrigin = certificateOfOrigin;}/*** Gets the commercialInvoiceDetail value for this ShippingDocumentSpecification.** @return commercialInvoiceDetail*/public com.fedex.ship.stub.CommercialInvoiceDetail getCommercialInvoiceDetail() {return commercialInvoiceDetail;}/*** Sets the commercialInvoiceDetail value for this ShippingDocumentSpecification.** @param commercialInvoiceDetail*/public void setCommercialInvoiceDetail(com.fedex.ship.stub.CommercialInvoiceDetail commercialInvoiceDetail) {this.commercialInvoiceDetail = commercialInvoiceDetail;}/*** Gets the customPackageDocumentDetail value for this ShippingDocumentSpecification.** @return customPackageDocumentDetail * Specifies the production of each package-level custom document* (the same specification is used for all packages).*/public com.fedex.ship.stub.CustomDocumentDetail[] getCustomPackageDocumentDetail() {return customPackageDocumentDetail;}/*** Sets the customPackageDocumentDetail value for this ShippingDocumentSpecification.** @param customPackageDocumentDetail * Specifies the production of each package-level custom document* (the same specification is used for all packages).*/public void setCustomPackageDocumentDetail(com.fedex.ship.stub.CustomDocumentDetail[] customPackageDocumentDetail) {this.customPackageDocumentDetail = customPackageDocumentDetail;}public com.fedex.ship.stub.CustomDocumentDetail getCustomPackageDocumentDetail(int i) {return this.customPackageDocumentDetail[i];}public void setCustomPackageDocumentDetail(int i, com.fedex.ship.stub.CustomDocumentDetail _value) {this.customPackageDocumentDetail[i] = _value;}/*** Gets the customShipmentDocumentDetail value for this ShippingDocumentSpecification.** @return customShipmentDocumentDetail * Specifies the production of a shipment-level custom document.*/public com.fedex.ship.stub.CustomDocumentDetail[] getCustomShipmentDocumentDetail() {return customShipmentDocumentDetail;}/*** Sets the customShipmentDocumentDetail value for this ShippingDocumentSpecification.** @param customShipmentDocumentDetail * Specifies the production of a shipment-level custom document.*/public void setCustomShipmentDocumentDetail(com.fedex.ship.stub.CustomDocumentDetail[] customShipmentDocumentDetail) {this.customShipmentDocumentDetail = customShipmentDocumentDetail;}public com.fedex.ship.stub.CustomDocumentDetail getCustomShipmentDocumentDetail(int i) {return this.customShipmentDocumentDetail[i];}public void setCustomShipmentDocumentDetail(int i, com.fedex.ship.stub.CustomDocumentDetail _value) {this.customShipmentDocumentDetail[i] = _value;}/*** Gets the generalAgencyAgreementDetail value for this ShippingDocumentSpecification.** @return generalAgencyAgreementDetail * This element is currently not supported and is for the future* use. (Details pertaining to the GAA.)*/public com.fedex.ship.stub.GeneralAgencyAgreementDetail getGeneralAgencyAgreementDetail() {return generalAgencyAgreementDetail;}/*** Sets the generalAgencyAgreementDetail value for this ShippingDocumentSpecification.** @param generalAgencyAgreementDetail * This element is currently not supported and is for the future* use. (Details pertaining to the GAA.)*/public void setGeneralAgencyAgreementDetail(com.fedex.ship.stub.GeneralAgencyAgreementDetail generalAgencyAgreementDetail) {this.generalAgencyAgreementDetail = generalAgencyAgreementDetail;}/*** Gets the naftaCertificateOfOriginDetail value for this ShippingDocumentSpecification.** @return naftaCertificateOfOriginDetail*/public com.fedex.ship.stub.NaftaCertificateOfOriginDetail getNaftaCertificateOfOriginDetail() {return naftaCertificateOfOriginDetail;}/*** Sets the naftaCertificateOfOriginDetail value for this ShippingDocumentSpecification.** @param naftaCertificateOfOriginDetail*/public void setNaftaCertificateOfOriginDetail(com.fedex.ship.stub.NaftaCertificateOfOriginDetail naftaCertificateOfOriginDetail) {this.naftaCertificateOfOriginDetail = naftaCertificateOfOriginDetail;}/*** Gets the op900Detail value for this ShippingDocumentSpecification.** @return op900Detail * Specifies the production of the OP-900 document for hazardous* materials packages.*/public com.fedex.ship.stub.Op900Detail getOp900Detail() {return op900Detail;}/*** Sets the op900Detail value for this ShippingDocumentSpecification.** @param op900Detail * Specifies the production of the OP-900 document for hazardous* materials packages.*/public void setOp900Detail(com.fedex.ship.stub.Op900Detail op900Detail) {this.op900Detail = op900Detail;}/*** Gets the dangerousGoodsShippersDeclarationDetail value for this ShippingDocumentSpecification.** @return dangerousGoodsShippersDeclarationDetail * Specifies the production of the 1421c document for dangerous* goods shipment.*/public com.fedex.ship.stub.DangerousGoodsShippersDeclarationDetail getDangerousGoodsShippersDeclarationDetail() {return dangerousGoodsShippersDeclarationDetail;}/*** Sets the dangerousGoodsShippersDeclarationDetail value for this ShippingDocumentSpecification.** @param dangerousGoodsShippersDeclarationDetail * Specifies the production of the 1421c document for dangerous* goods shipment.*/public void setDangerousGoodsShippersDeclarationDetail(com.fedex.ship.stub.DangerousGoodsShippersDeclarationDetail dangerousGoodsShippersDeclarationDetail) {this.dangerousGoodsShippersDeclarationDetail = dangerousGoodsShippersDeclarationDetail;}/*** Gets the freightAddressLabelDetail value for this ShippingDocumentSpecification.** @return freightAddressLabelDetail * Specifies the production of the OP-900 document for hazardous* materials.*/public com.fedex.ship.stub.FreightAddressLabelDetail getFreightAddressLabelDetail() {return freightAddressLabelDetail;}/*** Sets the freightAddressLabelDetail value for this ShippingDocumentSpecification.** @param freightAddressLabelDetail * Specifies the production of the OP-900 document for hazardous* materials.*/public void setFreightAddressLabelDetail(com.fedex.ship.stub.FreightAddressLabelDetail freightAddressLabelDetail) {this.freightAddressLabelDetail = freightAddressLabelDetail;}/*** Gets the returnInstructionsDetail value for this ShippingDocumentSpecification.** @return returnInstructionsDetail * Specifies the production of the return instructions document.*/public com.fedex.ship.stub.ReturnInstructionsDetail getReturnInstructionsDetail() {return returnInstructionsDetail;}/*** Sets the returnInstructionsDetail value for this ShippingDocumentSpecification.** @param returnInstructionsDetail * Specifies the production of the return instructions document.*/public void setReturnInstructionsDetail(com.fedex.ship.stub.ReturnInstructionsDetail returnInstructionsDetail) {this.returnInstructionsDetail = returnInstructionsDetail;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof ShippingDocumentSpecification)) return false;ShippingDocumentSpecification other = (ShippingDocumentSpecification) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.shippingDocumentTypes==null && other.getShippingDocumentTypes()==null) ||(this.shippingDocumentTypes!=null &&java.util.Arrays.equals(this.shippingDocumentTypes, other.getShippingDocumentTypes()))) &&((this.certificateOfOrigin==null && other.getCertificateOfOrigin()==null) ||(this.certificateOfOrigin!=null &&this.certificateOfOrigin.equals(other.getCertificateOfOrigin()))) &&((this.commercialInvoiceDetail==null && other.getCommercialInvoiceDetail()==null) ||(this.commercialInvoiceDetail!=null &&this.commercialInvoiceDetail.equals(other.getCommercialInvoiceDetail()))) &&((this.customPackageDocumentDetail==null && other.getCustomPackageDocumentDetail()==null) ||(this.customPackageDocumentDetail!=null &&java.util.Arrays.equals(this.customPackageDocumentDetail, other.getCustomPackageDocumentDetail()))) &&((this.customShipmentDocumentDetail==null && other.getCustomShipmentDocumentDetail()==null) ||(this.customShipmentDocumentDetail!=null &&java.util.Arrays.equals(this.customShipmentDocumentDetail, other.getCustomShipmentDocumentDetail()))) &&((this.generalAgencyAgreementDetail==null && other.getGeneralAgencyAgreementDetail()==null) ||(this.generalAgencyAgreementDetail!=null &&this.generalAgencyAgreementDetail.equals(other.getGeneralAgencyAgreementDetail()))) &&((this.naftaCertificateOfOriginDetail==null && other.getNaftaCertificateOfOriginDetail()==null) ||(this.naftaCertificateOfOriginDetail!=null &&this.naftaCertificateOfOriginDetail.equals(other.getNaftaCertificateOfOriginDetail()))) &&((this.op900Detail==null && other.getOp900Detail()==null) ||(this.op900Detail!=null &&this.op900Detail.equals(other.getOp900Detail()))) &&((this.dangerousGoodsShippersDeclarationDetail==null && other.getDangerousGoodsShippersDeclarationDetail()==null) ||(this.dangerousGoodsShippersDeclarationDetail!=null &&this.dangerousGoodsShippersDeclarationDetail.equals(other.getDangerousGoodsShippersDeclarationDetail()))) &&((this.freightAddressLabelDetail==null && other.getFreightAddressLabelDetail()==null) ||(this.freightAddressLabelDetail!=null &&this.freightAddressLabelDetail.equals(other.getFreightAddressLabelDetail()))) &&((this.returnInstructionsDetail==null && other.getReturnInstructionsDetail()==null) ||(this.returnInstructionsDetail!=null &&this.returnInstructionsDetail.equals(other.getReturnInstructionsDetail())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getShippingDocumentTypes() != null) {for (int i=0;i<java.lang.reflect.Array.getLength(getShippingDocumentTypes());i++) {java.lang.Object obj = java.lang.reflect.Array.get(getShippingDocumentTypes(), i);if (obj != null &&!obj.getClass().isArray()) {_hashCode += obj.hashCode();}}}if (getCertificateOfOrigin() != null) {_hashCode += getCertificateOfOrigin().hashCode();}if (getCommercialInvoiceDetail() != null) {_hashCode += getCommercialInvoiceDetail().hashCode();}if (getCustomPackageDocumentDetail() != null) {for (int i=0;i<java.lang.reflect.Array.getLength(getCustomPackageDocumentDetail());i++) {java.lang.Object obj = java.lang.reflect.Array.get(getCustomPackageDocumentDetail(), i);if (obj != null &&!obj.getClass().isArray()) {_hashCode += obj.hashCode();}}}if (getCustomShipmentDocumentDetail() != null) {for (int i=0;i<java.lang.reflect.Array.getLength(getCustomShipmentDocumentDetail());i++) {java.lang.Object obj = java.lang.reflect.Array.get(getCustomShipmentDocumentDetail(), i);if (obj != null &&!obj.getClass().isArray()) {_hashCode += obj.hashCode();}}}if (getGeneralAgencyAgreementDetail() != null) {_hashCode += getGeneralAgencyAgreementDetail().hashCode();}if (getNaftaCertificateOfOriginDetail() != null) {_hashCode += getNaftaCertificateOfOriginDetail().hashCode();}if (getOp900Detail() != null) {_hashCode += getOp900Detail().hashCode();}if (getDangerousGoodsShippersDeclarationDetail() != null) {_hashCode += getDangerousGoodsShippersDeclarationDetail().hashCode();}if (getFreightAddressLabelDetail() != null) {_hashCode += getFreightAddressLabelDetail().hashCode();}if (getReturnInstructionsDetail() != null) {_hashCode += getReturnInstructionsDetail().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(ShippingDocumentSpecification.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentSpecification"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("shippingDocumentTypes");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentTypes"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestedShippingDocumentType"));elemField.setNillable(false);elemField.setMaxOccursUnbounded(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("certificateOfOrigin");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CertificateOfOrigin"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CertificateOfOriginDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("commercialInvoiceDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CommercialInvoiceDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CommercialInvoiceDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("customPackageDocumentDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomPackageDocumentDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomDocumentDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);elemField.setMaxOccursUnbounded(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("customShipmentDocumentDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomShipmentDocumentDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomDocumentDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);elemField.setMaxOccursUnbounded(true);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("generalAgencyAgreementDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "GeneralAgencyAgreementDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "GeneralAgencyAgreementDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("naftaCertificateOfOriginDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaCertificateOfOriginDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaCertificateOfOriginDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("op900Detail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Op900Detail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Op900Detail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("dangerousGoodsShippersDeclarationDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DangerousGoodsShippersDeclarationDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DangerousGoodsShippersDeclarationDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("freightAddressLabelDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightAddressLabelDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightAddressLabelDetail"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("returnInstructionsDetail");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnInstructionsDetail"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnInstructionsDetail"));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);}}