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