com.redfin.sitemapgenerator
Enum W3CDateFormat.Pattern

java.lang.Object
  extended by java.lang.Enum<W3CDateFormat.Pattern>
      extended by com.redfin.sitemapgenerator.W3CDateFormat.Pattern
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<W3CDateFormat.Pattern>
Enclosing class:
W3CDateFormat

public static enum W3CDateFormat.Pattern
extends java.lang.Enum<W3CDateFormat.Pattern>

The six patterns defined by W3C, plus AUTO configuration


Enum Constant Summary
AUTO
          Automatically compute the right pattern to use
DAY
          "yyyy-MM-dd"
MILLISECOND
          "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
MINUTE
          "yyyy-MM-dd'T'HH:mmZ"
MONTH
          "yyyy-MM"
SECOND
          "yyyy-MM-dd'T'HH:mm:ssZ"
YEAR
          "yyyy"
 
Method Summary
static W3CDateFormat.Pattern valueOf(java.lang.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.
 
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

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.