net.sf.mpxj
Enum ProjectDateFormat

java.lang.Object
  extended by java.lang.Enum<ProjectDateFormat>
      extended by net.sf.mpxj.ProjectDateFormat
All Implemented Interfaces:
Serializable, Comparable<ProjectDateFormat>, MpxjEnum

public enum ProjectDateFormat
extends Enum<ProjectDateFormat>
implements MpxjEnum

Instances of this class represent enumerated date format values.


Enum Constant Summary
DD
          This format represents dates in the form 23.
DD_MM
          This format represents dates in the form 25/5.
DD_MM_YY
          This format represents dates in the form 25/05/98.
DD_MM_YY_HH_MM
          This format represents dates in the form 25/12/98 12:56.
DD_MM_YYYY
          This format represents dates in the form 25/05/1998.
DD_MMM
          This format represents dates in the form 25 Aug.
DD_MMM_HH_MM
          This format represents dates in the form 24 Nov 12:56.
DD_MMM_YY
          This format represents dates in the form 25 Aug '98.
DD_MMMMM
          This format represents dates in the form 25 September.
DD_MMMMM_YYYY
          This format represents dates in the form 13 December 2002.
DD_MMMMM_YYYY_HH_MM
          This format represents dates in the form 13 December 2002 12:56.
DD_WWW
          This format represents dates in the form 5/W25.
DD_WWW_YY_HH_MM
          This format represents dates in the form 5/W25/98 12:56.
EEE_DD
          This format represents dates in the form Wed 05.
EEE_DD_MM
          This format represents dates in the form Wed 25/5.
EEE_DD_MM_YY
          This format represents dates in the form Wed 25/05/98.
EEE_DD_MM_YY_HH_MM
          This format represents dates in the form Thu 25/05/98 12:56.
EEE_DD_MMM
          This format represents dates in the form Wed 23 Mar..
EEE_DD_MMM_YY
          This format represents dates in the form Wed 25 Mar '98.
EEE_HH_MM
          This format represents dates in the form Wed 12:56.
HH_MM
          This format represents dates in the form 12:56.
 
Method Summary
static ProjectDateFormat getInstance(int type)
          Retrieve an instance of the enum based on its int value.
static ProjectDateFormat getInstance(Number type)
          Retrieve an instance of the enum based on its int value.
 int getValue()
          Accessor method used to retrieve the numeric representation of the enum.
 String toString()
          Returns a string representation of the date format type to be used as part of an MPX file.
static ProjectDateFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProjectDateFormat[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DD_MM_YY_HH_MM

public static final ProjectDateFormat DD_MM_YY_HH_MM
This format represents dates in the form 25/12/98 12:56.


DD_MM_YY

public static final ProjectDateFormat DD_MM_YY
This format represents dates in the form 25/05/98.


DD_MMMMM_YYYY_HH_MM

public static final ProjectDateFormat DD_MMMMM_YYYY_HH_MM
This format represents dates in the form 13 December 2002 12:56.


DD_MMMMM_YYYY

public static final ProjectDateFormat DD_MMMMM_YYYY
This format represents dates in the form 13 December 2002.


DD_MMM_HH_MM

public static final ProjectDateFormat DD_MMM_HH_MM
This format represents dates in the form 24 Nov 12:56.


DD_MMM_YY

public static final ProjectDateFormat DD_MMM_YY
This format represents dates in the form 25 Aug '98.


DD_MMMMM

public static final ProjectDateFormat DD_MMMMM
This format represents dates in the form 25 September.


DD_MMM

public static final ProjectDateFormat DD_MMM
This format represents dates in the form 25 Aug.


EEE_DD_MM_YY_HH_MM

public static final ProjectDateFormat EEE_DD_MM_YY_HH_MM
This format represents dates in the form Thu 25/05/98 12:56.


EEE_DD_MM_YY

public static final ProjectDateFormat EEE_DD_MM_YY
This format represents dates in the form Wed 25/05/98.


EEE_DD_MMM_YY

public static final ProjectDateFormat EEE_DD_MMM_YY
This format represents dates in the form Wed 25 Mar '98.


EEE_HH_MM

public static final ProjectDateFormat EEE_HH_MM
This format represents dates in the form Wed 12:56.


DD_MM

public static final ProjectDateFormat DD_MM
This format represents dates in the form 25/5.


DD

public static final ProjectDateFormat DD
This format represents dates in the form 23.


HH_MM

public static final ProjectDateFormat HH_MM
This format represents dates in the form 12:56.


EEE_DD_MMM

public static final ProjectDateFormat EEE_DD_MMM
This format represents dates in the form Wed 23 Mar..


EEE_DD_MM

public static final ProjectDateFormat EEE_DD_MM
This format represents dates in the form Wed 25/5.


EEE_DD

public static final ProjectDateFormat EEE_DD
This format represents dates in the form Wed 05.


DD_WWW

public static final ProjectDateFormat DD_WWW
This format represents dates in the form 5/W25.


DD_WWW_YY_HH_MM

public static final ProjectDateFormat DD_WWW_YY_HH_MM
This format represents dates in the form 5/W25/98 12:56.


DD_MM_YYYY

public static final ProjectDateFormat DD_MM_YYYY
This format represents dates in the form 25/05/1998.

Method Detail

values

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

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

valueOf

public static ProjectDateFormat 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

getInstance

public static ProjectDateFormat getInstance(int type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getInstance

public static ProjectDateFormat getInstance(Number type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getValue

public int getValue()
Accessor method used to retrieve the numeric representation of the enum.

Specified by:
getValue in interface MpxjEnum
Returns:
int representation of the enum

toString

public String toString()
Returns a string representation of the date format type to be used as part of an MPX file.

Overrides:
toString in class Enum<ProjectDateFormat>
Returns:
string representation


Copyright © 2012. All Rights Reserved.