Package cz.jiripinkas.jsitemapgenerator
Enum W3CDateFormat.Pattern
- java.lang.Object
-
- java.lang.Enum<W3CDateFormat.Pattern>
-
- cz.jiripinkas.jsitemapgenerator.W3CDateFormat.Pattern
-
- All Implemented Interfaces:
Serializable
,Comparable<W3CDateFormat.Pattern>
- Enclosing class:
- W3CDateFormat
public static enum W3CDateFormat.Pattern extends Enum<W3CDateFormat.Pattern>
The six patterns defined by W3C, plusAUTO
configuration
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static W3CDateFormat.Pattern
valueOf(String name)
Returns the enum constant of this type with the specified name.static W3CDateFormat.Pattern[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final W3CDateFormat.Pattern MILLISECOND
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"
-
SECOND
public static final W3CDateFormat.Pattern SECOND
"yyyy-MM-dd'T'HH:mm:ssZ"
-
MINUTE
public static final W3CDateFormat.Pattern MINUTE
"yyyy-MM-dd'T'HH:mmZ"
-
DAY
public static final W3CDateFormat.Pattern DAY
"yyyy-MM-dd"
-
MONTH
public static final W3CDateFormat.Pattern MONTH
"yyyy-MM"
-
YEAR
public static final W3CDateFormat.Pattern YEAR
"yyyy"
-
AUTO
public static final W3CDateFormat.Pattern AUTO
Automatically compute the right pattern to use
-
-
Method Detail
-
values
public static W3CDateFormat.Pattern[] 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 (W3CDateFormat.Pattern c : W3CDateFormat.Pattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static W3CDateFormat.Pattern valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-