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]> |
What about the standard JMI write methods? (two more = 6 in your proposal). After seeing Brian's comments, I think I will remove JMI methods from XMIReader/XMIWriter interfaces - see my reply to Brian. Martin Holger Krug wrote: > Hi Martin, > > Instead of the 6 methods of XMIWriter: > > ContentHandler getContentHandler() > void setContentHandler(..) > void XMIWriter.write(..) > > I suggest the following 4 methods would be enough and would result in > a cleaner API: > > abstract void write(ContentHandler handler, Collection objects, String uri); > void write(OutputStream stream, Collection object, String uri); > abstract void write(ContentHandler handler, RefPackage extent, String uri); > void write(OutputStream stream, RefPackage extent, String uri); >