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

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

    public static final String _NOT_YET = "NOT_YET";
    public static final String _HOLDBACK = "HOLDBACK";
    public static final String _RELEASED = "RELEASED";
    public static final HoldbackStatusType NOT_YET = new HoldbackStatusType(_NOT_YET);
    public static final HoldbackStatusType HOLDBACK = new HoldbackStatusType(_HOLDBACK);
    public static final HoldbackStatusType RELEASED = new HoldbackStatusType(_RELEASED);
    public String getValue() { return _value_;}
    public static HoldbackStatusType fromValue(String value)
          throws IllegalArgumentException {
        HoldbackStatusType enumeration = (HoldbackStatusType)
            _table_.get(value);
        if (enumeration==null) throw new IllegalArgumentException();
        return enumeration;
    }
    public static HoldbackStatusType 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(HoldbackStatusType.class);

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

}
