Re: PROPOSAL: Extensions to XMIReader and XMIWriter interfaces
Brian Smith <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
Martin Matula wrote: > Extend XMIReader interface by adding the same read methods that it > already has but with additional parameter of type HRefResolver. I think this isn't a good idea because then users won't be able to use their own HRefResolver with the methods already defined. I think it might be better to have a "setHRefResolver" method on XMIWriter, and if it isn't called, then XMIWriter will use a default HRefResolver (e.g. Lookup.getDefault().lookup(HRefResolver.class)). This way, we can set the default resolver at application start up time, and thus isolate direct dependencies on MDR-specific methods to a smaller part of our code. Also, are there any restrictions on the format of the string returned by XMIReference.getReference()? Thanks, Brian