Package org.openmuc.jdlms.datatypes
Enum CosemDateFormat.Field
- java.lang.Object
-
- java.lang.Enum<CosemDateFormat.Field>
-
- org.openmuc.jdlms.datatypes.CosemDateFormat.Field
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CosemDateFormat.Field>
- Enclosing interface:
- CosemDateFormat
public static enum CosemDateFormat.Field extends java.lang.Enum<CosemDateFormat.Field>
Fields of the CosemDateFormat.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOCK_STATUS
Set intoCosemDateTime.ClockStatus
.DAY_OF_MONTH
The day of month is in the range [1, 31]DAY_OF_WEEK
The day of week is in the range [1, 7]DEVIATION
The deviation is in the range [-720, 720].HOUR
The hour is in the range [0, 23]HUNDREDTHS
The hundredths is in the range [0, 99]MINUTE
The minute is in the range [0, 59]MONTH
The month is in the range [1, 12]SECOND
The minute is in the range [0, 59]YEAR
Interpreted as a short unsigned.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CosemDateFormat.Field
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CosemDateFormat.Field[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final CosemDateFormat.Field YEAR
Interpreted as a short unsigned.- See Also:
Calendar.YEAR
-
MONTH
public static final CosemDateFormat.Field MONTH
The month is in the range [1, 12]1 is January
- See Also:
Calendar.MONTH
-
DAY_OF_MONTH
public static final CosemDateFormat.Field DAY_OF_MONTH
The day of month is in the range [1, 31]- See Also:
Calendar.DAY_OF_MONTH
-
DAY_OF_WEEK
public static final CosemDateFormat.Field DAY_OF_WEEK
The day of week is in the range [1, 7]1 is Monday
- See Also:
Calendar.DAY_OF_WEEK
-
HOUR
public static final CosemDateFormat.Field HOUR
The hour is in the range [0, 23]- See Also:
Calendar.HOUR_OF_DAY
-
MINUTE
public static final CosemDateFormat.Field MINUTE
The minute is in the range [0, 59]- See Also:
Calendar.MINUTE
-
SECOND
public static final CosemDateFormat.Field SECOND
The minute is in the range [0, 59]- See Also:
Calendar.SECOND
-
HUNDREDTHS
public static final CosemDateFormat.Field HUNDREDTHS
The hundredths is in the range [0, 99]- See Also:
Calendar.MILLISECOND
-
DEVIATION
public static final CosemDateFormat.Field DEVIATION
The deviation is in the range [-720, 720]. Deviation with the value 0x8000 or 32768 means, deviation is not specified.- See Also:
Calendar.ZONE_OFFSET
-
CLOCK_STATUS
public static final CosemDateFormat.Field CLOCK_STATUS
Set intoCosemDateTime.ClockStatus
.
-
-
Method Detail
-
values
public static CosemDateFormat.Field[] 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 (CosemDateFormat.Field c : CosemDateFormat.Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CosemDateFormat.Field 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
-
-