|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopicMapRepositoryIF
PUBLIC: Class used to provide easy access to references from one or more topic map sources.
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.
Method Summary | |
---|---|
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(java.lang.String refkey,
boolean readonly)
PUBLIC: Creates a new topic map store for the given topic map id. |
TopicMapReferenceIF |
getReferenceByKey(java.lang.String refkey)
PUBLIC: Gets a topic map reference by its reference key. |
java.lang.String |
getReferenceKey(TopicMapReferenceIF ref)
PUBLIC: Gets the key used to identify the reference in the repository. |
java.util.Collection<java.lang.String> |
getReferenceKeys()
PUBLIC: Returns a collection containing the keys of all references. |
java.util.Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns a collection containing all references. |
TopicMapSourceIF |
getSourceById(java.lang.String source_id)
PUBLIC: Returns the topic map source that has the given source id. |
java.util.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. |
Method Detail |
---|
TopicMapStoreIF createStore(java.lang.String refkey, boolean readonly)
TopicMapReferenceIF getReferenceByKey(java.lang.String refkey)
java.lang.String getReferenceKey(TopicMapReferenceIF ref)
java.util.Collection<TopicMapReferenceIF> getReferences()
java.util.Collection<java.lang.String> getReferenceKeys()
void refresh()
TopicMapSourceIF getSourceById(java.lang.String source_id)
java.util.Collection<TopicMapSourceIF> getSources()
void addSource(TopicMapSourceIF source)
void removeSource(TopicMapSourceIF source)
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |