This project has retired. For details please refer to its Attic page.
Coverage Report
Coverage Report - org.apache.ws.scout.model.uddi.v2.KeyType
 
Classes in this File Line Coverage Branch Coverage Complexity
KeyType
61%
8/13
0%
0/4
2.333
 
 1  
 //
 2  
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
 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: 2009.07.19 at 09:49:41 PM CDT 
 6  
 //
 7  
 
 8  
 
 9  
 package org.apache.ws.scout.model.uddi.v2;
 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 keyType.
 18  
  * 
 19  
  * <p>The following schema fragment specifies the expected content contained within this class.
 20  
  * <p>
 21  
  * <pre>
 22  
  * &lt;simpleType name="keyType">
 23  
  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
 24  
  *     &lt;enumeration value="businessKey"/>
 25  
  *     &lt;enumeration value="tModelKey"/>
 26  
  *     &lt;enumeration value="serviceKey"/>
 27  
  *     &lt;enumeration value="bindingKey"/>
 28  
  *   &lt;/restriction>
 29  
  * &lt;/simpleType>
 30  
  * </pre>
 31  
  * 
 32  
  */
 33  4
 @XmlType(name = "keyType")
 34  
 @XmlEnum
 35  
 public enum KeyType {
 36  
 
 37  2
     @XmlEnumValue("businessKey")
 38  
     BUSINESS_KEY("businessKey"),
 39  2
     @XmlEnumValue("tModelKey")
 40  
     T_MODEL_KEY("tModelKey"),
 41  2
     @XmlEnumValue("serviceKey")
 42  
     SERVICE_KEY("serviceKey"),
 43  2
     @XmlEnumValue("bindingKey")
 44  
     BINDING_KEY("bindingKey");
 45  
     private final String value;
 46  
 
 47  8
     KeyType(String v) {
 48  8
         value = v;
 49  8
     }
 50  
 
 51  
     public String value() {
 52  0
         return value;
 53  
     }
 54  
 
 55  
     public static KeyType fromValue(String v) {
 56  0
         for (KeyType c: KeyType.values()) {
 57  0
             if (c.value.equals(v)) {
 58  0
                 return c;
 59  
             }
 60  
         }
 61  0
         throw new IllegalArgumentException(v);
 62  
     }
 63  
 
 64  
 }