| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* StringBarcodeType.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 StringBarcodeType 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 StringBarcodeType(java.lang.String value) {
|
|
|
16 |
_value_ = value;
|
|
|
17 |
_table_.put(_value_,this);
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
public static final java.lang.String _ADDRESS = "ADDRESS";
|
|
|
21 |
public static final java.lang.String _ASTRA = "ASTRA";
|
|
|
22 |
public static final java.lang.String _FEDEX_1D = "FEDEX_1D";
|
|
|
23 |
public static final java.lang.String _GROUND = "GROUND";
|
|
|
24 |
public static final java.lang.String _POSTAL = "POSTAL";
|
|
|
25 |
public static final java.lang.String _USPS = "USPS";
|
|
|
26 |
public static final StringBarcodeType ADDRESS = new StringBarcodeType(_ADDRESS);
|
|
|
27 |
public static final StringBarcodeType ASTRA = new StringBarcodeType(_ASTRA);
|
|
|
28 |
public static final StringBarcodeType FEDEX_1D = new StringBarcodeType(_FEDEX_1D);
|
|
|
29 |
public static final StringBarcodeType GROUND = new StringBarcodeType(_GROUND);
|
|
|
30 |
public static final StringBarcodeType POSTAL = new StringBarcodeType(_POSTAL);
|
|
|
31 |
public static final StringBarcodeType USPS = new StringBarcodeType(_USPS);
|
|
|
32 |
public java.lang.String getValue() { return _value_;}
|
|
|
33 |
public static StringBarcodeType fromValue(java.lang.String value)
|
|
|
34 |
throws java.lang.IllegalArgumentException {
|
|
|
35 |
StringBarcodeType enumeration = (StringBarcodeType)
|
|
|
36 |
_table_.get(value);
|
|
|
37 |
if (enumeration==null) throw new java.lang.IllegalArgumentException();
|
|
|
38 |
return enumeration;
|
|
|
39 |
}
|
|
|
40 |
public static StringBarcodeType 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(StringBarcodeType.class);
|
|
|
67 |
|
|
|
68 |
static {
|
|
|
69 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "StringBarcodeType"));
|
|
|
70 |
}
|
|
|
71 |
/**
|
|
|
72 |
* Return type metadata object
|
|
|
73 |
*/
|
|
|
74 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
75 |
return typeDesc;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
}
|