Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for NATAliasMode.

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

 <simpleType name="NATAliasMode">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="AliasLog"/>
     <enumeration value="AliasProxyOnly"/>
     <enumeration value="AliasUseSamePorts"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "NATAliasMode")
public enum NATAliasMode {
    @XmlEnumValue("AliasLog")
    ALIAS_LOG("AliasLog"),
    @XmlEnumValue("AliasProxyOnly")
    ALIAS_PROXY_ONLY("AliasProxyOnly"),
    @XmlEnumValue("AliasUseSamePorts")
    ALIAS_USE_SAME_PORTS("AliasUseSamePorts");
    private final String value;
    NATAliasMode(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static NATAliasMode fromValue(String v) {
        for (NATAliasMode c: NATAliasMode.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X