Coverage Report - yarfraw.generated.googlebase.elements.GenderEnumeration
 
Classes in this File Line Coverage Branch Coverage Complexity
GenderEnumeration
62% 
0% 
0
 
 1  
 //
 2  
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs 
 3  
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 4  
 // Any modifications to this file will be lost upon recompilation of the source schema. 
 5  
 // Generated on: 2008.06.11 at 12:15:45 AM EDT 
 6  
 //
 7  
 
 8  
 
 9  
 package yarfraw.generated.googlebase.elements;
 10  
 
 11  
 import javax.xml.bind.annotation.XmlEnum;
 12  
 import javax.xml.bind.annotation.XmlEnumValue;
 13  
 import javax.xml.bind.annotation.XmlType;
 14  
 
 15  
 
 16  
 /**
 17  
  * <p>Java class for genderEnumeration.
 18  
  * 
 19  
  * <p>The following schema fragment specifies the expected content contained within this class.
 20  
  * <p>
 21  
  * <pre>
 22  
  * &lt;simpleType name="genderEnumeration">
 23  
  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 24  
  *     &lt;enumeration value="male"/>
 25  
  *     &lt;enumeration value="M"/>
 26  
  *     &lt;enumeration value="female"/>
 27  
  *     &lt;enumeration value="F"/>
 28  
  *   &lt;/restriction>
 29  
  * &lt;/simpleType>
 30  
  * </pre>
 31  
  * 
 32  
  */
 33  12
 @XmlType(name = "genderEnumeration")
 34  
 @XmlEnum
 35  
 public enum GenderEnumeration {
 36  
 
 37  6
     @XmlEnumValue("male")
 38  
     MALE("male"),
 39  6
     M("M"),
 40  6
     @XmlEnumValue("female")
 41  
     FEMALE("female"),
 42  6
     F("F");
 43  
     private final String value;
 44  
 
 45  24
     GenderEnumeration(String v) {
 46  24
         value = v;
 47  24
     }
 48  
 
 49  
     public String value() {
 50  0
         return value;
 51  
     }
 52  
 
 53  
     public static GenderEnumeration fromValue(String v) {
 54  0
         for (GenderEnumeration c: GenderEnumeration.values()) {
 55  0
             if (c.value.equals(v)) {
 56  0
                 return c;
 57  
             }
 58  
         }
 59  0
         throw new IllegalArgumentException(v);
 60  
     }
 61  
 
 62  
 }