|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DateFormatType> org.jivesoftware.smack.util.DateFormatType
public enum DateFormatType
Defines the various date and time profiles used in XMPP along with their associated formats.
Method Summary | |
---|---|
java.text.SimpleDateFormat |
createFormatter()
Create a SimpleDateFormat object with the format defined by getFormatString() . |
java.lang.String |
getFormatString()
Get the format string as defined in either XEP-0082 or XEP-0091. |
static DateFormatType |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static DateFormatType[] values()
for (DateFormatType c : DateFormatType.values()) System.out.println(c);
public static DateFormatType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getFormatString()
public java.text.SimpleDateFormat createFormatter()
SimpleDateFormat
object with the format defined by getFormatString()
.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |