org.tm4j.topicmap .TopicMapManager
Description
This interface is implemented by classes which provide aggregation services for TopicMapProviders. One or more TopicMapProviders may be registered with the TopicMapManager under a given id and applications may then access any of the TopicMaps handled by these TopicMapProviders.
Method Summary | |
---|---|
TopicMap |
addTopicMap(org.tm4j.topicmap.source.TopicMapSource source,java.lang.String providerId)
Adds a TopicMap from the given source to the given Provider
|
TopicMap |
copyTopicMap(org.tm4j.topicmap.TopicMap map,java.lang.String providerId)
Creates a copy of the TopicMap inside the given provider
|
void |
deregisterProvider(java.lang.String id)
Closes the Provider with the specified id
|
void |
dropTopicMap(org.tm4j.topicmap.TopicMap map)
Removes the TopicMap from the Manager and the underlaying Provider
|
TopicMapProvider |
getProvider(java.lang.String id)
Returns the Provider with the specified id or throws a TopicMapProviderException
if this id does not exist
|
java.util.Map |
getProviders()
Returns a Map containing all registered Providers with their ids as the keys
|
TopicMap |
getTopicMap(org.tm4j.net.Locator baseLoc)
Gets the TopicMap generated from the resource specified by locator
|
java.util.Collection |
getTopicMapBaseLocators()
Gets a collection of the base locator of all of the topic maps
currently available through the registered TopicMapProviders.
|
java.util.Collection |
getTopicMaps()
Gets a collection of all of the topic maps which are
currently available through the registered TopicMapProviders
|
void |
mergeTopicMaps(org.tm4j.topicmap.TopicMap one,org.tm4j.topicmap.TopicMap second)
Merges the two TopicMaps
|
void |
moveTopicMap(org.tm4j.topicmap.TopicMap map,java.lang.String providerId)
Moves the TopicMap into the given Provider
|
TopicMapProvider |
registerProvider(java.lang.String id,java.lang.String providerFactoryClassName,java.util.Properties props)
Registers a new provider with the manager.
|
void |
storeTopicMap(java.io.File file,org.tm4j.topicmap.TopicMap map)
Stores the TopicMap into the given File
This method is a shortcut for using the TopicMapSerializer
|
Meta Data (3)
@author
:
Harald Kuhn, harald_kuhn at users.sourceforge.net
@author
:
Kal Ahmed (kal@techquila.com)