Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ReturnInstructionsDetail.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
 * The instructions indicating how to print the return instructions(
13
 * e.g. image type) Specifies characteristics of a shipping document
14
 * to be produced.
15
 */
16
public class ReturnInstructionsDetail  implements java.io.Serializable {
17
    private com.fedex.ship.stub.ShippingDocumentFormat format;
18
 
19
    /* Specifies additional customer provided text to be inserted
20
     * into the return document. */
21
    private java.lang.String customText;
22
 
23
    public ReturnInstructionsDetail() {
24
    }
25
 
26
    public ReturnInstructionsDetail(
27
           com.fedex.ship.stub.ShippingDocumentFormat format,
28
           java.lang.String customText) {
29
           this.format = format;
30
           this.customText = customText;
31
    }
32
 
33
 
34
    /**
35
     * Gets the format value for this ReturnInstructionsDetail.
36
     * 
37
     * @return format
38
     */
39
    public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
40
        return format;
41
    }
42
 
43
 
44
    /**
45
     * Sets the format value for this ReturnInstructionsDetail.
46
     * 
47
     * @param format
48
     */
49
    public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
50
        this.format = format;
51
    }
52
 
53
 
54
    /**
55
     * Gets the customText value for this ReturnInstructionsDetail.
56
     * 
57
     * @return customText   * Specifies additional customer provided text to be inserted
58
     * into the return document.
59
     */
60
    public java.lang.String getCustomText() {
61
        return customText;
62
    }
63
 
64
 
65
    /**
66
     * Sets the customText value for this ReturnInstructionsDetail.
67
     * 
68
     * @param customText   * Specifies additional customer provided text to be inserted
69
     * into the return document.
70
     */
71
    public void setCustomText(java.lang.String customText) {
72
        this.customText = customText;
73
    }
74
 
75
    private java.lang.Object __equalsCalc = null;
76
    public synchronized boolean equals(java.lang.Object obj) {
77
        if (!(obj instanceof ReturnInstructionsDetail)) return false;
78
        ReturnInstructionsDetail other = (ReturnInstructionsDetail) obj;
79
        if (obj == null) return false;
80
        if (this == obj) return true;
81
        if (__equalsCalc != null) {
82
            return (__equalsCalc == obj);
83
        }
84
        __equalsCalc = obj;
85
        boolean _equals;
86
        _equals = true && 
87
            ((this.format==null && other.getFormat()==null) || 
88
             (this.format!=null &&
89
              this.format.equals(other.getFormat()))) &&
90
            ((this.customText==null && other.getCustomText()==null) || 
91
             (this.customText!=null &&
92
              this.customText.equals(other.getCustomText())));
93
        __equalsCalc = null;
94
        return _equals;
95
    }
96
 
97
    private boolean __hashCodeCalc = false;
98
    public synchronized int hashCode() {
99
        if (__hashCodeCalc) {
100
            return 0;
101
        }
102
        __hashCodeCalc = true;
103
        int _hashCode = 1;
104
        if (getFormat() != null) {
105
            _hashCode += getFormat().hashCode();
106
        }
107
        if (getCustomText() != null) {
108
            _hashCode += getCustomText().hashCode();
109
        }
110
        __hashCodeCalc = false;
111
        return _hashCode;
112
    }
113
 
114
    // Type metadata
115
    private static org.apache.axis.description.TypeDesc typeDesc =
116
        new org.apache.axis.description.TypeDesc(ReturnInstructionsDetail.class, true);
117
 
118
    static {
119
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnInstructionsDetail"));
120
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
121
        elemField.setFieldName("format");
122
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
123
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
124
        elemField.setMinOccurs(0);
125
        elemField.setNillable(false);
126
        typeDesc.addFieldDesc(elemField);
127
        elemField = new org.apache.axis.description.ElementDesc();
128
        elemField.setFieldName("customText");
129
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomText"));
130
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
131
        elemField.setMinOccurs(0);
132
        elemField.setNillable(false);
133
        typeDesc.addFieldDesc(elemField);
134
    }
135
 
136
    /**
137
     * Return type metadata object
138
     */
139
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
140
        return typeDesc;
141
    }
142
 
143
    /**
144
     * Get Custom Serializer
145
     */
146
    public static org.apache.axis.encoding.Serializer getSerializer(
147
           java.lang.String mechType, 
148
           java.lang.Class _javaType,  
149
           javax.xml.namespace.QName _xmlType) {
150
        return 
151
          new  org.apache.axis.encoding.ser.BeanSerializer(
152
            _javaType, _xmlType, typeDesc);
153
    }
154
 
155
    /**
156
     * Get Custom Deserializer
157
     */
158
    public static org.apache.axis.encoding.Deserializer getDeserializer(
159
           java.lang.String mechType, 
160
           java.lang.Class _javaType,  
161
           javax.xml.namespace.QName _xmlType) {
162
        return 
163
          new  org.apache.axis.encoding.ser.BeanDeserializer(
164
            _javaType, _xmlType, typeDesc);
165
    }
166
 
167
}