org.ceryle.tm
Class TopicLocatorPool.TopicLocatorMap
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopicLocatorPool.TopicLocatorMap
protected TopicLocatorPool.TopicLocatorMap(TopicMap topicmap)
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 Topicuri - 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.