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, v2.2.11 
 // 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: 2015.04.16 at 07:39:09 AM CEST 
 //
 
 
 package net.opengis.iso19139.gmd.v_20060504;

Java class for MD_ObligationCode_Type.

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

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