Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for NetworkAttachmentType.

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

 <simpleType name="NetworkAttachmentType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="NAT"/>
     <enumeration value="Bridged"/>
     <enumeration value="Internal"/>
     <enumeration value="HostOnly"/>
     <enumeration value="Generic"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "NetworkAttachmentType")
public enum NetworkAttachmentType {
    @XmlEnumValue("Null")
    NULL("Null"),
    NAT("NAT"),
    @XmlEnumValue("Bridged")
    BRIDGED("Bridged"),
    @XmlEnumValue("Internal")
    INTERNAL("Internal"),
    @XmlEnumValue("HostOnly")
    HOST_ONLY("HostOnly"),
    @XmlEnumValue("Generic")
    GENERIC("Generic");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static NetworkAttachmentType fromValue(String v) {
        for (NetworkAttachmentType c: NetworkAttachmentType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X