/** * This method returns NSFApplicationChecklist13Document object based on proposal development * document which contains the NSFApplicationChecklist13Document information for a particular * proposal * * @return nsfChecklistDocument {@link XmlObject} of type NSFApplicationChecklist13Document. */ private NSFApplicationChecklist13Document getNSFApplicationChecklist13() { NSFApplicationChecklist13Document nsfChecklistDocument = NSFApplicationChecklist13Document.Factory.newInstance(); NSFApplicationChecklist13 nsfChecklist = NSFApplicationChecklist13.Factory.newInstance(); nsfChecklist.setFormVersion(S2SConstants.FORMVERSION_1_3); CoverSheet coverSheet = getCoverSheet(); ProjectNarrative projectNarrative = getProjectNarrative(); setQuestionnaireAnswers(coverSheet, projectNarrative); nsfChecklist.setCoverSheet(coverSheet); nsfChecklist.setCheckRRSite(YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_6))); nsfChecklist.setCheckRROtherInfo(YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_7))); nsfChecklist.setCheckProjectSummary( YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_8))); nsfChecklist.setProjectNarrative(projectNarrative); nsfChecklist.setCheckBiblio( YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_NSF_SMALL_GRANT))); nsfChecklist.setCheckFacilities( YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_OTHER_AGENCY))); nsfChecklist.setEquipment(getEquipment()); nsfChecklist.setRRSrProfile(getRRSrProfile()); nsfChecklist.setCheckRRPersonalData( YesNoDataType.Enum.forInt(getChecklistAnswer(QUESTION_ID_PI_CHANGE))); nsfChecklist.setRRBudget(getRRBudget()); nsfChecklist.setNSFCover(getNSFCover()); nsfChecklistDocument.setNSFApplicationChecklist13(nsfChecklist); return nsfChecklistDocument; }
/** * This method typecasts the given {@link XmlObject} to the required generator type and returns * back the document of that generator type. * * @param xmlObject which needs to be converted to the document type of the required generator * @return {@link XmlObject} document of the required generator type * @see org.kuali.kra.s2s.generator.S2SFormGenerator#getFormObject(XmlObject) */ public XmlObject getFormObject(XmlObject xmlObject) { NSFApplicationChecklist13 nsfChecklist = (NSFApplicationChecklist13) xmlObject; NSFApplicationChecklist13Document nsfChecklistDocument = NSFApplicationChecklist13Document.Factory.newInstance(); nsfChecklistDocument.setNSFApplicationChecklist13(nsfChecklist); return nsfChecklistDocument; }