Coverage Report - yarfraw.generated.googlebase.elements.PriceTypeEnumeration
 
Classes in this File Line Coverage Branch Coverage Complexity
PriceTypeEnumeration
55% 
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 priceTypeEnumeration.
 18  
  * 
 19  
  * <p>The following schema fragment specifies the expected content contained within this class.
 20  
  * <p>
 21  
  * <pre>
 22  
  * &lt;simpleType name="priceTypeEnumeration">
 23  
  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 24  
  *     &lt;enumeration value="negotiable"/>
 25  
  *     &lt;enumeration value="starting"/>
 26  
  *   &lt;/restriction>
 27  
  * &lt;/simpleType>
 28  
  * </pre>
 29  
  * 
 30  
  */
 31  12
 @XmlType(name = "priceTypeEnumeration")
 32  
 @XmlEnum
 33  
 public enum PriceTypeEnumeration {
 34  
 
 35  6
     @XmlEnumValue("negotiable")
 36  
     NEGOTIABLE("negotiable"),
 37  6
     @XmlEnumValue("starting")
 38  
     STARTING("starting");
 39  
     private final String value;
 40  
 
 41  12
     PriceTypeEnumeration(String v) {
 42  12
         value = v;
 43  12
     }
 44  
 
 45  
     public String value() {
 46  0
         return value;
 47  
     }
 48  
 
 49  
     public static PriceTypeEnumeration fromValue(String v) {
 50  0
         for (PriceTypeEnumeration c: PriceTypeEnumeration.values()) {
 51  0
             if (c.value.equals(v)) {
 52  0
                 return c;
 53  
             }
 54  
         }
 55  0
         throw new IllegalArgumentException(v);
 56  
     }
 57  
 
 58  
 }