Re: PROPOSAL (round 3): Extensions to MDR XMI API
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, thanks for the proposal. It sounds interesting, however I don't see how the following will work: Brian Smith wrote: > * An open issue is how to deal with the XMIReferenceResolver > callback that was in XMIReader. If a callback-style interface is > really needed, then presumably a new interface would need to be > added to this proposal to contain the callback method. But, I am > hoping that another, non-callback approach can solve the same > problem, if only to keep the implementations of the API simpler. If it would be possible to do a non-callback approach, we would do it. We haven't found out how to do it in this case. Otherwise we would of course do it without the callback. The second issue is, how the reference resolver can create a new instance of the reader with the same configuration to be able to resolve external references. Also there is no way to specify a document URI in XmiWriter.write, which is essential for reference resolver to work. Martin