Blame | Last modification | View Log | RSS feed
/*** DangerousGoodsSignatory.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;/*** Specifies that name, title and place of the signatory responsible* for the dangerous goods shipment.*/public class DangerousGoodsSignatory implements java.io.Serializable {private java.lang.String contactName;private java.lang.String title;/* Indicates the place where the form is signed. */private java.lang.String place;public DangerousGoodsSignatory() {}public DangerousGoodsSignatory(java.lang.String contactName,java.lang.String title,java.lang.String place) {this.contactName = contactName;this.title = title;this.place = place;}/*** Gets the contactName value for this DangerousGoodsSignatory.** @return contactName*/public java.lang.String getContactName() {return contactName;}/*** Sets the contactName value for this DangerousGoodsSignatory.** @param contactName*/public void setContactName(java.lang.String contactName) {this.contactName = contactName;}/*** Gets the title value for this DangerousGoodsSignatory.** @return title*/public java.lang.String getTitle() {return title;}/*** Sets the title value for this DangerousGoodsSignatory.** @param title*/public void setTitle(java.lang.String title) {this.title = title;}/*** Gets the place value for this DangerousGoodsSignatory.** @return place * Indicates the place where the form is signed.*/public java.lang.String getPlace() {return place;}/*** Sets the place value for this DangerousGoodsSignatory.** @param place * Indicates the place where the form is signed.*/public void setPlace(java.lang.String place) {this.place = place;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof DangerousGoodsSignatory)) return false;DangerousGoodsSignatory other = (DangerousGoodsSignatory) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.contactName==null && other.getContactName()==null) ||(this.contactName!=null &&this.contactName.equals(other.getContactName()))) &&((this.title==null && other.getTitle()==null) ||(this.title!=null &&this.title.equals(other.getTitle()))) &&((this.place==null && other.getPlace()==null) ||(this.place!=null &&this.place.equals(other.getPlace())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getContactName() != null) {_hashCode += getContactName().hashCode();}if (getTitle() != null) {_hashCode += getTitle().hashCode();}if (getPlace() != null) {_hashCode += getPlace().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(DangerousGoodsSignatory.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DangerousGoodsSignatory"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("contactName");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactName"));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("place");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Place"));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);}}