public ProjectCalendar addResourceCalendar ( ) throws MPXJException { if ( getResourceCalendar ( ) != null ) { throw new MPXJException ( MPXJException . MAXIMUM_RECORDS ) ; } ProjectCalendar calendar = new ProjectCalendar ( getParentFile ( ) ) ; setResourceCalendar ( calendar ) ; return calendar ; }
This method allows a resource calendar to be added to a resource .