Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for FileSeekType.

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

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