private void readCalendars(Project project) throws MPXJException
   {
      Calendars calendars = project.getCalendars();
      if (calendars != null)
      {
         for (net.sf.mpxj.planner.schema.Calendar cal : calendars.getCalendar())
         {
            readCalendar(cal, null);
         }

         Integer defaultCalendarID = getInteger(project.getCalendar());
         m_defaultCalendar = m_projectFile.getCalendarByUniqueID(defaultCalendarID);
         if (m_defaultCalendar != null)
         {
            m_projectFile.getProjectProperties().setDefaultCalendarName(m_defaultCalendar.getName());
         }
      }
   }
private void readCalendars ( Project project ) throws MPXJException { Calendars calendars = project . getCalendars ( ) ; if ( calendars != null ) { for ( net . sf . mpxj . planner . schema . Calendar cal : calendars . getCalendar ( ) ) { readCalendar ( cal , null ) ; } Integer defaultCalendarID = getInteger ( project . getCalendar ( ) ) ; m_defaultCalendar = m_projectFile . getCalendarByUniqueID ( defaultCalendarID ) ; if ( m_defaultCalendar != null ) { m_projectFile . getProjectProperties ( ) . setDefaultCalendarName ( m_defaultCalendar . getName ( ) ) ; } } }
This method extracts calendar data from a Planner file.

@param project Root node of the Planner file