private void genDocumentInfo(TProcessInfo.Documents docinfo, File f) { DocumentInfoGenerator dig = new DocumentInfoGenerator(f); if (dig.isRecognized() && dig.isVisible()) { TDocumentInfo doc = docinfo.addNewDocument(); doc.setName(dig.getName()); doc.setSource(dig.getURL()); doc.setType(dig.getType()); } }
/** * Sets the "documents" element */ public void setDocuments(org.apache.ode.bpel.pmapi.TProcessInfo.Documents documents) { synchronized (monitor()) { check_orphaned(); org.apache.ode.bpel.pmapi.TProcessInfo.Documents target = null; target = (org.apache.ode.bpel.pmapi.TProcessInfo.Documents)get_store().find_element_user(DOCUMENTS$16, 0); if (target == null) { target = (org.apache.ode.bpel.pmapi.TProcessInfo.Documents)get_store().add_element_user(DOCUMENTS$16); } target.set(documents); } }