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.repl_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 operatorStatus_type.30 * 31 * <p>The following schema fragment specifies the expected content contained within this class.32 * <p>33 * <pre>34 * <simpleType name="operatorStatus_type">35 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">36 * <maxLength value="16"/>37 * <enumeration value="new"/>38 * <enumeration value="normal"/>39 * <enumeration value="resigned"/>40 * </restriction>41 * </simpleType>42 * </pre>43 * 44 */45 @XmlType(name = "operatorStatus_type")
46 @XmlEnum
47public enum OperatorStatusTypeimplements Serializable{
4849 @XmlEnumValue("new")
50 NEW("new"),
51 @XmlEnumValue("normal")
52 NORMAL("normal"),
53 @XmlEnumValue("resigned")
54 RESIGNED("resigned");
55privatefinal String value;
5657OperatorStatusType(String v) {
58 value = v;
59 }
6061public String value() {
62return value;
63 }
6465publicstaticOperatorStatusType fromValue(String v) {
66for (OperatorStatusType c: OperatorStatusType.values()) {
67if (c.value.equals(v)) {
68return c;
69 }
70 }
71thrownew IllegalArgumentException(v);
72 }
7374 }