View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.automatedreportingservice;
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 monthnames.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="monthnames">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="Janurary"/>
18   *     &lt;enumeration value="Feburary"/>
19   *     &lt;enumeration value="March"/>
20   *     &lt;enumeration value="April"/>
21   *     &lt;enumeration value="May"/>
22   *     &lt;enumeration value="June"/>
23   *     &lt;enumeration value="July"/>
24   *     &lt;enumeration value="August"/>
25   *     &lt;enumeration value="September"/>
26   *     &lt;enumeration value="October"/>
27   *     &lt;enumeration value="November"/>
28   *     &lt;enumeration value="December"/>
29   *   &lt;/restriction>
30   * &lt;/simpleType>
31   * </pre>
32   * 
33   */
34  @XmlType(name = "monthnames")
35  @XmlEnum
36  public enum Monthnames {
37  
38      @XmlEnumValue("Janurary")
39      JANURARY("Janurary"),
40      @XmlEnumValue("Feburary")
41      FEBURARY("Feburary"),
42      @XmlEnumValue("March")
43      MARCH("March"),
44      @XmlEnumValue("April")
45      APRIL("April"),
46      @XmlEnumValue("May")
47      MAY("May"),
48      @XmlEnumValue("June")
49      JUNE("June"),
50      @XmlEnumValue("July")
51      JULY("July"),
52      @XmlEnumValue("August")
53      AUGUST("August"),
54      @XmlEnumValue("September")
55      SEPTEMBER("September"),
56      @XmlEnumValue("October")
57      OCTOBER("October"),
58      @XmlEnumValue("November")
59      NOVEMBER("November"),
60      @XmlEnumValue("December")
61      DECEMBER("December");
62      private final String value;
63  
64      Monthnames(String v) {
65          value = v;
66      }
67  
68      public String value() {
69          return value;
70      }
71  
72      public static Monthnames fromValue(String v) {
73          for (Monthnames c: Monthnames.values()) {
74              if (c.value.equals(v)) {
75                  return c;
76              }
77          }
78          throw new IllegalArgumentException(v);
79      }
80  
81  }