Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * PurposeOfShipmentType.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 PurposeOfShipmentType implements java.io.Serializable {
11
    private java.lang.String _value_;
12
    private static java.util.HashMap _table_ = new java.util.HashMap();
13
 
14
    // Constructor
15
    protected PurposeOfShipmentType(java.lang.String value) {
16
        _value_ = value;
17
        _table_.put(_value_,this);
18
    }
19
 
20
    public static final java.lang.String _GIFT = "GIFT";
21
    public static final java.lang.String _NOT_SOLD = "NOT_SOLD";
22
    public static final java.lang.String _PERSONAL_EFFECTS = "PERSONAL_EFFECTS";
23
    public static final java.lang.String _REPAIR_AND_RETURN = "REPAIR_AND_RETURN";
24
    public static final java.lang.String _SAMPLE = "SAMPLE";
25
    public static final java.lang.String _SOLD = "SOLD";
26
    public static final PurposeOfShipmentType GIFT = new PurposeOfShipmentType(_GIFT);
27
    public static final PurposeOfShipmentType NOT_SOLD = new PurposeOfShipmentType(_NOT_SOLD);
28
    public static final PurposeOfShipmentType PERSONAL_EFFECTS = new PurposeOfShipmentType(_PERSONAL_EFFECTS);
29
    public static final PurposeOfShipmentType REPAIR_AND_RETURN = new PurposeOfShipmentType(_REPAIR_AND_RETURN);
30
    public static final PurposeOfShipmentType SAMPLE = new PurposeOfShipmentType(_SAMPLE);
31
    public static final PurposeOfShipmentType SOLD = new PurposeOfShipmentType(_SOLD);
32
    public java.lang.String getValue() { return _value_;}
33
    public static PurposeOfShipmentType fromValue(java.lang.String value)
34
          throws java.lang.IllegalArgumentException {
35
        PurposeOfShipmentType enumeration = (PurposeOfShipmentType)
36
            _table_.get(value);
37
        if (enumeration==null) throw new java.lang.IllegalArgumentException();
38
        return enumeration;
39
    }
40
    public static PurposeOfShipmentType fromString(java.lang.String value)
41
          throws java.lang.IllegalArgumentException {
42
        return fromValue(value);
43
    }
44
    public boolean equals(java.lang.Object obj) {return (obj == this);}
45
    public int hashCode() { return toString().hashCode();}
46
    public java.lang.String toString() { return _value_;}
47
    public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
48
    public static org.apache.axis.encoding.Serializer getSerializer(
49
           java.lang.String mechType, 
50
           java.lang.Class _javaType,  
51
           javax.xml.namespace.QName _xmlType) {
52
        return 
53
          new org.apache.axis.encoding.ser.EnumSerializer(
54
            _javaType, _xmlType);
55
    }
56
    public static org.apache.axis.encoding.Deserializer getDeserializer(
57
           java.lang.String mechType, 
58
           java.lang.Class _javaType,  
59
           javax.xml.namespace.QName _xmlType) {
60
        return 
61
          new org.apache.axis.encoding.ser.EnumDeserializer(
62
            _javaType, _xmlType);
63
    }
64
    // Type metadata
65
    private static org.apache.axis.description.TypeDesc typeDesc =
66
        new org.apache.axis.description.TypeDesc(PurposeOfShipmentType.class);
67
 
68
    static {
69
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PurposeOfShipmentType"));
70
    }
71
    /**
72
     * Return type metadata object
73
     */
74
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
75
        return typeDesc;
76
    }
77
 
78
}