#120 getDisplayName skips a search option

TM4J 0.9.7
open
nobody
5
2005-05-31
2005-05-31
Pablo Olmos
No

Hi,

The method getDisplayName in class TopicMapUtilsImpl
skips the option to find a base name in the specified
scope even if no 'display' variant is present in the topic.

This occurs because getDisplayName always invokes
getScopedVariantName with XTMPSI.DISPLAY as Locator
parameter. Therefore, a base name without a variant but
with a scope will never be returned.

the problem can be solved by adding the line outside of
the second while (while2):

return basename.getData(); //between lines 645 and 646

Hope you can include this in your next release.

Cheers,

Pablo

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks