

/**
 * 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 = "AudioDriverType")
@XmlEnum
public enum AudioDriverType {

    @XmlEnumValue("Null")
    Null("Null"),
    @XmlEnumValue("WinMM")
    WinMM("WinMM"),
    @XmlEnumValue("OSS")
    OSS("OSS"),
    @XmlEnumValue("ALSA")
    ALSA("ALSA"),
    @XmlEnumValue("DirectSound")
    DirectSound("DirectSound"),
    @XmlEnumValue("CoreAudio")
    CoreAudio("CoreAudio"),
    @XmlEnumValue("MMPM")
    MMPM("MMPM"),
    @XmlEnumValue("Pulse")
    Pulse("Pulse"),
    @XmlEnumValue("SolAudio")
    SolAudio("SolAudio");

    private final String value;

    AudioDriverType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

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

}

