public static final class LocalizationParam.DateTimeFormat extends ApiEnumeration<LocalizationParam.DateTimeFormat>
DateTimeFormat
enumeration class lists possible date and time
formatting options. It combines the Unicode CLDR format types - full, long,
medium and short with 3 different presentations - date only, time only and
combined date and time presentation. This enumeration was added in vSphere API
7.0.0.0.
Modifier and Type | Class and Description |
---|---|
static class |
LocalizationParam.DateTimeFormat.Values
Native Java
enum representing this enumeration class. |
Modifier and Type | Field and Description |
---|---|
static LocalizationParam.DateTimeFormat |
FULL_DATE
The date and time value will be formatted as full date, for example 2019 Jan
28, Mon.
|
static LocalizationParam.DateTimeFormat |
FULL_DATE_TIME
The date and time value will be formatted as full date and time, for example
2019 Jan 28, Mon 12:59:01 Z.
|
static LocalizationParam.DateTimeFormat |
FULL_TIME
The date and time value will be formatted as full time, for example 12:59:01
Z.
|
static LocalizationParam.DateTimeFormat |
LONG_DATE
The date and time value will be formatted as long date, for example 2019 Jan
28.
|
static LocalizationParam.DateTimeFormat |
LONG_DATE_TIME
The date and time value will be formatted as long date and time, for example
2019 Jan 28 12:59:01 Z.
|
static LocalizationParam.DateTimeFormat |
LONG_TIME
The date and time value will be formatted as long time, for example 12:59:01
Z.
|
static LocalizationParam.DateTimeFormat |
MED_DATE
The date and time value will be formatted as medium date, for example 2019
Jan 28.
|
static LocalizationParam.DateTimeFormat |
MED_DATE_TIME
The date and time value will be formatted as medium date and time, for example
2019 Jan 28 12:59:01.
|
static LocalizationParam.DateTimeFormat |
MED_TIME
The date and time value will be formatted as medium time, for example
12:59:01.
|
static LocalizationParam.DateTimeFormat |
SHORT_DATE
The date and time value will be formatted as short date, for example
2019-01-28.
|
static LocalizationParam.DateTimeFormat |
SHORT_DATE_TIME
The date and time value will be formatted as short date and time, for example
2019-01-28 12:59.
|
static LocalizationParam.DateTimeFormat |
SHORT_TIME
The date and time value will be formatted as short time, for example
12:59.
|
Modifier and Type | Method and Description |
---|---|
LocalizationParam.DateTimeFormat.Values |
getEnumValue()
Returns a native Java
enum constant representing this enumeration
constant. |
boolean |
isUnknown()
Checks if this enumeration constant is unknown.
|
static LocalizationParam.DateTimeFormat |
valueOf(java.lang.String name)
Returns the enumeration constant for the specified name.
|
static LocalizationParam.DateTimeFormat[] |
values()
Retrieve all enumeration constants pre-defined by this enumeration class.
|
buildNameMap, equals, hashCode, name, toString
public static final LocalizationParam.DateTimeFormat SHORT_DATE
public static final LocalizationParam.DateTimeFormat MED_DATE
public static final LocalizationParam.DateTimeFormat LONG_DATE
public static final LocalizationParam.DateTimeFormat FULL_DATE
public static final LocalizationParam.DateTimeFormat SHORT_TIME
public static final LocalizationParam.DateTimeFormat MED_TIME
public static final LocalizationParam.DateTimeFormat LONG_TIME
public static final LocalizationParam.DateTimeFormat FULL_TIME
public static final LocalizationParam.DateTimeFormat SHORT_DATE_TIME
public static final LocalizationParam.DateTimeFormat MED_DATE_TIME
public static final LocalizationParam.DateTimeFormat LONG_DATE_TIME
public static final LocalizationParam.DateTimeFormat FULL_DATE_TIME
public static LocalizationParam.DateTimeFormat[] values()
Additional instances might exist at runtime, for example to represent a
new constant added to this enumeration class in subsequent version of the
API. Such new constant is represented as instance of LocalizationParam.DateTimeFormat
but is not pre-defined.
null
.public static LocalizationParam.DateTimeFormat valueOf(java.lang.String name)
If the name matches exactly the identifier used to declare an enumeration constant from this enumeration class, the constant in question will be returned.
Otherwise, a new instance of LocalizationParam.DateTimeFormat
will be returned for the
specified name, which will not be one of the pre-defined constant
instances. Such new instance maps to the LocalizationParam.DateTimeFormat.Values._UNKNOWN
enum
constant from the native Java enum
.
name
- The name of the constant to return. Must not be null
.null
.public boolean isUnknown()
valueOf(java.lang.String)
and values()
.true
if this constant is unknown, and false
otherwise.public LocalizationParam.DateTimeFormat.Values getEnumValue()
enum
constant representing this enumeration
constant. The result is useful for usual handling of Java enum
,
for example it can be used in switch
statements.
If this enumeration constant is unknown, then LocalizationParam.DateTimeFormat.Values._UNKNOWN
enum
constant is returned.
The native Java enum
is LocalizationParam.DateTimeFormat.Values
.
enum
constant. Never null
.