org.apache.directory.shared.util
Enum GeneralizedTime.Format

java.lang.Object
  extended by java.lang.Enum<GeneralizedTime.Format>
      extended by org.apache.directory.shared.util.GeneralizedTime.Format
All Implemented Interfaces:
Serializable, Comparable<GeneralizedTime.Format>
Enclosing class:
GeneralizedTime

public static enum GeneralizedTime.Format
extends Enum<GeneralizedTime.Format>

The format of the generalized time.


Enum Constant Summary
YEAR_MONTH_DAY_HOUR
          Time format, minutes and seconds are omitted, excluding fraction.
YEAR_MONTH_DAY_HOUR_FRACTION
          Time format, minutes and seconds are omitted, including fraction.
YEAR_MONTH_DAY_HOUR_MIN
          Time format with minutes, seconds are omitted, excluding fraction.
YEAR_MONTH_DAY_HOUR_MIN_FRACTION
          Time format with minutes seconds are omitted, including fraction.
YEAR_MONTH_DAY_HOUR_MIN_SEC
          Time format with minutes and seconds, excluding fraction.
YEAR_MONTH_DAY_HOUR_MIN_SEC_FRACTION
          Time format with minutes and seconds, including fraction.
 
Method Summary
static GeneralizedTime.Format valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeneralizedTime.Format[] 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

YEAR_MONTH_DAY_HOUR_MIN_SEC

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR_MIN_SEC
Time format with minutes and seconds, excluding fraction.


YEAR_MONTH_DAY_HOUR_MIN_SEC_FRACTION

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR_MIN_SEC_FRACTION
Time format with minutes and seconds, including fraction.


YEAR_MONTH_DAY_HOUR_MIN

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR_MIN
Time format with minutes, seconds are omitted, excluding fraction.


YEAR_MONTH_DAY_HOUR_MIN_FRACTION

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR_MIN_FRACTION
Time format with minutes seconds are omitted, including fraction.


YEAR_MONTH_DAY_HOUR

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR
Time format, minutes and seconds are omitted, excluding fraction.


YEAR_MONTH_DAY_HOUR_FRACTION

public static final GeneralizedTime.Format YEAR_MONTH_DAY_HOUR_FRACTION
Time format, minutes and seconds are omitted, including fraction.

Method Detail

values

public static GeneralizedTime.Format[] 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 (GeneralizedTime.Format c : GeneralizedTime.Format.values())
    System.out.println(c);

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

valueOf

public static GeneralizedTime.Format 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
NullPointerException - if the argument is null


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.