net.ontopia.topicmaps.entry
Class TopicMaps

java.lang.Object
  extended by net.ontopia.topicmaps.entry.TopicMaps

public class TopicMaps
extends java.lang.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
protected static java.lang.String DEFAULT_REPOSITORY
           
protected static java.util.Map<java.lang.String,TopicMapRepositoryIF> repositories
           
 
Constructor Summary
TopicMaps()
           
 
Method Summary
static TopicMapStoreIF createStore(java.lang.String topicmapId, boolean readOnly)
          PUBLIC: Returns a new TopicMapStoreIF from the default repository.
static TopicMapStoreIF createStore(java.lang.String topicmapId, boolean readOnly, java.lang.String repositoryId)
          PUBLIC: Returns a new TopicMapStoreIF from the given repository.
static TopicMapRepositoryIF getRepository()
          PUBLIC: Returns the default topic maps repository.
static TopicMapRepositoryIF getRepository(java.lang.String repositoryId)
          PUBLIC: Returns the default topic maps repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REPOSITORY

protected static final java.lang.String DEFAULT_REPOSITORY
See Also:
Constant Field Values

repositories

protected static final java.util.Map<java.lang.String,TopicMapRepositoryIF> repositories
Constructor Detail

TopicMaps

public TopicMaps()
Method Detail

createStore

public static TopicMapStoreIF createStore(java.lang.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(java.lang.String topicmapId,
                                          boolean readOnly,
                                          java.lang.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(java.lang.String repositoryId)
PUBLIC: Returns the default topic maps repository.



Copyright © 2000-2012 Ontopia.