
package utils.org.tempuri.adssoap;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;


/**
 * <p>Java class for CardState.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="CardState">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Normal"/>
 *     &lt;enumeration value="Lost"/>
 *     &lt;enumeration value="RelieveLost"/>
 *     &lt;enumeration value="Logout"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlEnum
public enum CardState {

    @XmlEnumValue("Logout")
    LOGOUT("Logout"),
    @XmlEnumValue("Lost")
    LOST("Lost"),
    @XmlEnumValue("Normal")
    NORMAL("Normal"),
    @XmlEnumValue("RelieveLost")
    RELIEVE_LOST("RelieveLost");
    private final String value;

    CardState(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static CardState fromValue(String v) {
        for (CardState c: CardState.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v.toString());
    }

}

