/** * 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) { OtherNarrativeAttachments othNarrativeAttachments = (OtherNarrativeAttachments) xmlObject; OtherNarrativeAttachmentsDocument othNarrativeAttachmentsDocument = OtherNarrativeAttachmentsDocument.Factory.newInstance(); othNarrativeAttachmentsDocument.setOtherNarrativeAttachments(othNarrativeAttachments); return othNarrativeAttachmentsDocument; }
/** * This method is used to get Other Narrative Attachments * * @return otherNarrativeAttachmentsDocument {@link XmlObject} of type * OtherNarrativeAttachmentsDocument. */ private OtherNarrativeAttachmentsDocument getOtherNarrativeAttachments() { OtherNarrativeAttachmentsDocument otherNarrativeAttachmentsDocument = OtherNarrativeAttachmentsDocument.Factory.newInstance(); OtherNarrativeAttachments otherNarrativeAttachments = OtherNarrativeAttachments.Factory.newInstance(); otherNarrativeAttachments.setFormVersion(S2SConstants.FORMVERSION_1_1); AttachmentGroupMin1Max100DataType attachmentGroupMin1Max100DataType = AttachmentGroupMin1Max100DataType.Factory.newInstance(); attachmentGroupMin1Max100DataType.setAttachedFileArray(getAttachedFileDataTypes()); otherNarrativeAttachments.setAttachments(attachmentGroupMin1Max100DataType); otherNarrativeAttachmentsDocument.setOtherNarrativeAttachments(otherNarrativeAttachments); return otherNarrativeAttachmentsDocument; }