/**
 * ProductOrderStatusType.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 ProductOrderStatusType implements java.io.Serializable {
    private String _value_;
    private static java.util.HashMap _table_ = new java.util.HashMap();

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

    public static final String _PAYMENT_WAITING = "PAYMENT_WAITING";
    public static final String _CANCELED_BY_NOPAYMENT = "CANCELED_BY_NOPAYMENT";
    public static final String _PAYED = "PAYED";
    public static final String _DELIVERING = "DELIVERING";
    public static final String _DELIVERED = "DELIVERED";
    public static final String _PURCHASE_DECIDED = "PURCHASE_DECIDED";
    public static final String _CANCELED = "CANCELED";
    public static final String _RETURNED = "RETURNED";
    public static final String _EXCHANGED = "EXCHANGED";
    public static final ProductOrderStatusType PAYMENT_WAITING = new ProductOrderStatusType(_PAYMENT_WAITING);
    public static final ProductOrderStatusType CANCELED_BY_NOPAYMENT = new ProductOrderStatusType(_CANCELED_BY_NOPAYMENT);
    public static final ProductOrderStatusType PAYED = new ProductOrderStatusType(_PAYED);
    public static final ProductOrderStatusType DELIVERING = new ProductOrderStatusType(_DELIVERING);
    public static final ProductOrderStatusType DELIVERED = new ProductOrderStatusType(_DELIVERED);
    public static final ProductOrderStatusType PURCHASE_DECIDED = new ProductOrderStatusType(_PURCHASE_DECIDED);
    public static final ProductOrderStatusType CANCELED = new ProductOrderStatusType(_CANCELED);
    public static final ProductOrderStatusType RETURNED = new ProductOrderStatusType(_RETURNED);
    public static final ProductOrderStatusType EXCHANGED = new ProductOrderStatusType(_EXCHANGED);
    public String getValue() { return _value_;}
    public static ProductOrderStatusType fromValue(String value)
          throws IllegalArgumentException {
        ProductOrderStatusType enumeration = (ProductOrderStatusType)
            _table_.get(value);
        if (enumeration==null) throw new IllegalArgumentException();
        return enumeration;
    }
    public static ProductOrderStatusType 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(ProductOrderStatusType.class);

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

}
