RE: writing collection of refobjects through xmiwriter

"Krijgsheld, Ronald" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <D913221A882FD31198D90008C75D690906BF0B0C@cwnl-ams-pri01.nl.compuware.com>
Daniel,

It is not undesirable, It just means that I have to implement a bit more of
the 
reflective API to be able to use the XMIWriter. 

How is it written exactly? A link can be in different namespace as the
objects they link?

If I want to serialize all RefObjects within a namespace, I will also get
the links between those RefObjects, while these links can be defined in a
different namespace.

Am I making sense?

Thanks,

Ronald

-----Original Message-----
From: Daniel Prusa [mailto:[email protected]]
Sent: Monday, July 22, 2002 4:33 PM
To: [email protected]
Subject: Re: writing collection of refobjects through xmiwriter


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?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.