public abstract class AbstractTopicMapReference extends Object implements TopicMapReferenceIF
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deleted |
protected String |
id |
protected boolean |
isopen |
protected List<TopicMapListenerIF> |
listeners |
protected TopicMapSourceIF |
source |
protected String |
title |
protected TopicMapListenerIF[] |
topic_listeners |
| Constructor and Description |
|---|
AbstractTopicMapReference(String id,
String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTopicListener(TopicMapListenerIF listener)
INTERNAL: Add topic listener to reference.
|
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.
|
abstract 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.
|
protected TopicMapListenerIF[] |
getTopicListeners() |
boolean |
isDeleted()
PUBLIC: Returns true if the topic map has been deleted.
|
boolean |
isOpen()
PUBLIC: Returns true if the reference is open.
|
protected void |
makeListenerArray() |
void |
open()
PUBLIC: Opens the reference.
|
void |
registerTopicListeners(String listenerList)
INTERNAL: Register topic listener from list of listener implementations.
|
void |
removeTopicListener(TopicMapListenerIF listener)
INTERNAL: Remove topic listener from 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.
|
protected void |
setTopicListeners(TopicMapListenerIF[] topic_listeners) |
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it
has been closed.
|
protected String id
protected String title
protected boolean isopen
protected boolean deleted
protected TopicMapSourceIF source
protected List<TopicMapListenerIF> listeners
protected TopicMapListenerIF[] topic_listeners
public String getId()
TopicMapReferenceIFgetId in interface TopicMapReferenceIFpublic void setId(String id)
TopicMapReferenceIFUnsupportedOperationException if it does not support
setting the id.setId in interface TopicMapReferenceIFpublic String getTitle()
TopicMapReferenceIFgetTitle in interface TopicMapReferenceIFpublic void setTitle(String title)
TopicMapReferenceIFsetTitle in interface TopicMapReferenceIFpublic TopicMapSourceIF getSource()
TopicMapReferenceIFgetSource in interface TopicMapReferenceIFpublic void setSource(TopicMapSourceIF source)
TopicMapReferenceIFUnsupportedOperationException if it does not support
setting the source.setSource in interface TopicMapReferenceIFpublic boolean isOpen()
TopicMapReferenceIFisOpen in interface TopicMapReferenceIFpublic void open()
TopicMapReferenceIFopen in interface TopicMapReferenceIFpublic void close()
TopicMapReferenceIFclose in interface AutoCloseableclose in interface TopicMapReferenceIFpublic boolean isDeleted()
TopicMapReferenceIFisDeleted in interface TopicMapReferenceIFpublic void delete()
TopicMapReferenceIFdelete in interface TopicMapReferenceIFpublic void clear()
throws IOException
TopicMapReferenceIFclear in interface TopicMapReferenceIFIOExceptionpublic abstract TopicMapStoreIF createStore(boolean readonly) throws IOException
TopicMapReferenceIFcreateStore in interface TopicMapReferenceIFIOExceptionpublic void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIFstoreClosed in interface TopicMapReferenceIFprotected TopicMapListenerIF[] getTopicListeners()
protected void setTopicListeners(TopicMapListenerIF[] topic_listeners)
public void addTopicListener(TopicMapListenerIF listener)
public void removeTopicListener(TopicMapListenerIF listener)
public void registerTopicListeners(String listenerList)
protected void makeListenerArray()