org.mycore.datamodel.metadata
Enum MCRMetaISO8601Date.IsoFormat

java.lang.Object
  extended by java.lang.Enum<MCRMetaISO8601Date.IsoFormat>
      extended by org.mycore.datamodel.metadata.MCRMetaISO8601Date.IsoFormat
All Implemented Interfaces:
Serializable, Comparable<MCRMetaISO8601Date.IsoFormat>
Enclosing class:
MCRMetaISO8601Date

public static enum MCRMetaISO8601Date.IsoFormat
extends Enum<MCRMetaISO8601Date.IsoFormat>


Enum Constant Summary
COMPLETE
           
COMPLETE_HH_MM
           
COMPLETE_HH_MM_SS
           
COMPLETE_HH_MM_SS_SSS
           
YEAR
           
YEAR_MONTH
           
 
Field Summary
static String F_COMPLETE
           
static String F_COMPLETE_HH_MM
           
static String F_COMPLETE_HH_MM_SS
           
static String F_COMPLETE_HH_MM_SS_SSS
           
static String F_YEAR
           
static String F_YEAR_MONTH
           
 
Method Summary
static MCRMetaISO8601Date.IsoFormat getFormat(String format)
           
 String toString()
           
static MCRMetaISO8601Date.IsoFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MCRMetaISO8601Date.IsoFormat[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YEAR

public static final MCRMetaISO8601Date.IsoFormat YEAR

YEAR_MONTH

public static final MCRMetaISO8601Date.IsoFormat YEAR_MONTH

COMPLETE

public static final MCRMetaISO8601Date.IsoFormat COMPLETE

COMPLETE_HH_MM

public static final MCRMetaISO8601Date.IsoFormat COMPLETE_HH_MM

COMPLETE_HH_MM_SS

public static final MCRMetaISO8601Date.IsoFormat COMPLETE_HH_MM_SS

COMPLETE_HH_MM_SS_SSS

public static final MCRMetaISO8601Date.IsoFormat COMPLETE_HH_MM_SS_SSS
Field Detail

F_YEAR

public static final String F_YEAR
See Also:
Constant Field Values

F_YEAR_MONTH

public static final String F_YEAR_MONTH
See Also:
Constant Field Values

F_COMPLETE

public static final String F_COMPLETE
See Also:
Constant Field Values

F_COMPLETE_HH_MM

public static final String F_COMPLETE_HH_MM
See Also:
Constant Field Values

F_COMPLETE_HH_MM_SS

public static final String F_COMPLETE_HH_MM_SS
See Also:
Constant Field Values

F_COMPLETE_HH_MM_SS_SSS

public static final String F_COMPLETE_HH_MM_SS_SSS
See Also:
Constant Field Values
Method Detail

values

public static final MCRMetaISO8601Date.IsoFormat[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MCRMetaISO8601Date.IsoFormat c : MCRMetaISO8601Date.IsoFormat.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MCRMetaISO8601Date.IsoFormat 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 name

toString

public String toString()
Overrides:
toString in class Enum<MCRMetaISO8601Date.IsoFormat>

getFormat

public static MCRMetaISO8601Date.IsoFormat getFormat(String format)