public enum DateFormatType extends Enum<DateFormatType>
Enum Constant and Description |
---|
XEP_0082_DATE_PROFILE |
XEP_0082_DATETIME_MILLIS_PROFILE |
XEP_0082_DATETIME_PROFILE |
XEP_0082_TIME_MILLIS_PROFILE |
XEP_0082_TIME_MILLIS_ZONE_PROFILE |
XEP_0082_TIME_PROFILE |
XEP_0082_TIME_ZONE_PROFILE |
XEP_0091_DATETIME |
Modifier and Type | Method and Description |
---|---|
SimpleDateFormat |
createFormatter()
Create a
SimpleDateFormat object with the format defined by getFormatString() . |
String |
getFormatString()
Get the format string as defined in either XEP-0082 or XEP-0091.
|
static DateFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormatType XEP_0082_DATE_PROFILE
public static final DateFormatType XEP_0082_DATETIME_PROFILE
public static final DateFormatType XEP_0082_DATETIME_MILLIS_PROFILE
public static final DateFormatType XEP_0082_TIME_PROFILE
public static final DateFormatType XEP_0082_TIME_ZONE_PROFILE
public static final DateFormatType XEP_0082_TIME_MILLIS_PROFILE
public static final DateFormatType XEP_0082_TIME_MILLIS_ZONE_PROFILE
public static final DateFormatType XEP_0091_DATETIME
public static DateFormatType[] values()
for (DateFormatType c : DateFormatType.values()) System.out.println(c);
public static DateFormatType 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 getFormatString()
public SimpleDateFormat createFormatter()
SimpleDateFormat
object with the format defined by getFormatString()
.Copyright © 2003-2007 Jive Software.