|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.AbstractTopicMapReference
public abstract class AbstractTopicMapReference
INTERNAL: An abstract topic map reference class that contains methods that handles the id and title properties. Subclasses should implement the createStore method.
Field Summary | |
---|---|
protected boolean |
deleted
|
protected java.lang.String |
id
|
protected boolean |
isopen
|
protected java.util.List<TopicMapListenerIF> |
listeners
|
protected TopicMapSourceIF |
source
|
protected java.lang.String |
title
|
protected TopicMapListenerIF[] |
topic_listeners
|
Constructor Summary | |
---|---|
AbstractTopicMapReference(java.lang.String id,
java.lang.String title)
|
Method Summary | |
---|---|
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. |
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. |
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(java.lang.String listenerList)
INTERNAL: Register topic listener from list of listener implementations. |
void |
removeTopicListener(TopicMapListenerIF listener)
INTERNAL: Remove topic listener from 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. |
protected void |
setTopicListeners(TopicMapListenerIF[] topic_listeners)
|
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it has been closed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected java.lang.String title
protected boolean isopen
protected boolean deleted
protected TopicMapSourceIF source
protected java.util.List<TopicMapListenerIF> listeners
protected TopicMapListenerIF[] topic_listeners
Constructor Detail |
---|
public AbstractTopicMapReference(java.lang.String id, java.lang.String title)
Method Detail |
---|
public java.lang.String getId()
TopicMapReferenceIF
getId
in interface TopicMapReferenceIF
public void setId(java.lang.String id)
TopicMapReferenceIF
UnsupportedOperationException
if it does not support
setting the id.
setId
in interface TopicMapReferenceIF
public java.lang.String getTitle()
TopicMapReferenceIF
getTitle
in interface TopicMapReferenceIF
public void setTitle(java.lang.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 TopicMapReferenceIF
public boolean isDeleted()
TopicMapReferenceIF
isDeleted
in interface TopicMapReferenceIF
public void delete()
TopicMapReferenceIF
delete
in interface TopicMapReferenceIF
public void clear() throws java.io.IOException
TopicMapReferenceIF
clear
in interface TopicMapReferenceIF
java.io.IOException
public abstract TopicMapStoreIF createStore(boolean readonly) throws java.io.IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
java.io.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(java.lang.String listenerList)
protected void makeListenerArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |