org.ceryle.tm
Class TopicLocatorPool.TopicLocatorMap

java.lang.Object
  extended by org.ceryle.tm.TopicLocatorPool.TopicLocatorMap
Enclosing class:
TopicLocatorPool

protected class TopicLocatorPool.TopicLocatorMap
extends Object

Inner class acting as a map between on-demand URIs and Locators or PSI-based Topics for each TopicMap.


Constructor Summary
protected TopicLocatorPool.TopicLocatorMap(TopicMap topicmap)
           
 
Method Summary
 Locator returnLocatorForPSI(String uri)
          The supplied URI is used as a key to either return a newly-created or existing Locator.
 Topic returnTopicForPSI(String id, Locator uri)
          Returns a Topic whose ID is id containing a subject indicator with the String uri, considered as a PSI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicLocatorPool.TopicLocatorMap

protected TopicLocatorPool.TopicLocatorMap(TopicMap topicmap)
Method Detail

returnLocatorForPSI

public Locator returnLocatorForPSI(String uri)
                            throws TopicMapException
The supplied URI is used as a key to either return a newly-created or existing Locator.

Throws:
TopicMapException

returnTopicForPSI

public Topic returnTopicForPSI(String id,
                               Locator uri)
                        throws TopicMapException
Returns a Topic whose ID is id containing a subject indicator with the String uri, considered as a PSI. If a Topic having a subject matching the PSI already exists, it is returned (note that the supplied ID is ignored in this case).

Parameters:
id - the ID to be used for the new Topic
uri - the URI used as the subject indicator Locator address
Throws:
TopicMapException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.