Package net.ontopia.topicmaps.entry
Class TopicMaps
- java.lang.Object
-
- net.ontopia.topicmaps.entry.TopicMaps
-
public class TopicMaps extends Object
PUBLIC: The primary access point to your topic maps. The topic map repository definition will be loaded from the CLASSPATH. The default topic map repository will be loaded from the resource 'tm-sources.xml'.- Since:
- 3.4
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_REPOSITORYprotected static Map<String,TopicMapRepositoryIF>repositories
-
Constructor Summary
Constructors Constructor Description TopicMaps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopicMapStoreIFcreateStore(String topicmapId, boolean readOnly)PUBLIC: Returns a new TopicMapStoreIF from the default repository.static TopicMapStoreIFcreateStore(String topicmapId, boolean readOnly, String repositoryId)PUBLIC: Returns a new TopicMapStoreIF from the given repository.static voidforget(TopicMapRepositoryIF repositoryIF)static TopicMapRepositoryIFgetRepository()PUBLIC: Returns the default topic maps repository.static TopicMapRepositoryIFgetRepository(String repositoryId)PUBLIC: Returns the default topic maps repository.static TopicMapRepositoryIFgetRepository(String repositoryId, Map<String,String> environ)
-
-
-
Field Detail
-
DEFAULT_REPOSITORY
protected static final String DEFAULT_REPOSITORY
- See Also:
- Constant Field Values
-
repositories
protected static final Map<String,TopicMapRepositoryIF> repositories
-
-
Method Detail
-
createStore
public static TopicMapStoreIF createStore(String topicmapId, boolean readOnly)
PUBLIC: Returns a new TopicMapStoreIF from the default repository. Remember to close the store once you're done with it.
-
createStore
public static TopicMapStoreIF createStore(String topicmapId, boolean readOnly, String repositoryId)
PUBLIC: Returns a new TopicMapStoreIF from the given repository. Remember to close the store once you're done with it.
-
getRepository
public static TopicMapRepositoryIF getRepository()
PUBLIC: Returns the default topic maps repository.
-
getRepository
public static TopicMapRepositoryIF getRepository(String repositoryId)
PUBLIC: Returns the default topic maps repository.
-
getRepository
public static TopicMapRepositoryIF getRepository(String repositoryId, Map<String,String> environ)
-
forget
public static void forget(TopicMapRepositoryIF repositoryIF)
-
-