public interface TopicMapReferenceIF extends AutoCloseable
A reference is always considered to be open once it has been constructed. It can also be reopened if it has been closed, but not if it has been deleted.
The most common TopicMapReferenceIF implementations (such as the one for RDBMS topic maps) are thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
clear()
EXPERIMENTAL: Closes all open stores and clears the topic map by
removing all data.
|
void |
close()
PUBLIC: Closes all open stores and the reference itself.
|
TopicMapStoreIF |
createStore(boolean readonly)
PUBLIC: Creates a topic map store that lets you access the
referenced topic map.
|
void |
delete()
PUBLIC: Closes all open stores and deletes the topic map.
|
String |
getId()
PUBLIC: Gets the id of the reference.
|
TopicMapSourceIF |
getSource()
PUBLIC: Gets the source to which the reference belongs.
|
String |
getTitle()
PUBLIC: Gets the title of the reference.
|
boolean |
isDeleted()
PUBLIC: Returns true if the topic map has been deleted.
|
boolean |
isOpen()
PUBLIC: Returns true if the reference is open.
|
void |
open()
PUBLIC: Opens the reference.
|
void |
setId(String id)
INTERNAL: Sets the id of the reference.
|
void |
setSource(TopicMapSourceIF source)
PUBLIC: Sets the source to which the reference belongs.
|
void |
setTitle(String title)
PUBLIC: Sets the title of the reference.
|
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it
has been closed.
|
String getId()
void setId(String id)
UnsupportedOperationException
if it does not support
setting the id.String getTitle()
void setTitle(String title)
TopicMapSourceIF getSource()
void setSource(TopicMapSourceIF source)
UnsupportedOperationException
if it does not support
setting the source.TopicMapStoreIF createStore(boolean readonly) throws IOException
IOException
boolean isOpen()
void open()
void close()
close
in interface AutoCloseable
boolean isDeleted()
void delete()
void clear() throws IOException
IOException
void storeClosed(TopicMapStoreIF store)