From: Kal A. <ka...@te...> - 2001-06-12 12:49:32
|
> > Hi, > > > > Just a heads-up to let you know that I added a new method to > the TopicMap > > interface: > > > > Iterator getObjects(); > > > > Which should return an Iterator over all of the TopicMapObjects > which are > > associated with the topic map. > > > > The in-memory implementation has this function added, although > it is broken > > because it only iterates over Topics and Associations. I'm > working on a fix. > > However, I guess that the Ozone implementation will need > updating too...do > > you have time to take a look at that, Gerd ? > > At the moment I don't have the time for a full implementation, > since iterators are a bit tricky. But I will add a dummmy > implemenation to stay interface compatible. > OK. > Just an idea: Is it really necessary to return an iterator. Wouldn't > be a collection enough ? That would make the ozone impl. much more > easier. > Oh! I had done that because I thought that the iterator would be easier to implement for Ozone...DOH! :-) I too would prefer a Collection as the return value because it is consistent with the rest of the interface. So lets go for Collection getObjects(); Cheers, Kal |