1/*2 * Copyright 2001-2008 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 *16 */171819package org.uddi.api_v3;
2021import java.io.Serializable;
2223import javax.xml.bind.annotation.XmlEnum;
24import javax.xml.bind.annotation.XmlEnumValue;
25import javax.xml.bind.annotation.XmlType;
262728/**29 * <p>Java class for keyType.30 * 31 * <p>The following schema fragment specifies the expected content contained within this class.32 * <p>33 * <pre>34 * <simpleType name="keyType">35 * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">36 * <enumeration value="businessKey"/>37 * <enumeration value="tModelKey"/>38 * <enumeration value="serviceKey"/>39 * <enumeration value="bindingKey"/>40 * <enumeration value="subscriptionKey"/>41 * </restriction>42 * </simpleType>43 * </pre>44 * 45 */46 @XmlType(name = "keyType")
47 @XmlEnum
48public enum KeyTypeimplements Serializable{
4950 @XmlEnumValue("businessKey")
51 BUSINESS_KEY("businessKey"),
52 @XmlEnumValue("tModelKey")
53 T_MODEL_KEY("tModelKey"),
54 @XmlEnumValue("serviceKey")
55 SERVICE_KEY("serviceKey"),
56 @XmlEnumValue("bindingKey")
57 BINDING_KEY("bindingKey"),
58 @XmlEnumValue("subscriptionKey")
59 SUBSCRIPTION_KEY("subscriptionKey");
60privatefinal String value;
6162KeyType(String v) {
63 value = v;
64 }
6566public String value() {
67return value;
68 }
6970publicstaticKeyType fromValue(String v) {
71for (KeyType c: KeyType.values()) {
72if (c.value.equals(v)) {
73return c;
74 }
75 }
76thrownew IllegalArgumentException(v);
77 }
7879 }