Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for HostNetworkInterfaceMediumType.

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

 <simpleType name="HostNetworkInterfaceMediumType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Unknown"/>
     <enumeration value="Ethernet"/>
     <enumeration value="PPP"/>
     <enumeration value="SLIP"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "HostNetworkInterfaceMediumType")
    @XmlEnumValue("Unknown")
    UNKNOWN("Unknown"),
    @XmlEnumValue("Ethernet")
    ETHERNET("Ethernet"),
    PPP("PPP"),
    SLIP("SLIP");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static HostNetworkInterfaceMediumType fromValue(String v) {
        for (HostNetworkInterfaceMediumType c: HostNetworkInterfaceMediumType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X