Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for SymlinkType.

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

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