An Item can contain attachments.
When writing the model into Integrity, an
AttachmentResolver is used to retrieve the physical location
of files to be inserted in Integrity:
import com.sodius.mdw.metamodel.integrity.io.ExtractAttachmentCommand; ... File myFolder = new File(<folder containing OLE object files>); AttachmentResolver resolver = <provide your own implementation>; Map<String, Object> options = new HashMap<String, Object>(); options.put("integrity.attachmentResolver", resolver); myIntegrityModel.write("Application", null, options);
Writing Integrity data