public class StoreFactoryReference extends AbstractTopicMapReference
Modifier and Type | Field and Description |
---|---|
protected boolean |
deref_on_close |
protected TopicMapStoreFactoryIF |
sfactory_ro |
protected TopicMapStoreFactoryIF |
sfactory_rw |
deleted, id, isopen, listeners, source, title, topic_listeners
Constructor and Description |
---|
StoreFactoryReference(String id,
String title,
TopicMapStoreFactoryIF sfactory) |
StoreFactoryReference(String id,
String title,
TopicMapStoreFactoryIF sfactory_rw,
TopicMapStoreFactoryIF sfactory_ro) |
Modifier and Type | Method and Description |
---|---|
TopicMapStoreIF |
createStore(boolean readonly)
PUBLIC: Creates a topic map store that lets you access the
referenced topic map.
|
boolean |
getDereferenceOnClose()
INTERNAL: Returns the flag that specifies if the reference should
deregister itself from the topic map source when the referenced
store is being closed.
|
void |
setDereferenceOnClose(boolean deref_on_close)
INTERNAL: Sets the dereference on close flag.
|
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it
has been closed.
|
addTopicListener, clear, close, delete, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, open, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, setTopicListeners
protected TopicMapStoreFactoryIF sfactory_rw
protected TopicMapStoreFactoryIF sfactory_ro
protected boolean deref_on_close
public StoreFactoryReference(String id, String title, TopicMapStoreFactoryIF sfactory)
public StoreFactoryReference(String id, String title, TopicMapStoreFactoryIF sfactory_rw, TopicMapStoreFactoryIF sfactory_ro)
public TopicMapStoreIF createStore(boolean readonly) throws IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
createStore
in class AbstractTopicMapReference
IOException
public boolean getDereferenceOnClose()
Note that this only works when the source is of type DefaultTopicMapSource.
public void setDereferenceOnClose(boolean deref_on_close)
public void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIF
storeClosed
in interface TopicMapReferenceIF
storeClosed
in class AbstractTopicMapReference