public enum MonthsType extends Enum<MonthsType>
Java class for monthsType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="monthsType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="January"/> <enumeration value="February"/> <enumeration value="March"/> <enumeration value="April"/> <enumeration value="May"/> <enumeration value="June"/> <enumeration value="July"/> <enumeration value="August"/> <enumeration value="September"/> <enumeration value="October"/> <enumeration value="November"/> <enumeration value="December"/> </restriction> </simpleType>
Enum Constant and Description |
---|
APRIL |
AUGUST |
DECEMBER |
FEBRUARY |
JANUARY |
JULY |
JUNE |
MARCH |
MAY |
NOVEMBER |
OCTOBER |
SEPTEMBER |
Modifier and Type | Method and Description |
---|---|
static MonthsType |
fromValue(String v) |
String |
value() |
static MonthsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonthsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonthsType JANUARY
public static final MonthsType FEBRUARY
public static final MonthsType MARCH
public static final MonthsType APRIL
public static final MonthsType MAY
public static final MonthsType JUNE
public static final MonthsType JULY
public static final MonthsType AUGUST
public static final MonthsType SEPTEMBER
public static final MonthsType OCTOBER
public static final MonthsType NOVEMBER
public static final MonthsType DECEMBER
public static MonthsType[] values()
for (MonthsType c : MonthsType.values()) System.out.println(c);
public static MonthsType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public static MonthsType fromValue(String v)