|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.AbstractTopicMapReference net.ontopia.topicmaps.entry.StoreFactoryReference
public class StoreFactoryReference
INTERNAL: A topic map reference that uses a topic map store factory to create stores. To create a reference for an in-memory topic map wrap it in the SameStoreFactory.
Field Summary | |
---|---|
protected boolean |
deref_on_close
|
protected TopicMapStoreFactoryIF |
sfactory_ro
|
protected TopicMapStoreFactoryIF |
sfactory_rw
|
Fields inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference |
---|
deleted, id, isopen, listeners, source, title, topic_listeners |
Constructor Summary | |
---|---|
StoreFactoryReference(java.lang.String id,
java.lang.String title,
TopicMapStoreFactoryIF sfactory)
|
|
StoreFactoryReference(java.lang.String id,
java.lang.String title,
TopicMapStoreFactoryIF sfactory_rw,
TopicMapStoreFactoryIF sfactory_ro)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference |
---|
addTopicListener, clear, close, delete, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, open, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, setTopicListeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TopicMapStoreFactoryIF sfactory_rw
protected TopicMapStoreFactoryIF sfactory_ro
protected boolean deref_on_close
Constructor Detail |
---|
public StoreFactoryReference(java.lang.String id, java.lang.String title, TopicMapStoreFactoryIF sfactory)
public StoreFactoryReference(java.lang.String id, java.lang.String title, TopicMapStoreFactoryIF sfactory_rw, TopicMapStoreFactoryIF sfactory_ro)
Method Detail |
---|
public TopicMapStoreIF createStore(boolean readonly) throws java.io.IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
createStore
in class AbstractTopicMapReference
java.io.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |