Package org.opencms.acacia.shared
Enum I_CmsSerialDateValue.Month
- java.lang.Object
-
- java.lang.Enum<I_CmsSerialDateValue.Month>
-
- org.opencms.acacia.shared.I_CmsSerialDateValue.Month
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<I_CmsSerialDateValue.Month>
- Enclosing interface:
- I_CmsSerialDateValue
public static enum I_CmsSerialDateValue.Month extends java.lang.Enum<I_CmsSerialDateValue.Month>
Months as enumeration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaximalDay()
Returns the (maximal) number of days the month can have.static I_CmsSerialDateValue.Month
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static I_CmsSerialDateValue.Month[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JANUARY
public static final I_CmsSerialDateValue.Month JANUARY
January
-
FEBRUARY
public static final I_CmsSerialDateValue.Month FEBRUARY
February
-
MARCH
public static final I_CmsSerialDateValue.Month MARCH
March
-
APRIL
public static final I_CmsSerialDateValue.Month APRIL
April
-
MAY
public static final I_CmsSerialDateValue.Month MAY
May
-
JUNE
public static final I_CmsSerialDateValue.Month JUNE
June
-
JULY
public static final I_CmsSerialDateValue.Month JULY
July
-
AUGUST
public static final I_CmsSerialDateValue.Month AUGUST
August
-
SEPTEMBER
public static final I_CmsSerialDateValue.Month SEPTEMBER
September
-
OCTOBER
public static final I_CmsSerialDateValue.Month OCTOBER
October
-
NOVEMBER
public static final I_CmsSerialDateValue.Month NOVEMBER
November
-
DECEMBER
public static final I_CmsSerialDateValue.Month DECEMBER
December
-
-
Method Detail
-
values
public static I_CmsSerialDateValue.Month[] 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 (I_CmsSerialDateValue.Month c : I_CmsSerialDateValue.Month.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static I_CmsSerialDateValue.Month valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMaximalDay
public int getMaximalDay()
Returns the (maximal) number of days the month can have. I.e., for February 29 and for the other months either 30 or 31 depending on the month.- Returns:
- the (maximal) number of days the month can have.
-
-