private void writeResourceBaselines(Project.Resources.Resource xmlResource, Resource mpxjResource)
   {
      Project.Resources.Resource.Baseline baseline = m_factory.createProjectResourcesResourceBaseline();
      boolean populated = false;

      Number cost = mpxjResource.getBaselineCost();
      if (cost != null && cost.intValue() != 0)
      {
         populated = true;
         baseline.setCost(DatatypeConverter.printCurrency(cost));
      }

      Duration work = mpxjResource.getBaselineWork();
      if (work != null && work.getDuration() != 0)
      {
         populated = true;
         baseline.setWork(DatatypeConverter.printDuration(this, work));
      }

      if (populated)
      {
         xmlResource.getBaseline().add(baseline);
         baseline.setNumber(BigInteger.ZERO);
      }

      for (int loop = 1; loop <= 10; loop++)
      {
         baseline = m_factory.createProjectResourcesResourceBaseline();
         populated = false;

         cost = mpxjResource.getBaselineCost(loop);
         if (cost != null && cost.intValue() != 0)
         {
            populated = true;
            baseline.setCost(DatatypeConverter.printCurrency(cost));
         }

         work = mpxjResource.getBaselineWork(loop);
         if (work != null && work.getDuration() != 0)
         {
            populated = true;
            baseline.setWork(DatatypeConverter.printDuration(this, work));
         }

         if (populated)
         {
            xmlResource.getBaseline().add(baseline);
            baseline.setNumber(BigInteger.valueOf(loop));
         }
      }
   }
private void writeResourceBaselines ( Project . Resources . Resource xmlResource , Resource mpxjResource ) { Project . Resources . Resource . Baseline baseline = m_factory . createProjectResourcesResourceBaseline ( ) ; boolean populated = false ; Number cost = mpxjResource . getBaselineCost ( ) ; if ( cost != null && cost . intValue ( ) != 0 ) { populated = true ; baseline . setCost ( DatatypeConverter . printCurrency ( cost ) ) ; } Duration work = mpxjResource . getBaselineWork ( ) ; if ( work != null && work . getDuration ( ) != 0 ) { populated = true ; baseline . setWork ( DatatypeConverter . printDuration ( this , work ) ) ; } if ( populated ) { xmlResource . getBaseline ( ) . add ( baseline ) ; baseline . setNumber ( BigInteger . ZERO ) ; } for ( int loop = 1 ; loop <= 10 ; loop ++ ) { baseline = m_factory . createProjectResourcesResourceBaseline ( ) ; populated = false ; cost = mpxjResource . getBaselineCost ( loop ) ; if ( cost != null && cost . intValue ( ) != 0 ) { populated = true ; baseline . setCost ( DatatypeConverter . printCurrency ( cost ) ) ; } work = mpxjResource . getBaselineWork ( loop ) ; if ( work != null && work . getDuration ( ) != 0 ) { populated = true ; baseline . setWork ( DatatypeConverter . printDuration ( this , work ) ) ; } if ( populated ) { xmlResource . getBaseline ( ) . add ( baseline ) ; baseline . setNumber ( BigInteger . valueOf ( loop ) ) ; } } }
Writes resource baseline data.

@param xmlResource MSPDI resource
@param mpxjResource MPXJ resource