View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.common;
3   
4   import javax.xml.bind.annotation.XmlEnum;
5   import javax.xml.bind.annotation.XmlEnumValue;
6   import javax.xml.bind.annotation.XmlType;
7   
8   
9   /**
10   * <p>Java class for AgentActionStatus.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="AgentActionStatus">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="New"/>
18   *     &lt;enumeration value="Received"/>
19   *     &lt;enumeration value="Processing"/>
20   *     &lt;enumeration value="Complete"/>
21   *   &lt;/restriction>
22   * &lt;/simpleType>
23   * </pre>
24   * 
25   */
26  @XmlType(name = "AgentActionStatus")
27  @XmlEnum
28  public enum AgentActionStatus {
29  
30      @XmlEnumValue("New")
31      NEW("New"),
32      @XmlEnumValue("Received")
33      RECEIVED("Received"),
34      @XmlEnumValue("Processing")
35      PROCESSING("Processing"),
36      @XmlEnumValue("Complete")
37      COMPLETE("Complete");
38      private final String value;
39  
40      AgentActionStatus(String v) {
41          value = v;
42      }
43  
44      public String value() {
45          return value;
46      }
47  
48      public static AgentActionStatus fromValue(String v) {
49          for (AgentActionStatus c: AgentActionStatus.values()) {
50              if (c.value.equals(v)) {
51                  return c;
52              }
53          }
54          throw new IllegalArgumentException(v);
55      }
56  
57  }