/**
 * PlaceOrderStatusType.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.style24.core.biz.checkout.base;

public class PlaceOrderStatusType implements java.io.Serializable {
    private String _value_;
    private static java.util.HashMap _table_ = new java.util.HashMap();

    // Constructor
    protected PlaceOrderStatusType(String value) {
        _value_ = value;
        _table_.put(_value_,this);
    }

    public static final String _NOT_YET = "NOT_YET";
    public static final String _OK = "OK";
    public static final String _CANCEL = "CANCEL";
    public static final PlaceOrderStatusType NOT_YET = new PlaceOrderStatusType(_NOT_YET);
    public static final PlaceOrderStatusType OK = new PlaceOrderStatusType(_OK);
    public static final PlaceOrderStatusType CANCEL = new PlaceOrderStatusType(_CANCEL);
    public String getValue() { return _value_;}
    public static PlaceOrderStatusType fromValue(String value)
          throws IllegalArgumentException {
        PlaceOrderStatusType enumeration = (PlaceOrderStatusType)
            _table_.get(value);
        if (enumeration==null) throw new IllegalArgumentException();
        return enumeration;
    }
    public static PlaceOrderStatusType fromString(String value)
          throws IllegalArgumentException {
        return fromValue(value);
    }
    public boolean equals(Object obj) {return (obj == this);}
    public int hashCode() { return toString().hashCode();}
    public String toString() { return _value_;}
    public Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
    public static org.apache.axis.encoding.Serializer getSerializer(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new org.apache.axis.encoding.ser.EnumSerializer(
            _javaType, _xmlType);
    }
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return 
          new org.apache.axis.encoding.ser.EnumDeserializer(
            _javaType, _xmlType);
    }
    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(PlaceOrderStatusType.class);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "placeOrderStatusType"));
    }
    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

}
