Re: writing collection of refobjects through xmiwriter
Daniel Prusa <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ronald, a link is written if (and only if) both related ends are written, i.e. both are in the passed collection (resp. in the transitive closure of the "composite" relation). Is this inconvenient for you in some way ? If so, what is your usecase of write(Collection) method - why serialization of the set of links generated by the collection of refobjects is undesirable ? Daniel > The XMIWriter has a write method that writes a collection of RefObjects to > disk. Is is implemented by setting the XMIWriter in collectionWriting mode > and at certain places this mode is quered to decide what to do. Now, I see > in the code that the writeAssociations() method is called when the XMIWriter > is in collectionWriting mode. > > Why are associations (for which no references are defined) also written in > this mode?