code: private void readAssignmentBaselines(Project.Assignments.Assignment assignment, ResourceAssignment mpx)
     {
        for (Project.Assignments.Assignment.Baseline baseline : assignment.getBaseline())
        {
           int number = NumberHelper.getInt(baseline.getNumber());
  
           //baseline.getBCWP()
           //baseline.getBCWS()
           Number cost = DatatypeConverter.parseExtendedAttributeCurrency(baseline.getCost());
           Date finish = DatatypeConverter.parseExtendedAttributeDate(baseline.getFinish());
           //baseline.getNumber()
           Date start = DatatypeConverter.parseExtendedAttributeDate(baseline.getStart());
           Duration work = DatatypeConverter.parseDuration(m_projectFile, TimeUnit.HOURS, baseline.getWork());
  
           if (number == 0)
           {
              mpx.setBaselineCost(cost);
              mpx.setBaselineFinish(finish);
              mpx.setBaselineStart(start);
              mpx.setBaselineWork(work);
           }
           else
           {
              mpx.setBaselineCost(number, cost);
              mpx.setBaselineWork(number, work);
              mpx.setBaselineStart(number, start);
              mpx.setBaselineFinish(number, finish);
           }
        }
     }
docs: Extracts assignment baseline data.
  
  @param assignment xml assignment
  @param mpx mpxj assignment