

/**
 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
 * 
 * Sun Microsystems, Inc. confidential
 * All rights reserved
 *
 * This file is autogenerated by glue-jaxws.xsl, DO NOT EDIT! 
 */

package com.sun.xml.ws.commons.virtualbox;

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

@XmlType(name = "USBDeviceState")
@XmlEnum
public enum USBDeviceState {

    @XmlEnumValue("NotSupported")
    NotSupported("NotSupported"),
    @XmlEnumValue("Unavailable")
    Unavailable("Unavailable"),
    @XmlEnumValue("Busy")
    Busy("Busy"),
    @XmlEnumValue("Available")
    Available("Available"),
    @XmlEnumValue("Held")
    Held("Held"),
    @XmlEnumValue("Captured")
    Captured("Captured");

    private final String value;

    USBDeviceState(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

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

}

