From: Dicheva, D. <dic...@ws...> - 2007-02-11 17:37:54
|
Hello all, In my effort to migrate TM4L to using TMAPI (which I recently renewed :-) I got to a problem in using the getScope() method of Variant. When I try=20 Collection vc =3D bn.getVariants(); Iterator it =3D vc.iterator(); while (it.hasNext()) { Variant var =3D (Variant) it.next(); Iterator si =3D var.getScope().iterator();=09 if (si.hasNext()){ Topic param =3D (Topic)si.next(); //***Exception Here**** I get: JavaLangClassCastException: Org.TM4J.TopicMap.Memory.TopicMapImpl It looks like the unmodifiable result set of var.getScope() is a set of TM4J topics and there is no way to cast them to TMAPI topics. Any ideas of how to solve this problem? Thanks, Darina |