|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.impl.basic.TMObject
net.ontopia.topicmaps.impl.basic.TopicMap
public class TopicMap
INTERNAL: The basic topic map implementation.
Field Summary | |
---|---|
UniqueSet |
setpool
|
Method Summary | |
---|---|
void |
addAssociation(AssociationIF _association)
Adds an association to the set of associations. |
void |
addListener(net.ontopia.topicmaps.impl.utils.EventListenerIF listener,
java.lang.String event)
|
void |
addTopic(TopicIF _topic)
Adds a topic to the set of topics. |
void |
clear()
PUBLIC: Clears the topic map by removing all topics and associations. |
java.util.Collection |
getAssociations()
PUBLIC: Gets all associations in this topic map. |
TopicMapBuilderIF |
getBuilder()
PUBLIC: Gets a topic map builder for use with this transaction. |
java.lang.Object |
getIndex(java.lang.String name)
PUBLIC: Gets an index by name. |
TMObjectIF |
getObjectById(java.lang.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. |
TopicIF |
getReifier()
PUBLIC: Returns the topic that reifies this object. |
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). |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
java.util.Collection |
getTopics()
PUBLIC: Gets all topics in this topic map. |
net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF |
getTransaction()
|
void |
processEvent(java.lang.Object object,
java.lang.String event,
java.lang.Object new_value,
java.lang.Object old_value)
|
void |
remove()
PUBLIC: Removes the object from its parent. |
void |
removeAssociation(AssociationIF _association)
Removes an associations from the set of associations. |
void |
removeListener(net.ontopia.topicmaps.impl.utils.EventListenerIF listener,
java.lang.String event)
|
void |
removeTopic(TopicIF _topic)
Removes a topic from the set of topics. |
void |
setReifier(TopicIF _reifier)
PUBLIC: Sets the reifier of this object. |
java.lang.String |
toString()
|
Methods inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
---|
addItemIdentifier, getItemIdentifiers, getObjectId, isReadOnly, removeItemIdentifier |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public transient UniqueSet setpool
Method Detail |
---|
public TopicMapIF getTopicMap()
TMObjectIF
getTopicMap
in interface TMObjectIF
getTopicMap
in class TMObject
public TopicMapStoreIF getStore()
TopicMapIF
getStore
in interface TopicMapIF
public net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF getTransaction()
public TopicMapBuilderIF getBuilder()
TopicMapIF
getBuilder
in interface TopicMapIF
public java.lang.Object getIndex(java.lang.String name)
TopicMapIF
getIndex
in interface TopicMapIF
name
- A string; the index name, i.e.g the interface that it
implements.
public java.util.Collection getTopics()
TopicMapIF
getTopics
in interface TopicMapIF
public void addTopic(TopicIF _topic)
public void removeTopic(TopicIF _topic)
public java.util.Collection getAssociations()
TopicMapIF
getAssociations
in interface TopicMapIF
public void addAssociation(AssociationIF _association)
public void removeAssociation(AssociationIF _association)
public void remove()
TMObjectIF
remove
in interface TMObjectIF
public void clear()
TopicMapIF
clear
in interface TopicMapIF
public TMObjectIF getObjectById(java.lang.String object_id)
TopicMapIF
getObjectById
in interface TopicMapIF
object_id
- A string; the object id of the object to get.
public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
TopicMapIF
getObjectByItemIdentifier
in interface TopicMapIF
locator
- The given locator; an object implementing LocatorIF.
public TopicIF getTopicBySubjectLocator(LocatorIF locator)
TopicMapIF
getTopicBySubjectLocator
in interface TopicMapIF
locator
- The given locator; an object implementing LocatorIF.
public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
TopicMapIF
getTopicBySubjectIdentifier
in interface TopicMapIF
locator
- The given locator; an object implementing LocatorIF.
public TopicIF getReifier()
ReifiableIF
getReifier
in interface ReifiableIF
public void setReifier(TopicIF _reifier)
ReifiableIF
setReifier
in interface ReifiableIF
public java.lang.String toString()
toString
in class java.lang.Object
public void addListener(net.ontopia.topicmaps.impl.utils.EventListenerIF listener, java.lang.String event)
addListener
in interface net.ontopia.topicmaps.impl.utils.EventManagerIF
public void removeListener(net.ontopia.topicmaps.impl.utils.EventListenerIF listener, java.lang.String event)
removeListener
in interface net.ontopia.topicmaps.impl.utils.EventManagerIF
public void processEvent(java.lang.Object object, java.lang.String event, java.lang.Object new_value, java.lang.Object old_value)
processEvent
in interface net.ontopia.topicmaps.impl.utils.EventListenerIF
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |