Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for BandwidthGroupType.

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

 <simpleType name="BandwidthGroupType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="Disk"/>
     <enumeration value="Network"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "BandwidthGroupType")
public enum BandwidthGroupType {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("Disk")
    DISK("Disk"),
    @XmlEnumValue("Network")
    NETWORK("Network");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static BandwidthGroupType fromValue(String v) {
        for (BandwidthGroupType c: BandwidthGroupType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X