public interface TopicMapRepositoryIF
The repository allows access to its underlying references using reference keys that the repository assigns each reference. It is up to the repository implementation to generate these keys. Each repository decides how to generate its reference keys. Note that the reference key is therefore not neccessarily identical to the reference's id. See the implementations for more information on their key generation policies.
The default implementation of TopicMapRepositoryIF is thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
addSource(TopicMapSourceIF source)
PUBLIC: Adds the source to the repository.
|
void |
close()
PUBLIC: Closes the repository and releases all resources bound by
the repository.
|
TopicMapStoreIF |
createStore(String refkey,
boolean readonly)
PUBLIC: Creates a new topic map store for the given topic map
id.
|
TopicMapReferenceIF |
getReferenceByKey(String refkey)
PUBLIC: Gets a topic map reference by its reference key.
|
String |
getReferenceKey(TopicMapReferenceIF ref)
PUBLIC: Gets the key used to identify the reference in the
repository.
|
Collection<String> |
getReferenceKeys()
PUBLIC: Returns a collection containing the keys of all references.
|
Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns a collection containing all references.
|
TopicMapSourceIF |
getSourceById(String source_id)
PUBLIC: Returns the topic map source that has the given source id.
|
Collection<TopicMapSourceIF> |
getSources()
PUBLIC: Returns an immutable collection containing the
TopicMapSourceIFs registered with the topic map repository.
|
void |
refresh()
PUBLIC: Refreshes all sources and recreates the reference map.
|
void |
removeSource(TopicMapSourceIF source)
PUBLIC: Removes the source from the repository.
|
TopicMapStoreIF createStore(String refkey, boolean readonly)
TopicMapReferenceIF getReferenceByKey(String refkey)
String getReferenceKey(TopicMapReferenceIF ref)
Collection<TopicMapReferenceIF> getReferences()
Collection<String> getReferenceKeys()
void refresh()
TopicMapSourceIF getSourceById(String source_id)
Collection<TopicMapSourceIF> getSources()
void addSource(TopicMapSourceIF source)
void removeSource(TopicMapSourceIF source)
void close()