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 RunAtLocation.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="RunAtLocation">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="fgsmsServer"/>
18   *     &lt;enumeration value="fgsmsAgent"/>
19   *   &lt;/restriction>
20   * &lt;/simpleType>
21   * </pre>
22   * 
23   */
24  @XmlType(name = "RunAtLocation")
25  @XmlEnum
26  public enum RunAtLocation {
27  
28  
29      /**
30       * Runs at the fgsms server from the context of the SLA Processor
31       * 
32       */
33      @XmlEnumValue("fgsmsServer")
34      FGSMS_SERVER("fgsmsServer"),
35  
36      /**
37       * Runs at the location of the fgsms agent 
38       * 
39       */
40      @XmlEnumValue("fgsmsAgent")
41      FGSMS_AGENT("fgsmsAgent");
42      private final String value;
43  
44      RunAtLocation(String v) {
45          value = v;
46      }
47  
48      public String value() {
49          return value;
50      }
51  
52      public static RunAtLocation fromValue(String v) {
53          for (RunAtLocation c: RunAtLocation.values()) {
54              if (c.value.equals(v)) {
55                  return c;
56              }
57          }
58          throw new IllegalArgumentException(v);
59      }
60  
61  }