|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.tm.TopicLocatorPool
public class TopicLocatorPool
TopicLocatorPool is used as a utility source of created-on-demand, PSI-based Topics and Locators. These are Topics defined by their subject indicators). These are created and stored specific to each TopicMap object, as each is bound to its parent.
The Topics and Locators are stored within instances of an inner class TopicLocatorMap, containing two HashSets: one for Topics and one for Locators. Each of these HashSets is a container mapping URIs to either Topics or Locators. E.g., a method call to create a specific PSI Topic will check to see if the TopicMap has already been registered. If not, it is added to the registry. The TopicLocatorMap for the corresponding TopicMap is used to return (create or locate) the Topic for the PSI.
| Nested Class Summary | |
|---|---|
protected class |
TopicLocatorPool.TopicLocatorMap
Inner class acting as a map between on-demand URIs and Locators or PSI-based Topics for each TopicMap. |
| Constructor Summary | |
|---|---|
TopicLocatorPool(TopicMapProcessor tmprocessor)
|
|
| Method Summary | |
|---|---|
Locator |
returnLocator(TopicMap topicmap,
String uri)
Returns a Locator whose address is uri, provided with a parent TopicMap topicmap. |
protected TopicLocatorPool.TopicLocatorMap |
returnTopicLocatorMap(TopicMap topicmap)
Return a TopicLocatorMap object for the supplied TopicMap. |
Topic |
returnTopicWithPSI(TopicMap topicmap,
String id,
Locator uri)
Returns a Topic whose ID is id and adds a subject indicator with the String uri considered as a PSI. |
Topic |
returnTopicWithPSI(TopicMap topicmap,
String id,
String uri)
Returns a Topic whose ID is id and adds 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 |
|---|
public TopicLocatorPool(TopicMapProcessor tmprocessor)
| Method Detail |
|---|
public Locator returnLocator(TopicMap topicmap,
String uri)
throws TopicMapException
topicmap - a reference to the topic map to be querieduri - the String used as the locator address
TopicMapException
public Topic returnTopicWithPSI(TopicMap topicmap,
String id,
String uri)
throws TopicMapException
topicmap - a reference to the topic map to be queriedid - the ID to be used for the new Topicuri - the String used as the locator address
TopicMapException
public Topic returnTopicWithPSI(TopicMap topicmap,
String id,
Locator uri)
throws TopicMapException
topicmap - a reference to the topic map to be queriedid - the ID to be used for the new Topicuri - the String used as the locator address
TopicMapExceptionprotected TopicLocatorPool.TopicLocatorMap returnTopicLocatorMap(TopicMap topicmap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||