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 NamedPlaceClassification.

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

 <simpleType name="NamedPlaceClassification">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="CountrySubdivision"/>
     <enumeration value="CountrySecondarySubdivision"/>
     <enumeration value="Municipality"/>
     <enumeration value="MunicipalitySubdivision"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "NamedPlaceClassification")
    @XmlEnumValue("CountrySubdivision")
    COUNTRY_SUBDIVISION("CountrySubdivision"),
    @XmlEnumValue("CountrySecondarySubdivision")
    COUNTRY_SECONDARY_SUBDIVISION("CountrySecondarySubdivision"),
    @XmlEnumValue("Municipality")
    MUNICIPALITY("Municipality"),
    @XmlEnumValue("MunicipalitySubdivision")
    MUNICIPALITY_SUBDIVISION("MunicipalitySubdivision");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static NamedPlaceClassification fromValue(String v) {
        for (NamedPlaceClassification c: NamedPlaceClassification.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X