Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CustomLabelPosition.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
public class CustomLabelPosition  implements java.io.Serializable {
11
    /* Horizontal position, relative to left edge of custom area. */
12
    private org.apache.axis.types.NonNegativeInteger x;
13
 
14
    /* Vertical position, relative to top edge of custom area. */
15
    private org.apache.axis.types.NonNegativeInteger y;
16
 
17
    public CustomLabelPosition() {
18
    }
19
 
20
    public CustomLabelPosition(
21
           org.apache.axis.types.NonNegativeInteger x,
22
           org.apache.axis.types.NonNegativeInteger y) {
23
           this.x = x;
24
           this.y = y;
25
    }
26
 
27
 
28
    /**
29
     * Gets the x value for this CustomLabelPosition.
30
     * 
31
     * @return x   * Horizontal position, relative to left edge of custom area.
32
     */
33
    public org.apache.axis.types.NonNegativeInteger getX() {
34
        return x;
35
    }
36
 
37
 
38
    /**
39
     * Sets the x value for this CustomLabelPosition.
40
     * 
41
     * @param x   * Horizontal position, relative to left edge of custom area.
42
     */
43
    public void setX(org.apache.axis.types.NonNegativeInteger x) {
44
        this.x = x;
45
    }
46
 
47
 
48
    /**
49
     * Gets the y value for this CustomLabelPosition.
50
     * 
51
     * @return y   * Vertical position, relative to top edge of custom area.
52
     */
53
    public org.apache.axis.types.NonNegativeInteger getY() {
54
        return y;
55
    }
56
 
57
 
58
    /**
59
     * Sets the y value for this CustomLabelPosition.
60
     * 
61
     * @param y   * Vertical position, relative to top edge of custom area.
62
     */
63
    public void setY(org.apache.axis.types.NonNegativeInteger y) {
64
        this.y = y;
65
    }
66
 
67
    private java.lang.Object __equalsCalc = null;
68
    public synchronized boolean equals(java.lang.Object obj) {
69
        if (!(obj instanceof CustomLabelPosition)) return false;
70
        CustomLabelPosition other = (CustomLabelPosition) obj;
71
        if (obj == null) return false;
72
        if (this == obj) return true;
73
        if (__equalsCalc != null) {
74
            return (__equalsCalc == obj);
75
        }
76
        __equalsCalc = obj;
77
        boolean _equals;
78
        _equals = true && 
79
            ((this.x==null && other.getX()==null) || 
80
             (this.x!=null &&
81
              this.x.equals(other.getX()))) &&
82
            ((this.y==null && other.getY()==null) || 
83
             (this.y!=null &&
84
              this.y.equals(other.getY())));
85
        __equalsCalc = null;
86
        return _equals;
87
    }
88
 
89
    private boolean __hashCodeCalc = false;
90
    public synchronized int hashCode() {
91
        if (__hashCodeCalc) {
92
            return 0;
93
        }
94
        __hashCodeCalc = true;
95
        int _hashCode = 1;
96
        if (getX() != null) {
97
            _hashCode += getX().hashCode();
98
        }
99
        if (getY() != null) {
100
            _hashCode += getY().hashCode();
101
        }
102
        __hashCodeCalc = false;
103
        return _hashCode;
104
    }
105
 
106
    // Type metadata
107
    private static org.apache.axis.description.TypeDesc typeDesc =
108
        new org.apache.axis.description.TypeDesc(CustomLabelPosition.class, true);
109
 
110
    static {
111
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelPosition"));
112
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
113
        elemField.setFieldName("x");
114
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "X"));
115
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
116
        elemField.setNillable(false);
117
        typeDesc.addFieldDesc(elemField);
118
        elemField = new org.apache.axis.description.ElementDesc();
119
        elemField.setFieldName("y");
120
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Y"));
121
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
122
        elemField.setNillable(false);
123
        typeDesc.addFieldDesc(elemField);
124
    }
125
 
126
    /**
127
     * Return type metadata object
128
     */
129
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
130
        return typeDesc;
131
    }
132
 
133
    /**
134
     * Get Custom Serializer
135
     */
136
    public static org.apache.axis.encoding.Serializer getSerializer(
137
           java.lang.String mechType, 
138
           java.lang.Class _javaType,  
139
           javax.xml.namespace.QName _xmlType) {
140
        return 
141
          new  org.apache.axis.encoding.ser.BeanSerializer(
142
            _javaType, _xmlType, typeDesc);
143
    }
144
 
145
    /**
146
     * Get Custom Deserializer
147
     */
148
    public static org.apache.axis.encoding.Deserializer getDeserializer(
149
           java.lang.String mechType, 
150
           java.lang.Class _javaType,  
151
           javax.xml.namespace.QName _xmlType) {
152
        return 
153
          new  org.apache.axis.encoding.ser.BeanDeserializer(
154
            _javaType, _xmlType, typeDesc);
155
    }
156
 
157
}