Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.opendope.questions;
 

Java class for appearanceType.

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

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