

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

    @XmlEnumValue("LeftButton")
    LeftButton("LeftButton"),
    @XmlEnumValue("RightButton")
    RightButton("RightButton"),
    @XmlEnumValue("MiddleButton")
    MiddleButton("MiddleButton"),
    @XmlEnumValue("WheelUp")
    WheelUp("WheelUp"),
    @XmlEnumValue("WheelDown")
    WheelDown("WheelDown"),
    @XmlEnumValue("MouseStateMask")
    MouseStateMask("MouseStateMask");

    private final String value;

    MouseButtonState(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

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

}

