private RRFedNonFedSubawardBudget1010Document getRRFedNonFedSubawardBudgetDocument() {

        RRFedNonFedSubawardBudget1010Document rrSubawardBudgetDocument = RRFedNonFedSubawardBudget1010Document.Factory.newInstance();
        RRFedNonFedSubawardBudget1010 rrSubawardBudget = RRFedNonFedSubawardBudget1010.Factory.newInstance();
        BudgetAttachments budgetAttachments = BudgetAttachments.Factory.newInstance();
        List<BudgetSubAwardsContract> budgetSubAwardsList = getBudgetSubAwards(pdDoc,RR_FED_NON_FED_BUDGET10_11_NAMESPACE_URI,false);
        RRFedNonFedBudget10[] budgetList = new RRFedNonFedBudget10[budgetSubAwardsList.size()];
        rrSubawardBudget.setFormVersion(FormVersion.v1_2.getVersion());

        int attCount = 1;
        for (BudgetSubAwardsContract budgetSubAwards : budgetSubAwardsList) {
            RRFedNonFedBudget10 rrBudget = getRRFedNonFedBudget(budgetSubAwards).getRRFedNonFedBudget10();
            switch (attCount) {
                case 1:
                    rrSubawardBudget.setATT1(prepareAttName(budgetSubAwards));
                    budgetList[0] = rrBudget;
                    break;
                case 2:
                    rrSubawardBudget.setATT2(prepareAttName(budgetSubAwards));
                    budgetList[1] = rrBudget;
                    break;
                case 3:
                    rrSubawardBudget.setATT3(prepareAttName(budgetSubAwards));
                    budgetList[2] = rrBudget;
                    break;
                case 4:
                    rrSubawardBudget.setATT4(prepareAttName(budgetSubAwards));
                    budgetList[3] = rrBudget;
                    break;
                case 5:
                    rrSubawardBudget.setATT5(prepareAttName(budgetSubAwards));
                    budgetList[4] = rrBudget;
                    break;
                case 6:
                    rrSubawardBudget.setATT6(prepareAttName(budgetSubAwards));
                    budgetList[5] = rrBudget;
                    break;
                case 7:
                    rrSubawardBudget.setATT7(prepareAttName(budgetSubAwards));
                    budgetList[6] = rrBudget;
                    break;
                case 8:
                    rrSubawardBudget.setATT8(prepareAttName(budgetSubAwards));
                    budgetList[7] = rrBudget;
                    break;
                case 9:
                    rrSubawardBudget.setATT9(prepareAttName(budgetSubAwards));
                    budgetList[8] = rrBudget;
                    break;
                case 10:
                    rrSubawardBudget.setATT10(prepareAttName(budgetSubAwards));
                    budgetList[9] = rrBudget;
                    break;
            }
            addSubAwdAttachments(budgetSubAwards);
            attCount++;
            
        }
        budgetAttachments.setRRFedNonFedBudget10Array(budgetList);
        rrSubawardBudget.setBudgetAttachments(budgetAttachments);
        rrSubawardBudgetDocument.setRRFedNonFedSubawardBudget1010(rrSubawardBudget);
        return rrSubawardBudgetDocument;
    }
private RRFedNonFedSubawardBudget1010Document getRRFedNonFedSubawardBudgetDocument ( ) { RRFedNonFedSubawardBudget1010Document rrSubawardBudgetDocument = RRFedNonFedSubawardBudget1010Document . Factory . newInstance ( ) ; RRFedNonFedSubawardBudget1010 rrSubawardBudget = RRFedNonFedSubawardBudget1010 . Factory . newInstance ( ) ; BudgetAttachments budgetAttachments = BudgetAttachments . Factory . newInstance ( ) ; List < BudgetSubAwardsContract > budgetSubAwardsList = getBudgetSubAwards ( pdDoc , RR_FED_NON_FED_BUDGET10_11_NAMESPACE_URI , false ) ; RRFedNonFedBudget10 [ ] budgetList = new RRFedNonFedBudget10 [ budgetSubAwardsList . size ( ) ] ; rrSubawardBudget . setFormVersion ( FormVersion . v1_2 . getVersion ( ) ) ; int attCount = 1 ; for ( BudgetSubAwardsContract budgetSubAwards : budgetSubAwardsList ) { RRFedNonFedBudget10 rrBudget = getRRFedNonFedBudget ( budgetSubAwards ) . getRRFedNonFedBudget10 ( ) ; switch ( attCount ) { case 1 : rrSubawardBudget . setATT1 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 0 ] = rrBudget ; break ; case 2 : rrSubawardBudget . setATT2 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 1 ] = rrBudget ; break ; case 3 : rrSubawardBudget . setATT3 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 2 ] = rrBudget ; break ; case 4 : rrSubawardBudget . setATT4 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 3 ] = rrBudget ; break ; case 5 : rrSubawardBudget . setATT5 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 4 ] = rrBudget ; break ; case 6 : rrSubawardBudget . setATT6 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 5 ] = rrBudget ; break ; case 7 : rrSubawardBudget . setATT7 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 6 ] = rrBudget ; break ; case 8 : rrSubawardBudget . setATT8 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 7 ] = rrBudget ; break ; case 9 : rrSubawardBudget . setATT9 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 8 ] = rrBudget ; break ; case 10 : rrSubawardBudget . setATT10 ( prepareAttName ( budgetSubAwards ) ) ; budgetList [ 9 ] = rrBudget ; break ; } addSubAwdAttachments ( budgetSubAwards ) ; attCount ++ ; } budgetAttachments . setRRFedNonFedBudget10Array ( budgetList ) ; rrSubawardBudget . setBudgetAttachments ( budgetAttachments ) ; rrSubawardBudgetDocument . setRRFedNonFedSubawardBudget1010 ( rrSubawardBudget ) ; return rrSubawardBudgetDocument ; }
This method is to get SubAward Budget details

@return rrSubawardBudgetDocument {@link XmlObject} of type RRFedNonFedSubawardBudgetDocument.