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 */17package org.uddi.api_v2;
1819import javax.xml.bind.annotation.XmlEnum;
20import javax.xml.bind.annotation.XmlEnumValue;
21import javax.xml.bind.annotation.XmlType;
222324/**25 * <p>Java class for keyType.26 * 27 * <p>The following schema fragment specifies the expected content contained within this class.28 * <p>29 * <pre>30 * <simpleType name="keyType">31 * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">32 * <enumeration value="businessKey"/>33 * <enumeration value="tModelKey"/>34 * <enumeration value="serviceKey"/>35 * <enumeration value="bindingKey"/>36 * </restriction>37 * </simpleType>38 * </pre>39 * 40 */41 @XmlType(name = "keyType")
42 @XmlEnum
43public enum KeyType {
4445 @XmlEnumValue("businessKey")
46 BUSINESS_KEY("businessKey"),
47 @XmlEnumValue("tModelKey")
48 T_MODEL_KEY("tModelKey"),
49 @XmlEnumValue("serviceKey")
50 SERVICE_KEY("serviceKey"),
51 @XmlEnumValue("bindingKey")
52 BINDING_KEY("bindingKey");
53privatefinal String value;
5455KeyType(String v) {
56 value = v;
57 }
5859public String value() {
60return value;
61 }
6263publicstaticKeyType fromValue(String v) {
64for (KeyType c: KeyType.values()) {
65if (c.value.equals(v)) {
66return c;
67 }
68 }
69thrownew IllegalArgumentException(v);
70 }
7172 }