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()
TopicMapReferenceIF
getId
in interface TopicMapReferenceIF
public void setId(String id)
TopicMapReferenceIF
UnsupportedOperationException
if it does not support
setting the id.setId
in interface TopicMapReferenceIF
public String getTitle()
TopicMapReferenceIF
getTitle
in interface TopicMapReferenceIF
public void setTitle(String title)
TopicMapReferenceIF
setTitle
in interface TopicMapReferenceIF
public TopicMapSourceIF getSource()
TopicMapReferenceIF
getSource
in interface TopicMapReferenceIF
public void setSource(TopicMapSourceIF source)
TopicMapReferenceIF
UnsupportedOperationException
if it does not support
setting the source.setSource
in interface TopicMapReferenceIF
public boolean isOpen()
TopicMapReferenceIF
isOpen
in interface TopicMapReferenceIF
public void open()
TopicMapReferenceIF
open
in interface TopicMapReferenceIF
public void close()
TopicMapReferenceIF
close
in interface AutoCloseable
close
in interface TopicMapReferenceIF
public boolean isDeleted()
TopicMapReferenceIF
isDeleted
in interface TopicMapReferenceIF
public void delete()
TopicMapReferenceIF
delete
in interface TopicMapReferenceIF
public void clear() throws IOException
TopicMapReferenceIF
clear
in interface TopicMapReferenceIF
IOException
public abstract TopicMapStoreIF createStore(boolean readonly) throws IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
IOException
public void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIF
storeClosed
in interface TopicMapReferenceIF
protected 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()