|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopicMapReferenceIF
PUBLIC: Represents a reference to a topic map. A topic map reference is used to get hold of TopicMapStoreIF instances.
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.
Method Summary | |
---|---|
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. |
java.lang.String |
getId()
PUBLIC: Gets the id of the reference. |
TopicMapSourceIF |
getSource()
PUBLIC: Gets the source to which the reference belongs. |
java.lang.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(java.lang.String id)
INTERNAL: Sets the id of the reference. |
void |
setSource(TopicMapSourceIF source)
PUBLIC: Sets the source to which the reference belongs. |
void |
setTitle(java.lang.String title)
PUBLIC: Sets the title of the reference. |
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it has been closed. |
Method Detail |
---|
java.lang.String getId()
void setId(java.lang.String id)
UnsupportedOperationException
if it does not support
setting the id.
java.lang.String getTitle()
void setTitle(java.lang.String title)
TopicMapSourceIF getSource()
void setSource(TopicMapSourceIF source)
UnsupportedOperationException
if it does not support
setting the source.
TopicMapStoreIF createStore(boolean readonly) throws java.io.IOException
java.io.IOException
boolean isOpen()
void open()
void close()
boolean isDeleted()
void delete()
void clear() throws java.io.IOException
java.io.IOException
void storeClosed(TopicMapStoreIF store)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |