Blame | Last modification | View Log | RSS feed
/*** SmartPostShipmentDetail.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;/*** Data required for shipments handled under the SMART_POST and GROUND_SMART_POST* service types.*/public class SmartPostShipmentDetail implements java.io.Serializable {private com.fedex.ship.stub.SmartPostIndiciaType indicia;private com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement;private java.lang.String hubId;/* The CustomerManifestId is used to group Smart Post packages* onto a manifest for each trailer that is being prepared. If you do* not have multiple trailers this field can be omitted. If you have* multiple trailers, you* must assign the same Manifest Id to each SmartPost* package as determined by its trailer. In other words, all packages* on a trailer must have the same Customer Manifest Id. The manifest* Id must be unique to your account number for a minimum of 6 months* and cannot exceed 8 characters in length. We recommend you use the* day of year + the trailer id (this could simply be a sequential number* for that trailer). So if you had 3 trailers that you started loading* on Feb 10* the 3 manifest ids would be 041001, 041002, 041003* (in this case we used leading zeros on the trailer numbers). */private java.lang.String customerManifestId;public SmartPostShipmentDetail() {}public SmartPostShipmentDetail(com.fedex.ship.stub.SmartPostIndiciaType indicia,com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement,java.lang.String hubId,java.lang.String customerManifestId) {this.indicia = indicia;this.ancillaryEndorsement = ancillaryEndorsement;this.hubId = hubId;this.customerManifestId = customerManifestId;}/*** Gets the indicia value for this SmartPostShipmentDetail.** @return indicia*/public com.fedex.ship.stub.SmartPostIndiciaType getIndicia() {return indicia;}/*** Sets the indicia value for this SmartPostShipmentDetail.** @param indicia*/public void setIndicia(com.fedex.ship.stub.SmartPostIndiciaType indicia) {this.indicia = indicia;}/*** Gets the ancillaryEndorsement value for this SmartPostShipmentDetail.** @return ancillaryEndorsement*/public com.fedex.ship.stub.SmartPostAncillaryEndorsementType getAncillaryEndorsement() {return ancillaryEndorsement;}/*** Sets the ancillaryEndorsement value for this SmartPostShipmentDetail.** @param ancillaryEndorsement*/public void setAncillaryEndorsement(com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement) {this.ancillaryEndorsement = ancillaryEndorsement;}/*** Gets the hubId value for this SmartPostShipmentDetail.** @return hubId*/public java.lang.String getHubId() {return hubId;}/*** Sets the hubId value for this SmartPostShipmentDetail.** @param hubId*/public void setHubId(java.lang.String hubId) {this.hubId = hubId;}/*** Gets the customerManifestId value for this SmartPostShipmentDetail.** @return customerManifestId * The CustomerManifestId is used to group Smart Post packages* onto a manifest for each trailer that is being prepared. If you do* not have multiple trailers this field can be omitted. If you have* multiple trailers, you* must assign the same Manifest Id to each SmartPost* package as determined by its trailer. In other words, all packages* on a trailer must have the same Customer Manifest Id. The manifest* Id must be unique to your account number for a minimum of 6 months* and cannot exceed 8 characters in length. We recommend you use the* day of year + the trailer id (this could simply be a sequential number* for that trailer). So if you had 3 trailers that you started loading* on Feb 10* the 3 manifest ids would be 041001, 041002, 041003* (in this case we used leading zeros on the trailer numbers).*/public java.lang.String getCustomerManifestId() {return customerManifestId;}/*** Sets the customerManifestId value for this SmartPostShipmentDetail.** @param customerManifestId * The CustomerManifestId is used to group Smart Post packages* onto a manifest for each trailer that is being prepared. If you do* not have multiple trailers this field can be omitted. If you have* multiple trailers, you* must assign the same Manifest Id to each SmartPost* package as determined by its trailer. In other words, all packages* on a trailer must have the same Customer Manifest Id. The manifest* Id must be unique to your account number for a minimum of 6 months* and cannot exceed 8 characters in length. We recommend you use the* day of year + the trailer id (this could simply be a sequential number* for that trailer). So if you had 3 trailers that you started loading* on Feb 10* the 3 manifest ids would be 041001, 041002, 041003* (in this case we used leading zeros on the trailer numbers).*/public void setCustomerManifestId(java.lang.String customerManifestId) {this.customerManifestId = customerManifestId;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof SmartPostShipmentDetail)) return false;SmartPostShipmentDetail other = (SmartPostShipmentDetail) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.indicia==null && other.getIndicia()==null) ||(this.indicia!=null &&this.indicia.equals(other.getIndicia()))) &&((this.ancillaryEndorsement==null && other.getAncillaryEndorsement()==null) ||(this.ancillaryEndorsement!=null &&this.ancillaryEndorsement.equals(other.getAncillaryEndorsement()))) &&((this.hubId==null && other.getHubId()==null) ||(this.hubId!=null &&this.hubId.equals(other.getHubId()))) &&((this.customerManifestId==null && other.getCustomerManifestId()==null) ||(this.customerManifestId!=null &&this.customerManifestId.equals(other.getCustomerManifestId())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getIndicia() != null) {_hashCode += getIndicia().hashCode();}if (getAncillaryEndorsement() != null) {_hashCode += getAncillaryEndorsement().hashCode();}if (getHubId() != null) {_hashCode += getHubId().hashCode();}if (getCustomerManifestId() != null) {_hashCode += getCustomerManifestId().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(SmartPostShipmentDetail.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostShipmentDetail"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("indicia");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Indicia"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostIndiciaType"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("ancillaryEndorsement");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AncillaryEndorsement"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostAncillaryEndorsementType"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("hubId");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HubId"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("customerManifestId");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerManifestId"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));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);}}