net.sf.mpxj
Class ProjectCalendarException

java.lang.Object
  extended by net.sf.mpxj.ProjectCalendarDateRanges
      extended by net.sf.mpxj.ProjectCalendarException
All Implemented Interfaces:
Comparable<ProjectCalendarException>, Iterable<DateRange>

public final class ProjectCalendarException
extends ProjectCalendarDateRanges
implements Comparable<ProjectCalendarException>

This class represents instances of Calendar Exception records from an MPX file. It is used to define exceptions to the working days described in both base and resource calendars.


Method Summary
 int compareTo(ProjectCalendarException o)
          
 boolean contains(Date date)
          This method determines whether the given date falls in the range of dates covered by this exception.
 Date getFromDate()
          Returns the from date.
 Date getToDate()
          Get to date.
 boolean getWorking()
          Gets working status.
 String toString()
          
 
Methods inherited from class net.sf.mpxj.ProjectCalendarDateRanges
addRange, getRange, getRangeCount, iterator, setRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFromDate

public Date getFromDate()
Returns the from date.

Returns:
Date

getToDate

public Date getToDate()
Get to date.

Returns:
Date

getWorking

public boolean getWorking()
Gets working status.

Returns:
boolean value

contains

public boolean contains(Date date)
This method determines whether the given date falls in the range of dates covered by this exception. Note that this method assumes that both the start and end date of this exception have been set.

Parameters:
date - Date to be tested
Returns:
Boolean value

compareTo

public int compareTo(ProjectCalendarException o)

Specified by:
compareTo in interface Comparable<ProjectCalendarException>

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.