Blame | Last modification | View Log | RSS feed
/*** Contact.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;/*** The descriptive data for a point-of-contact person.*/public class Contact implements java.io.Serializable {/* Client provided identifier corresponding to this contact information. */private java.lang.String contactId;/* Identifies the contact person's name. */private java.lang.String personName;/* Identifies the contact person's title. */private java.lang.String title;/* Identifies the company this contact is associated with. */private java.lang.String companyName;/* Identifies the phone number associated with this contact. */private java.lang.String phoneNumber;/* Identifies the phone extension associated with this contact. */private java.lang.String phoneExtension;/* Identifies a toll free number, if any, associated with this* contact. */private java.lang.String tollFreePhoneNumber;/* Identifies the pager number associated with this contact. */private java.lang.String pagerNumber;/* Identifies the fax number associated with this contact. */private java.lang.String faxNumber;/* Identifies the email address associated with this contact. */private java.lang.String EMailAddress;public Contact() {}public Contact(java.lang.String contactId,java.lang.String personName,java.lang.String title,java.lang.String companyName,java.lang.String phoneNumber,java.lang.String phoneExtension,java.lang.String tollFreePhoneNumber,java.lang.String pagerNumber,java.lang.String faxNumber,java.lang.String EMailAddress) {this.contactId = contactId;this.personName = personName;this.title = title;this.companyName = companyName;this.phoneNumber = phoneNumber;this.phoneExtension = phoneExtension;this.tollFreePhoneNumber = tollFreePhoneNumber;this.pagerNumber = pagerNumber;this.faxNumber = faxNumber;this.EMailAddress = EMailAddress;}/*** Gets the contactId value for this Contact.** @return contactId * Client provided identifier corresponding to this contact information.*/public java.lang.String getContactId() {return contactId;}/*** Sets the contactId value for this Contact.** @param contactId * Client provided identifier corresponding to this contact information.*/public void setContactId(java.lang.String contactId) {this.contactId = contactId;}/*** Gets the personName value for this Contact.** @return personName * Identifies the contact person's name.*/public java.lang.String getPersonName() {return personName;}/*** Sets the personName value for this Contact.** @param personName * Identifies the contact person's name.*/public void setPersonName(java.lang.String personName) {this.personName = personName;}/*** Gets the title value for this Contact.** @return title * Identifies the contact person's title.*/public java.lang.String getTitle() {return title;}/*** Sets the title value for this Contact.** @param title * Identifies the contact person's title.*/public void setTitle(java.lang.String title) {this.title = title;}/*** Gets the companyName value for this Contact.** @return companyName * Identifies the company this contact is associated with.*/public java.lang.String getCompanyName() {return companyName;}/*** Sets the companyName value for this Contact.** @param companyName * Identifies the company this contact is associated with.*/public void setCompanyName(java.lang.String companyName) {this.companyName = companyName;}/*** Gets the phoneNumber value for this Contact.** @return phoneNumber * Identifies the phone number associated with this contact.*/public java.lang.String getPhoneNumber() {return phoneNumber;}/*** Sets the phoneNumber value for this Contact.** @param phoneNumber * Identifies the phone number associated with this contact.*/public void setPhoneNumber(java.lang.String phoneNumber) {this.phoneNumber = phoneNumber;}/*** Gets the phoneExtension value for this Contact.** @return phoneExtension * Identifies the phone extension associated with this contact.*/public java.lang.String getPhoneExtension() {return phoneExtension;}/*** Sets the phoneExtension value for this Contact.** @param phoneExtension * Identifies the phone extension associated with this contact.*/public void setPhoneExtension(java.lang.String phoneExtension) {this.phoneExtension = phoneExtension;}/*** Gets the tollFreePhoneNumber value for this Contact.** @return tollFreePhoneNumber * Identifies a toll free number, if any, associated with this* contact.*/public java.lang.String getTollFreePhoneNumber() {return tollFreePhoneNumber;}/*** Sets the tollFreePhoneNumber value for this Contact.** @param tollFreePhoneNumber * Identifies a toll free number, if any, associated with this* contact.*/public void setTollFreePhoneNumber(java.lang.String tollFreePhoneNumber) {this.tollFreePhoneNumber = tollFreePhoneNumber;}/*** Gets the pagerNumber value for this Contact.** @return pagerNumber * Identifies the pager number associated with this contact.*/public java.lang.String getPagerNumber() {return pagerNumber;}/*** Sets the pagerNumber value for this Contact.** @param pagerNumber * Identifies the pager number associated with this contact.*/public void setPagerNumber(java.lang.String pagerNumber) {this.pagerNumber = pagerNumber;}/*** Gets the faxNumber value for this Contact.** @return faxNumber * Identifies the fax number associated with this contact.*/public java.lang.String getFaxNumber() {return faxNumber;}/*** Sets the faxNumber value for this Contact.** @param faxNumber * Identifies the fax number associated with this contact.*/public void setFaxNumber(java.lang.String faxNumber) {this.faxNumber = faxNumber;}/*** Gets the EMailAddress value for this Contact.** @return EMailAddress * Identifies the email address associated with this contact.*/public java.lang.String getEMailAddress() {return EMailAddress;}/*** Sets the EMailAddress value for this Contact.** @param EMailAddress * Identifies the email address associated with this contact.*/public void setEMailAddress(java.lang.String EMailAddress) {this.EMailAddress = EMailAddress;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof Contact)) return false;Contact other = (Contact) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.contactId==null && other.getContactId()==null) ||(this.contactId!=null &&this.contactId.equals(other.getContactId()))) &&((this.personName==null && other.getPersonName()==null) ||(this.personName!=null &&this.personName.equals(other.getPersonName()))) &&((this.title==null && other.getTitle()==null) ||(this.title!=null &&this.title.equals(other.getTitle()))) &&((this.companyName==null && other.getCompanyName()==null) ||(this.companyName!=null &&this.companyName.equals(other.getCompanyName()))) &&((this.phoneNumber==null && other.getPhoneNumber()==null) ||(this.phoneNumber!=null &&this.phoneNumber.equals(other.getPhoneNumber()))) &&((this.phoneExtension==null && other.getPhoneExtension()==null) ||(this.phoneExtension!=null &&this.phoneExtension.equals(other.getPhoneExtension()))) &&((this.tollFreePhoneNumber==null && other.getTollFreePhoneNumber()==null) ||(this.tollFreePhoneNumber!=null &&this.tollFreePhoneNumber.equals(other.getTollFreePhoneNumber()))) &&((this.pagerNumber==null && other.getPagerNumber()==null) ||(this.pagerNumber!=null &&this.pagerNumber.equals(other.getPagerNumber()))) &&((this.faxNumber==null && other.getFaxNumber()==null) ||(this.faxNumber!=null &&this.faxNumber.equals(other.getFaxNumber()))) &&((this.EMailAddress==null && other.getEMailAddress()==null) ||(this.EMailAddress!=null &&this.EMailAddress.equals(other.getEMailAddress())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getContactId() != null) {_hashCode += getContactId().hashCode();}if (getPersonName() != null) {_hashCode += getPersonName().hashCode();}if (getTitle() != null) {_hashCode += getTitle().hashCode();}if (getCompanyName() != null) {_hashCode += getCompanyName().hashCode();}if (getPhoneNumber() != null) {_hashCode += getPhoneNumber().hashCode();}if (getPhoneExtension() != null) {_hashCode += getPhoneExtension().hashCode();}if (getTollFreePhoneNumber() != null) {_hashCode += getTollFreePhoneNumber().hashCode();}if (getPagerNumber() != null) {_hashCode += getPagerNumber().hashCode();}if (getFaxNumber() != null) {_hashCode += getFaxNumber().hashCode();}if (getEMailAddress() != null) {_hashCode += getEMailAddress().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(Contact.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Contact"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("contactId");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactId"));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("personName");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PersonName"));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("title");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Title"));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("companyName");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CompanyName"));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("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.setMinOccurs(0);elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("phoneExtension");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PhoneExtension"));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("tollFreePhoneNumber");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TollFreePhoneNumber"));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("pagerNumber");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PagerNumber"));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("faxNumber");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FaxNumber"));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("EMailAddress");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailAddress"));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);}}