private CumulativeEquipments getCumulativeEquipments(BudgetSummaryDto budgetSummaryData) {

        CumulativeEquipments cumulativeEquipments = CumulativeEquipments.Factory.newInstance();
        if (budgetSummaryData != null) {
            SummaryDataType summary = SummaryDataType.Factory.newInstance();
            if (budgetSummaryData.getCumEquipmentFunds() != null) {
                summary.setFederalSummary(budgetSummaryData.getCumEquipmentFunds().bigDecimalValue());
            }
            if (budgetSummaryData.getCumEquipmentNonFunds() != null) {
                summary.setNonFederalSummary(budgetSummaryData.getCumEquipmentNonFunds().bigDecimalValue());
                if (budgetSummaryData.getCumEquipmentFunds() != null) {
                    summary.setTotalFedNonFedSummary(budgetSummaryData.getCumEquipmentFunds().add(
                            budgetSummaryData.getCumEquipmentNonFunds()).bigDecimalValue());
                }
                else {
                    summary.setTotalFedNonFedSummary(budgetSummaryData.getCumEquipmentNonFunds().bigDecimalValue());
                }
            }
            cumulativeEquipments.setCumulativeTotalFundsRequestedEquipment(summary);
        }
        return cumulativeEquipments;
    }
private CumulativeEquipments getCumulativeEquipments ( BudgetSummaryDto budgetSummaryData ) { CumulativeEquipments cumulativeEquipments = CumulativeEquipments . Factory . newInstance ( ) ; if ( budgetSummaryData != null ) { SummaryDataType summary = SummaryDataType . Factory . newInstance ( ) ; if ( budgetSummaryData . getCumEquipmentFunds ( ) != null ) { summary . setFederalSummary ( budgetSummaryData . getCumEquipmentFunds ( ) . bigDecimalValue ( ) ) ; } if ( budgetSummaryData . getCumEquipmentNonFunds ( ) != null ) { summary . setNonFederalSummary ( budgetSummaryData . getCumEquipmentNonFunds ( ) . bigDecimalValue ( ) ) ; if ( budgetSummaryData . getCumEquipmentFunds ( ) != null ) { summary . setTotalFedNonFedSummary ( budgetSummaryData . getCumEquipmentFunds ( ) . add ( budgetSummaryData . getCumEquipmentNonFunds ( ) ) . bigDecimalValue ( ) ) ; } else { summary . setTotalFedNonFedSummary ( budgetSummaryData . getCumEquipmentNonFunds ( ) . bigDecimalValue ( ) ) ; } } cumulativeEquipments . setCumulativeTotalFundsRequestedEquipment ( summary ) ; } return cumulativeEquipments ; }
This method gets CumulativeEquipments information CumulativeTotalFundsRequestedEquipment based on BudgetSummaryInfo for the
form RRFedNonFedBudget.

@param budgetSummaryData (BudgetSummaryInfo) budget summary entry.
@return CumulativeEquipments corresponding to the BudgetSummaryInfo object.