View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.policyconfiguration;
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 MessageChoice.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="MessageChoice">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="Request"/>
18   *     &lt;enumeration value="Response"/>
19   *   &lt;/restriction>
20   * &lt;/simpleType>
21   * </pre>
22   * 
23   */
24  @XmlType(name = "MessageChoice")
25  @XmlEnum
26  public enum MessageChoice {
27  
28  
29      /**
30       * 
31       * process on the xml request
32       * 			
33       * 
34       */
35      @XmlEnumValue("Request")
36      REQUEST("Request"),
37  
38      /**
39       * 
40       * process on the xml response
41       * 			
42       * 
43       */
44      @XmlEnumValue("Response")
45      RESPONSE("Response");
46      private final String value;
47  
48      MessageChoice(String v) {
49          value = v;
50      }
51  
52      public String value() {
53          return value;
54      }
55  
56      public static MessageChoice fromValue(String v) {
57          for (MessageChoice c: MessageChoice.values()) {
58              if (c.value.equals(v)) {
59                  return c;
60              }
61          }
62          throw new IllegalArgumentException(v);
63      }
64  
65  }