public interface TopicMapIF extends TMObjectIF, ReifiableIF
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_ADD_ASSOCIATION |
static String |
EVENT_ADD_TOPIC |
static String |
EVENT_REMOVE_ASSOCIATION |
static String |
EVENT_REMOVE_TOPIC |
EVENT_SET_REIFIER
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
Modifier and Type | Method and Description |
---|---|
void |
clear()
PUBLIC: Clears the topic map by removing all topics and associations.
|
Collection<AssociationIF> |
getAssociations()
PUBLIC: Gets all associations in this topic map.
|
TopicMapBuilderIF |
getBuilder()
PUBLIC: Gets a topic map builder for use with this transaction.
|
Object |
getIndex(String name)
PUBLIC: Gets an index by name.
|
TMObjectIF |
getObjectById(String object_id)
PUBLIC: Gets the topic map object that has the given object
id, from this topic map.
|
TMObjectIF |
getObjectByItemIdentifier(LocatorIF locator)
PUBLIC: Gets the topic map object that has the given item
identifier (given as a LocatorIF object), from this topic map.
|
TopicMapStoreIF |
getStore()
PUBLIC: Gets the store to which the topic map's transaction is
connected.
|
TopicIF |
getTopicBySubjectIdentifier(LocatorIF locator)
PUBLIC: Gets the topic that has the specified subject identifier,
given as a locator.
|
TopicIF |
getTopicBySubjectLocator(LocatorIF locator)
PUBLIC: Gets the topic in this topic map that represents the
given addressable subject (locator given as a LocatorIF object).
|
Collection<TopicIF> |
getTopics()
PUBLIC: Gets all topics in this topic map.
|
getReifier, setReifier
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
static final String EVENT_ADD_TOPIC
static final String EVENT_REMOVE_TOPIC
static final String EVENT_ADD_ASSOCIATION
static final String EVENT_REMOVE_ASSOCIATION
TopicMapStoreIF getStore()
TopicMapBuilderIF getBuilder()
Object getIndex(String name)
name
- A string; the index name, i.e.g the interface that it
implements.OntopiaUnsupportedException
- Thrown if the index is either
unknown or not supported.Collection<TopicIF> getTopics()
Collection<AssociationIF> getAssociations()
TMObjectIF getObjectById(String object_id)
object_id
- A string; the object id of the object to get.TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
locator
- The given locator; an object implementing LocatorIF.TopicIF getTopicBySubjectLocator(LocatorIF locator)
locator
- The given locator; an object implementing LocatorIF.TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
locator
- The given locator; an object implementing LocatorIF.void clear()