net.sf.mpxj
Class Day

java.lang.Object
  extended by net.sf.mpxj.Day
Direct Known Subclasses:
ProgressLineDay

public class Day
extends Object

Instances of this class represent enumerated day values.


Field Summary
static Day FRIDAY
           
static Day MONDAY
           
static Day SATURDAY
           
static Day SUNDAY
           
static Day THURSDAY
           
static Day TUESDAY
           
static Day WEDNESDAY
           
 
Constructor Summary
protected Day(int value)
          Protected constructor.
 
Method Summary
static Day getInstance(int value)
          Retrieve a Day instance representing the supplied value.
 Day getNextDay()
          This method provides a simple mechanism to retrieve the next day in correct sequence, including the transition from Sunday to Monday.
 int getValue()
          Retrieves the int representation of the day.
 String toString()
          Retrieves the string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUNDAY

public static final Day SUNDAY

MONDAY

public static final Day MONDAY

TUESDAY

public static final Day TUESDAY

WEDNESDAY

public static final Day WEDNESDAY

THURSDAY

public static final Day THURSDAY

FRIDAY

public static final Day FRIDAY

SATURDAY

public static final Day SATURDAY
Constructor Detail

Day

protected Day(int value)
Protected constructor.

Parameters:
value - day value
Method Detail

getValue

public int getValue()
Retrieves the int representation of the day.

Returns:
task type value

getNextDay

public Day getNextDay()
This method provides a simple mechanism to retrieve the next day in correct sequence, including the transition from Sunday to Monday.

Returns:
Day instance

getInstance

public static Day getInstance(int value)
Retrieve a Day instance representing the supplied value.

Parameters:
value - task type value
Returns:
Day instance

toString

public String toString()
Retrieves the string representation of this instance.

Overrides:
toString in class Object
Returns:
string representation


Copyright © 2012. All Rights Reserved.