Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 //
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
 // Generated on: 2010.09.03 at 10:11:56 AM MESZ 
 //
 
 
 package net.opengis.xls.v_1_1_0;

Java class for AvoidFeatureType.

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

 <simpleType name="AvoidFeatureType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Highway"/>
     <enumeration value="Tollway"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "AvoidFeatureType")
public enum AvoidFeatureType {


    
Minimize the use of highways.
    @XmlEnumValue("Highway")
    HIGHWAY("Highway"),

    
Minimize tolls.
    @XmlEnumValue("Tollway")
    TOLLWAY("Tollway");
    private final String value;
    AvoidFeatureType(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static AvoidFeatureType fromValue(String v) {
        for (AvoidFeatureType c: AvoidFeatureType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X