[topicmapmail] Topic name display priority
Steve Pepper
pepper@ontopia.net
Tue, 01 Apr 2003 13:39:14 +0200
At 11:51 01.04.2003 +0100, Murray Altheim wrote:
>>Yes. It has to be a two-step process: First select the most
>>appropriate base name, and then check for variants.
>
>...
>
>In TM4J there's a method
>
> org.tm4j.topicmap.TopicMapUtils.getDisplayName(Topic,Scope)
>
>which I will simply use rather than writing my own. Its description
>is thus:
>
> Returns a string which may be used as a display name in the
> specified scope. If a variant name with a parameter of
> 'display' exists in the specified scope, then that variant's
> name string is returned. Otherwise a base name in the specified
> scope is sought and if found, then the base name string is
> returned. Finally a base name in the unconstrained scope is
> sought and that name string returned. If all of these searches
> fail, null is returned.
From the description it's unclear whether this method uses the
two-step process or not. It would be interesting to know the answer.
Steve
--
Steve Pepper, Ontopian
http://www.ontopia.net
DUMUS DELENDA EST