|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.entry.DefaultTopicMapSource
public class DefaultTopicMapSource
INTERNAL: A convenience class that that maintains an arbitrary collection of topic map references. References that are registered with the source gets its source overridden. When a reference is removed its source is set to null.
| Field Summary | |
|---|---|
protected boolean |
hidden
|
protected java.lang.String |
id
|
protected java.util.Collection<TopicMapReferenceIF> |
refs
|
protected java.lang.String |
title
|
| Constructor Summary | |
|---|---|
DefaultTopicMapSource()
|
|
DefaultTopicMapSource(java.util.Collection<TopicMapReferenceIF> refs)
|
|
DefaultTopicMapSource(TopicMapReferenceIF reference)
|
|
| Method Summary | |
|---|---|
void |
addReference(TopicMapReferenceIF reference)
INTERNAL: Adds the reference to the source and registers the source as the source of the reference. |
TopicMapReferenceIF |
createTopicMap(java.lang.String name,
java.lang.String baseAddress)
PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. |
boolean |
getHidden()
|
java.lang.String |
getId()
PUBLIC: Gets the id of the source. |
java.util.Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIFs found by the topic map source. |
java.lang.String |
getTitle()
PUBLIC: Gets the title of the source. |
void |
refresh()
PUBLIC: Refreshes the collection of references. |
void |
removeReference(TopicMapReferenceIF reference)
INTERNAL: Removes the reference from the source and deregisters the source from the reference. |
void |
setHidden(boolean hidden)
|
void |
setId(java.lang.String id)
PUBLIC: Sets the id of the source. |
void |
setTitle(java.lang.String title)
PUBLIC: Sets the title of the source. |
boolean |
supportsCreate()
PUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap. |
boolean |
supportsDelete()
PUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method. |
| 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 hidden
protected java.util.Collection<TopicMapReferenceIF> refs
| Constructor Detail |
|---|
public DefaultTopicMapSource()
public DefaultTopicMapSource(java.util.Collection<TopicMapReferenceIF> refs)
public DefaultTopicMapSource(TopicMapReferenceIF reference)
| Method Detail |
|---|
public java.lang.String getId()
TopicMapSourceIF
getId in interface TopicMapSourceIFpublic void setId(java.lang.String id)
TopicMapSourceIFUnsupportedOperationException if it does not support
setting the id.
setId in interface TopicMapSourceIFpublic java.lang.String getTitle()
TopicMapSourceIF
getTitle in interface TopicMapSourceIFpublic void setTitle(java.lang.String title)
TopicMapSourceIF
setTitle in interface TopicMapSourceIFpublic java.util.Collection<TopicMapReferenceIF> getReferences()
TopicMapSourceIFTopicMapReferenceIFs found by the topic map source.
getReferences in interface TopicMapSourceIFpublic void refresh()
TopicMapSourceIF
refresh in interface TopicMapSourceIFpublic void addReference(TopicMapReferenceIF reference)
public void removeReference(TopicMapReferenceIF reference)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate in interface TopicMapSourceIFpublic boolean supportsDelete()
TopicMapSourceIF
supportsDelete in interface TopicMapSourceIF
public TopicMapReferenceIF createTopicMap(java.lang.String name,
java.lang.String baseAddress)
TopicMapSourceIF
createTopicMap in interface TopicMapSourceIFpublic boolean getHidden()
public void setHidden(boolean hidden)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||