From: Kal A. <ka...@te...> - 2001-09-25 14:04:36
|
At 09:06 25/09/2001 +0200, Gerd Mueller wrote: >On Mon, 24 Sep 2001 14:40:40 +0100 >"Murray Woodman" <mwo...@ho...> wrote: > > > > > Problem: > > I am working on a simple web application which requires the creation of a > > link to a topic. As far as I can see I need the base URL of the parent > > TopicMap and the id of the Topic to make the link. Getting a reference to > > the parent topic map is proving difficult given that the method making the > > link only has access to the topic itself, ie no references available to the > > parent topic map or to a topic map manager. It would be cleaner if I could > > avoid passing the parent TopicMap to the method as well as the Topic. > > > > Question: > > Given a Topic instance is it possible to gain a reference to the parent > > TopicMap without searching for the topic in the various topicmaps listed in > > the manager? > >Each topic has a member m_parent that points to the parent >topicmap. Unfortunatly there is no getParent() method. Perhaps >we should add it ? +1 And we should add the same method to the Association interface too. Cheers, Kal |