Blame | Last modification | View Log | RSS feed
/*** HoldAtLocationDetail.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;/*** Descriptive data required for a FedEx shipment that is to be held* at the destination FedEx location for pickup by the recipient.*/public class HoldAtLocationDetail implements java.io.Serializable {/* Contact phone number for recipient of shipment. */private java.lang.String phoneNumber;/* Contact and address of FedEx facility at which shipment is* to be held. */private com.fedex.ship.stub.ContactAndAddress locationContactAndAddress;/* Type of facility at which package/shipment is to be held. */private com.fedex.ship.stub.FedExLocationType locationType;public HoldAtLocationDetail() {}public HoldAtLocationDetail(java.lang.String phoneNumber,com.fedex.ship.stub.ContactAndAddress locationContactAndAddress,com.fedex.ship.stub.FedExLocationType locationType) {this.phoneNumber = phoneNumber;this.locationContactAndAddress = locationContactAndAddress;this.locationType = locationType;}/*** Gets the phoneNumber value for this HoldAtLocationDetail.** @return phoneNumber * Contact phone number for recipient of shipment.*/public java.lang.String getPhoneNumber() {return phoneNumber;}/*** Sets the phoneNumber value for this HoldAtLocationDetail.** @param phoneNumber * Contact phone number for recipient of shipment.*/public void setPhoneNumber(java.lang.String phoneNumber) {this.phoneNumber = phoneNumber;}/*** Gets the locationContactAndAddress value for this HoldAtLocationDetail.** @return locationContactAndAddress * Contact and address of FedEx facility at which shipment is* to be held.*/public com.fedex.ship.stub.ContactAndAddress getLocationContactAndAddress() {return locationContactAndAddress;}/*** Sets the locationContactAndAddress value for this HoldAtLocationDetail.** @param locationContactAndAddress * Contact and address of FedEx facility at which shipment is* to be held.*/public void setLocationContactAndAddress(com.fedex.ship.stub.ContactAndAddress locationContactAndAddress) {this.locationContactAndAddress = locationContactAndAddress;}/*** Gets the locationType value for this HoldAtLocationDetail.** @return locationType * Type of facility at which package/shipment is to be held.*/public com.fedex.ship.stub.FedExLocationType getLocationType() {return locationType;}/*** Sets the locationType value for this HoldAtLocationDetail.** @param locationType * Type of facility at which package/shipment is to be held.*/public void setLocationType(com.fedex.ship.stub.FedExLocationType locationType) {this.locationType = locationType;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof HoldAtLocationDetail)) return false;HoldAtLocationDetail other = (HoldAtLocationDetail) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.phoneNumber==null && other.getPhoneNumber()==null) ||(this.phoneNumber!=null &&this.phoneNumber.equals(other.getPhoneNumber()))) &&((this.locationContactAndAddress==null && other.getLocationContactAndAddress()==null) ||(this.locationContactAndAddress!=null &&this.locationContactAndAddress.equals(other.getLocationContactAndAddress()))) &&((this.locationType==null && other.getLocationType()==null) ||(this.locationType!=null &&this.locationType.equals(other.getLocationType())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getPhoneNumber() != null) {_hashCode += getPhoneNumber().hashCode();}if (getLocationContactAndAddress() != null) {_hashCode += getLocationContactAndAddress().hashCode();}if (getLocationType() != null) {_hashCode += getLocationType().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(HoldAtLocationDetail.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HoldAtLocationDetail"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("phoneNumber");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PhoneNumber"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("locationContactAndAddress");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LocationContactAndAddress"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactAndAddress"));elemField.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("locationType");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LocationType"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FedExLocationType"));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);}}