private void readWeekDay ( ProjectCalendar mpxjCalendar , WeekDay day ) { if ( day . isIsDayWorking ( ) ) { ProjectCalendarHours hours = mpxjCalendar . addCalendarHours ( day . getDay ( ) ) ; for ( Document . Calendars . Calendar . WeekDays . WeekDay . TimePeriods . TimePeriod period : day . getTimePeriods ( ) . getTimePeriod ( ) ) { hours . addRange ( new DateRange ( period . getFrom ( ) , period . getTo ( ) ) ) ; } } }
Reads a single day for a calendar .