Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for ClipboardMode.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="ClipboardMode">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Disabled"/>
     <enumeration value="HostToGuest"/>
     <enumeration value="GuestToHost"/>
     <enumeration value="Bidirectional"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "ClipboardMode")
public enum ClipboardMode {
    @XmlEnumValue("Disabled")
    DISABLED("Disabled"),
    @XmlEnumValue("HostToGuest")
    HOST_TO_GUEST("HostToGuest"),
    @XmlEnumValue("GuestToHost")
    GUEST_TO_HOST("GuestToHost"),
    @XmlEnumValue("Bidirectional")
    BIDIRECTIONAL("Bidirectional");
    private final String value;
    ClipboardMode(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static ClipboardMode fromValue(String v) {
        for (ClipboardMode c: ClipboardMode.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X