public interface TopicMapSourceIF extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
PUBLIC: Closes the source by releasing references it holds to e.g.
|
TopicMapReferenceIF |
createTopicMap(String name,
String baseAddressURI)
PUBLIC: Creates a new topic map in the underlying source
and returns a reference to the created topic map.
|
String |
getId()
PUBLIC: Gets the id of the source.
|
Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns an unmodifiable collection of
TopicMapReferenceIF s found by the topic map source. |
String |
getTitle()
PUBLIC: Gets the title of the source.
|
void |
refresh()
PUBLIC: Refreshes the collection of references.
|
void |
setId(String id)
PUBLIC: Sets the id of the source.
|
void |
setTitle(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.
|
String getId()
void setId(String id)
UnsupportedOperationException
if it does not support
setting the id.String getTitle()
void setTitle(String title)
Collection<TopicMapReferenceIF> getReferences()
TopicMapReferenceIF
s found by the topic map source.void refresh()
void close()
close
in interface AutoCloseable
boolean supportsCreate()
boolean supportsDelete()
TopicMapReferenceIF createTopicMap(String name, String baseAddressURI)
UnsupportedOperationException