Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for NetworkAdapterPromiscModePolicy.

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

 <simpleType name="NetworkAdapterPromiscModePolicy">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Deny"/>
     <enumeration value="AllowNetwork"/>
     <enumeration value="AllowAll"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "NetworkAdapterPromiscModePolicy")
    @XmlEnumValue("Deny")
    DENY("Deny"),
    @XmlEnumValue("AllowNetwork")
    ALLOW_NETWORK("AllowNetwork"),
    @XmlEnumValue("AllowAll")
    ALLOW_ALL("AllowAll");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static NetworkAdapterPromiscModePolicy fromValue(String v) {
        for (NetworkAdapterPromiscModePolicy c: NetworkAdapterPromiscModePolicy.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X