Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CustomLabelGraphicEntry.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
 * Image to be included from printer's memory, or from a local file
13
 * for offline clients.
14
 */
15
public class CustomLabelGraphicEntry  implements java.io.Serializable {
16
    private com.fedex.ship.stub.CustomLabelPosition position;
17
 
18
    /* Printer-specific index of graphic image to be printed. */
19
    private java.lang.String printerGraphicId;
20
 
21
    /* Fully-qualified path and file name for graphic image to be
22
     * printed. */
23
    private java.lang.String fileGraphicFullName;
24
 
25
    public CustomLabelGraphicEntry() {
26
    }
27
 
28
    public CustomLabelGraphicEntry(
29
           com.fedex.ship.stub.CustomLabelPosition position,
30
           java.lang.String printerGraphicId,
31
           java.lang.String fileGraphicFullName) {
32
           this.position = position;
33
           this.printerGraphicId = printerGraphicId;
34
           this.fileGraphicFullName = fileGraphicFullName;
35
    }
36
 
37
 
38
    /**
39
     * Gets the position value for this CustomLabelGraphicEntry.
40
     * 
41
     * @return position
42
     */
43
    public com.fedex.ship.stub.CustomLabelPosition getPosition() {
44
        return position;
45
    }
46
 
47
 
48
    /**
49
     * Sets the position value for this CustomLabelGraphicEntry.
50
     * 
51
     * @param position
52
     */
53
    public void setPosition(com.fedex.ship.stub.CustomLabelPosition position) {
54
        this.position = position;
55
    }
56
 
57
 
58
    /**
59
     * Gets the printerGraphicId value for this CustomLabelGraphicEntry.
60
     * 
61
     * @return printerGraphicId   * Printer-specific index of graphic image to be printed.
62
     */
63
    public java.lang.String getPrinterGraphicId() {
64
        return printerGraphicId;
65
    }
66
 
67
 
68
    /**
69
     * Sets the printerGraphicId value for this CustomLabelGraphicEntry.
70
     * 
71
     * @param printerGraphicId   * Printer-specific index of graphic image to be printed.
72
     */
73
    public void setPrinterGraphicId(java.lang.String printerGraphicId) {
74
        this.printerGraphicId = printerGraphicId;
75
    }
76
 
77
 
78
    /**
79
     * Gets the fileGraphicFullName value for this CustomLabelGraphicEntry.
80
     * 
81
     * @return fileGraphicFullName   * Fully-qualified path and file name for graphic image to be
82
     * printed.
83
     */
84
    public java.lang.String getFileGraphicFullName() {
85
        return fileGraphicFullName;
86
    }
87
 
88
 
89
    /**
90
     * Sets the fileGraphicFullName value for this CustomLabelGraphicEntry.
91
     * 
92
     * @param fileGraphicFullName   * Fully-qualified path and file name for graphic image to be
93
     * printed.
94
     */
95
    public void setFileGraphicFullName(java.lang.String fileGraphicFullName) {
96
        this.fileGraphicFullName = fileGraphicFullName;
97
    }
98
 
99
    private java.lang.Object __equalsCalc = null;
100
    public synchronized boolean equals(java.lang.Object obj) {
101
        if (!(obj instanceof CustomLabelGraphicEntry)) return false;
102
        CustomLabelGraphicEntry other = (CustomLabelGraphicEntry) obj;
103
        if (obj == null) return false;
104
        if (this == obj) return true;
105
        if (__equalsCalc != null) {
106
            return (__equalsCalc == obj);
107
        }
108
        __equalsCalc = obj;
109
        boolean _equals;
110
        _equals = true && 
111
            ((this.position==null && other.getPosition()==null) || 
112
             (this.position!=null &&
113
              this.position.equals(other.getPosition()))) &&
114
            ((this.printerGraphicId==null && other.getPrinterGraphicId()==null) || 
115
             (this.printerGraphicId!=null &&
116
              this.printerGraphicId.equals(other.getPrinterGraphicId()))) &&
117
            ((this.fileGraphicFullName==null && other.getFileGraphicFullName()==null) || 
118
             (this.fileGraphicFullName!=null &&
119
              this.fileGraphicFullName.equals(other.getFileGraphicFullName())));
120
        __equalsCalc = null;
121
        return _equals;
122
    }
123
 
124
    private boolean __hashCodeCalc = false;
125
    public synchronized int hashCode() {
126
        if (__hashCodeCalc) {
127
            return 0;
128
        }
129
        __hashCodeCalc = true;
130
        int _hashCode = 1;
131
        if (getPosition() != null) {
132
            _hashCode += getPosition().hashCode();
133
        }
134
        if (getPrinterGraphicId() != null) {
135
            _hashCode += getPrinterGraphicId().hashCode();
136
        }
137
        if (getFileGraphicFullName() != null) {
138
            _hashCode += getFileGraphicFullName().hashCode();
139
        }
140
        __hashCodeCalc = false;
141
        return _hashCode;
142
    }
143
 
144
    // Type metadata
145
    private static org.apache.axis.description.TypeDesc typeDesc =
146
        new org.apache.axis.description.TypeDesc(CustomLabelGraphicEntry.class, true);
147
 
148
    static {
149
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelGraphicEntry"));
150
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
151
        elemField.setFieldName("position");
152
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Position"));
153
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelPosition"));
154
        elemField.setMinOccurs(0);
155
        elemField.setNillable(false);
156
        typeDesc.addFieldDesc(elemField);
157
        elemField = new org.apache.axis.description.ElementDesc();
158
        elemField.setFieldName("printerGraphicId");
159
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PrinterGraphicId"));
160
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
161
        elemField.setMinOccurs(0);
162
        elemField.setNillable(false);
163
        typeDesc.addFieldDesc(elemField);
164
        elemField = new org.apache.axis.description.ElementDesc();
165
        elemField.setFieldName("fileGraphicFullName");
166
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FileGraphicFullName"));
167
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
168
        elemField.setMinOccurs(0);
169
        elemField.setNillable(false);
170
        typeDesc.addFieldDesc(elemField);
171
    }
172
 
173
    /**
174
     * Return type metadata object
175
     */
176
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
177
        return typeDesc;
178
    }
179
 
180
    /**
181
     * Get Custom Serializer
182
     */
183
    public static org.apache.axis.encoding.Serializer getSerializer(
184
           java.lang.String mechType, 
185
           java.lang.Class _javaType,  
186
           javax.xml.namespace.QName _xmlType) {
187
        return 
188
          new  org.apache.axis.encoding.ser.BeanSerializer(
189
            _javaType, _xmlType, typeDesc);
190
    }
191
 
192
    /**
193
     * Get Custom Deserializer
194
     */
195
    public static org.apache.axis.encoding.Deserializer getDeserializer(
196
           java.lang.String mechType, 
197
           java.lang.Class _javaType,  
198
           javax.xml.namespace.QName _xmlType) {
199
        return 
200
          new  org.apache.axis.encoding.ser.BeanDeserializer(
201
            _javaType, _xmlType, typeDesc);
202
    }
203
 
204
}