|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ISOFormat>
ezvcard.util.ISOFormat
public enum ISOFormat
Represents the various ISO8601 date/time formats that vCard dates can be represented as.
Enum Constant Summary | |
---|---|
DATE_BASIC
Example: 20120701 |
|
DATE_EXTENDED
Example: 2012-07-01 |
|
HCARD_TIME_TAG
Example: 2012-07-01T14:21:10-0500 |
|
TIME_BASIC
Example: 20120701T142110-0500 |
|
TIME_EXTENDED
Example: 2012-07-01T14:21:10-05:00 |
|
UTC_TIME_BASIC
Example: 20120701T192110Z |
|
UTC_TIME_EXTENDED
Example: 2012-07-01T19:21:10Z |
Method Summary | |
---|---|
DateFormat |
getFormatDateFormat()
Builds a DateFormat object for formatting dates in this ISO
format. |
DateFormat |
getParseDateFormat()
Builds a DateFormat object for parsing dates in this ISO format. |
boolean |
matches(String dateStr)
Determines whether a date string is in this ISO format. |
static ISOFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ISOFormat[] |
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 ISOFormat DATE_BASIC
public static final ISOFormat DATE_EXTENDED
public static final ISOFormat TIME_BASIC
public static final ISOFormat TIME_EXTENDED
public static final ISOFormat UTC_TIME_BASIC
public static final ISOFormat UTC_TIME_EXTENDED
public static final ISOFormat HCARD_TIME_TAG
Method Detail |
---|
public static ISOFormat[] values()
for (ISOFormat c : ISOFormat.values()) System.out.println(c);
public static ISOFormat valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean matches(String dateStr)
dateStr
- the date string
public DateFormat getParseDateFormat()
DateFormat
object for parsing dates in this ISO format.
DateFormat
objectpublic DateFormat getFormatDateFormat()
DateFormat
object for formatting dates in this ISO
format.
DateFormat
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |