Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShippingDocumentPrintDetail.java
3
 *
4
 * This file was auto-generated from WSDL
5
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6
 */
7
 
8
package com.fedex.ship.stub;
9
 
10
 
11
/**
12
 * Specifies printing options for a shipping document.
13
 */
14
public class ShippingDocumentPrintDetail  implements java.io.Serializable {
15
    /* Provides environment-specific printer identification. */
16
    private java.lang.String printerId;
17
 
18
    public ShippingDocumentPrintDetail() {
19
    }
20
 
21
    public ShippingDocumentPrintDetail(
22
           java.lang.String printerId) {
23
           this.printerId = printerId;
24
    }
25
 
26
 
27
    /**
28
     * Gets the printerId value for this ShippingDocumentPrintDetail.
29
     * 
30
     * @return printerId   * Provides environment-specific printer identification.
31
     */
32
    public java.lang.String getPrinterId() {
33
        return printerId;
34
    }
35
 
36
 
37
    /**
38
     * Sets the printerId value for this ShippingDocumentPrintDetail.
39
     * 
40
     * @param printerId   * Provides environment-specific printer identification.
41
     */
42
    public void setPrinterId(java.lang.String printerId) {
43
        this.printerId = printerId;
44
    }
45
 
46
    private java.lang.Object __equalsCalc = null;
47
    public synchronized boolean equals(java.lang.Object obj) {
48
        if (!(obj instanceof ShippingDocumentPrintDetail)) return false;
49
        ShippingDocumentPrintDetail other = (ShippingDocumentPrintDetail) obj;
50
        if (obj == null) return false;
51
        if (this == obj) return true;
52
        if (__equalsCalc != null) {
53
            return (__equalsCalc == obj);
54
        }
55
        __equalsCalc = obj;
56
        boolean _equals;
57
        _equals = true && 
58
            ((this.printerId==null && other.getPrinterId()==null) || 
59
             (this.printerId!=null &&
60
              this.printerId.equals(other.getPrinterId())));
61
        __equalsCalc = null;
62
        return _equals;
63
    }
64
 
65
    private boolean __hashCodeCalc = false;
66
    public synchronized int hashCode() {
67
        if (__hashCodeCalc) {
68
            return 0;
69
        }
70
        __hashCodeCalc = true;
71
        int _hashCode = 1;
72
        if (getPrinterId() != null) {
73
            _hashCode += getPrinterId().hashCode();
74
        }
75
        __hashCodeCalc = false;
76
        return _hashCode;
77
    }
78
 
79
    // Type metadata
80
    private static org.apache.axis.description.TypeDesc typeDesc =
81
        new org.apache.axis.description.TypeDesc(ShippingDocumentPrintDetail.class, true);
82
 
83
    static {
84
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentPrintDetail"));
85
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
86
        elemField.setFieldName("printerId");
87
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PrinterId"));
88
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
89
        elemField.setMinOccurs(0);
90
        elemField.setNillable(false);
91
        typeDesc.addFieldDesc(elemField);
92
    }
93
 
94
    /**
95
     * Return type metadata object
96
     */
97
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
98
        return typeDesc;
99
    }
100
 
101
    /**
102
     * Get Custom Serializer
103
     */
104
    public static org.apache.axis.encoding.Serializer getSerializer(
105
           java.lang.String mechType, 
106
           java.lang.Class _javaType,  
107
           javax.xml.namespace.QName _xmlType) {
108
        return 
109
          new  org.apache.axis.encoding.ser.BeanSerializer(
110
            _javaType, _xmlType, typeDesc);
111
    }
112
 
113
    /**
114
     * Get Custom Deserializer
115
     */
116
    public static org.apache.axis.encoding.Deserializer getDeserializer(
117
           java.lang.String mechType, 
118
           java.lang.Class _javaType,  
119
           javax.xml.namespace.QName _xmlType) {
120
        return 
121
          new  org.apache.axis.encoding.ser.BeanDeserializer(
122
            _javaType, _xmlType, typeDesc);
123
    }
124
 
125
}