Re: writing collection of refobjects through xmiwriter
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ronald, Ronald Krijgsheld wrote: > I like the starting point approach. This way it is possible to fine tune > what needs to be written in the XMIReferenceProvider. OK. > With this view the old write(Collection) method can be implemented with a > default XMIReferenceProvider that just returns xmi.id for elements in the > collection and hrefs otherwise. This is not exactly true. Default XMIReferenceProvider does not know how to generate hrefs, because it cannot predict which files will user use to serialize the object not contained in the collection. I guess that we will use Daniel's suggestion here and return null from XMIReferenceProvider to indicate that neither object nor href will be serialized. But very likely there will be a chance for a user to set a custom default XMIReferenceProvider which can implement the logic differently. Regards, Martin