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: 2011.02.20 at 01:29:24 PM MEZ 
 //
 
 
 package net.opengis.xls.v_1_1_0;

Java class for NearestCriterionType.

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

 <simpleType name="NearestCriterionType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Proximity"/>
     <enumeration value="Fastest"/>
     <enumeration value="Shortest"/>
     <enumeration value="Easiest"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "NearestCriterionType")
public enum NearestCriterionType {
    @XmlEnumValue("Proximity")
    PROXIMITY("Proximity"),
    @XmlEnumValue("Fastest")
    FASTEST("Fastest"),
    @XmlEnumValue("Shortest")
    SHORTEST("Shortest"),
    @XmlEnumValue("Easiest")
    EASIEST("Easiest");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static NearestCriterionType fromValue(String v) {
        for (NearestCriterionType c: NearestCriterionType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X