public class MergeReference extends AbstractTopicMapReference
Modifier and Type | Field and Description |
---|---|
protected List<String> |
refkeys |
protected TopicMapRepositoryIF |
repository |
protected boolean |
reuse_store |
protected TopicMapStoreFactoryIF |
sfactory |
protected TopicMapStoreIF |
store |
deleted, id, isopen, listeners, source, title, topic_listeners
Constructor and Description |
---|
MergeReference(String id,
String title,
TopicMapStoreFactoryIF sfactory,
TopicMapRepositoryIF repository,
List<String> refkeys)
INTERNAL: Creates a TopicMapReferenceIF which references the
result of merging a number of topic maps
|
Modifier and Type | Method and Description |
---|---|
void |
close()
PUBLIC: Closes all open stores and the reference itself.
|
protected TopicMapStoreIF |
createStore() |
TopicMapStoreIF |
createStore(boolean readonly)
PUBLIC: Creates a topic map store that lets you access the
referenced topic map.
|
void |
open()
PUBLIC: Opens the reference.
|
addTopicListener, clear, delete, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, setTopicListeners, storeClosed
protected TopicMapStoreIF store
protected TopicMapStoreFactoryIF sfactory
protected TopicMapRepositoryIF repository
protected boolean reuse_store
public MergeReference(String id, String title, TopicMapStoreFactoryIF sfactory, TopicMapRepositoryIF repository, List<String> refkeys)
sfactory
- the store factory to use for creating the
resulting merged topic map.repository
- the topic map repository to look up the topic maps that
are to be merged in.refkeys
- a list of topic map reference key strings which
refers to the topic maps that are to be merged.
should be used.public void open()
TopicMapReferenceIF
open
in interface TopicMapReferenceIF
open
in class AbstractTopicMapReference
public TopicMapStoreIF createStore(boolean readonly) throws IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
createStore
in class AbstractTopicMapReference
IOException
protected TopicMapStoreIF createStore()
public void close()
TopicMapReferenceIF
close
in interface AutoCloseable
close
in interface TopicMapReferenceIF
close
in class AbstractTopicMapReference