Enum WeekOfMonthEnum
- java.lang.Object
-
- java.lang.Enum<WeekOfMonthEnum>
-
- eu.datex2.siri14.schema._1_0._1_0.WeekOfMonthEnum
-
- All Implemented Interfaces:
Serializable,Comparable<WeekOfMonthEnum>
public enum WeekOfMonthEnum extends Enum<WeekOfMonthEnum>
Java class for WeekOfMonthEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="WeekOfMonthEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="firstWeekOfMonth"/> <enumeration value="secondWeekOfMonth"/> <enumeration value="thirdWeekOfMonth"/> <enumeration value="fouthWeekOfMonth"/> <enumeration value="fifthWeekOfMonth"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIFTH_WEEK_OF_MONTHFifth week of the month (at most only 3 days and non in February when not a leap year).FIRST_WEEK_OF_MONTHFirst week of the month.FOUTH_WEEK_OF_MONTHFourth week of the month.SECOND_WEEK_OF_MONTHSecond week of the month.THIRD_WEEK_OF_MONTHThird week of the month.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WeekOfMonthEnumfromValue(String v)Stringvalue()static WeekOfMonthEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static WeekOfMonthEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRST_WEEK_OF_MONTH
public static final WeekOfMonthEnum FIRST_WEEK_OF_MONTH
First week of the month.
-
SECOND_WEEK_OF_MONTH
public static final WeekOfMonthEnum SECOND_WEEK_OF_MONTH
Second week of the month.
-
THIRD_WEEK_OF_MONTH
public static final WeekOfMonthEnum THIRD_WEEK_OF_MONTH
Third week of the month.
-
FOUTH_WEEK_OF_MONTH
public static final WeekOfMonthEnum FOUTH_WEEK_OF_MONTH
Fourth week of the month.
-
FIFTH_WEEK_OF_MONTH
public static final WeekOfMonthEnum FIFTH_WEEK_OF_MONTH
Fifth week of the month (at most only 3 days and non in February when not a leap year).
-
-
Method Detail
-
values
public static WeekOfMonthEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WeekOfMonthEnum c : WeekOfMonthEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeekOfMonthEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static WeekOfMonthEnum fromValue(String v)
-
-