|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 String |
id
|
protected boolean |
isopen
|
protected List<TopicMapListenerIF> |
listeners
|
protected TopicMapSourceIF |
source
|
protected String |
title
|
protected TopicMapListenerIF[] |
topic_listeners
|
| Constructor Summary | |
|---|---|
AbstractTopicMapReference(String id,
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected String title
protected boolean isopen
protected boolean deleted
protected TopicMapSourceIF source
protected List<TopicMapListenerIF> listeners
protected TopicMapListenerIF[] topic_listeners
| Constructor Detail |
|---|
public AbstractTopicMapReference(String id,
String title)
| Method Detail |
|---|
public String getId()
TopicMapReferenceIF
getId in interface TopicMapReferenceIFpublic void setId(String id)
TopicMapReferenceIFUnsupportedOperationException if it does not support
setting the id.
setId in interface TopicMapReferenceIFpublic String getTitle()
TopicMapReferenceIF
getTitle in interface TopicMapReferenceIFpublic void setTitle(String title)
TopicMapReferenceIF
setTitle in interface TopicMapReferenceIFpublic TopicMapSourceIF getSource()
TopicMapReferenceIF
getSource in interface TopicMapReferenceIFpublic void setSource(TopicMapSourceIF source)
TopicMapReferenceIFUnsupportedOperationException if it does not support
setting the source.
setSource in interface TopicMapReferenceIFpublic boolean isOpen()
TopicMapReferenceIF
isOpen in interface TopicMapReferenceIFpublic void open()
TopicMapReferenceIF
open in interface TopicMapReferenceIFpublic void close()
TopicMapReferenceIF
close in interface TopicMapReferenceIFpublic boolean isDeleted()
TopicMapReferenceIF
isDeleted in interface TopicMapReferenceIFpublic void delete()
TopicMapReferenceIF
delete in interface TopicMapReferenceIF
public void clear()
throws IOException
TopicMapReferenceIF
clear in interface TopicMapReferenceIFIOException
public abstract TopicMapStoreIF createStore(boolean readonly)
throws IOException
TopicMapReferenceIF
createStore in interface TopicMapReferenceIFIOExceptionpublic void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIF
storeClosed 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||