This project has retired. For details please refer to its Attic page.
OperatorStatusType xref
View Javadoc
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 at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * 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 and
14   * limitations under the License.
15   *
16   */
17  
18  
19  package org.uddi.repl_v3;
20  
21  import java.io.Serializable;
22  
23  import javax.xml.bind.annotation.XmlEnum;
24  import javax.xml.bind.annotation.XmlEnumValue;
25  import javax.xml.bind.annotation.XmlType;
26  
27  
28  /**
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   * &lt;simpleType name="operatorStatus_type">
35   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
36   *     &lt;maxLength value="16"/>
37   *     &lt;enumeration value="new"/>
38   *     &lt;enumeration value="normal"/>
39   *     &lt;enumeration value="resigned"/>
40   *   &lt;/restriction>
41   * &lt;/simpleType>
42   * </pre>
43   * 
44   */
45  @XmlType(name = "operatorStatus_type")
46  @XmlEnum
47  public enum OperatorStatusType implements Serializable{
48  
49      @XmlEnumValue("new")
50      NEW("new"),
51      @XmlEnumValue("normal")
52      NORMAL("normal"),
53      @XmlEnumValue("resigned")
54      RESIGNED("resigned");
55      private final String value;
56  
57      OperatorStatusType(String v) {
58          value = v;
59      }
60  
61      public String value() {
62          return value;
63      }
64  
65      public static OperatorStatusType fromValue(String v) {
66          for (OperatorStatusType c: OperatorStatusType.values()) {
67              if (c.value.equals(v)) {
68                  return c;
69              }
70          }
71          throw new IllegalArgumentException(v);
72      }
73  
74  }