|
||||||||||
| 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.Topic
public class Topic
INTERNAL: The basic topic implementation.
| Field Summary | |
|---|---|
protected java.util.Set<LocatorIF> |
indicators
|
protected java.util.Set<TopicNameIF> |
names
|
protected java.util.Set<OccurrenceIF> |
occurs
|
protected ReifiableIF |
reified
|
protected java.util.Set<AssociationRoleIF> |
roles
|
protected UniqueSet<TopicIF> |
scope
|
protected java.util.Set<LocatorIF> |
subjects
|
protected UniqueSet<TopicIF> |
types
|
| Fields inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
|---|
MSG_NULL_ARGUMENT, sources |
| Constructor Summary | |
|---|---|
protected |
Topic(TopicMap tm)
|
| Method Summary | |
|---|---|
protected void |
addOccurrence(OccurrenceIF _occurrence)
|
protected void |
addRole(AssociationRoleIF assoc_role)
INTERNAL: Adds the association role to the set of association roles in which the topic participates. |
void |
addSubjectIdentifier(LocatorIF subject_indicator)
PUBLIC: Adds the given subject identifier to the set of subject identifiers for this topic. |
void |
addSubjectLocator(LocatorIF subject_locator)
PUBLIC: Adds the given subject locator to the set of subject locators for this topic. |
protected void |
addTopicName(TopicNameIF _name)
|
void |
addType(TopicIF type)
PUBLIC: Adds a type to this topic. |
java.util.Collection<OccurrenceIF> |
getOccurrences()
PUBLIC: Gets the occurrences of this topic. |
ReifiableIF |
getReified()
PUBLIC: Returns the topic map object that this topic reifies. |
java.util.Collection<AssociationRoleIF> |
getRoles()
PUBLIC: Gets the association roles played by this topic. |
java.util.Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype)
PUBLIC: Gets the association roles of the specifed type played by this topic. |
java.util.Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype,
TopicIF assoc_type)
PUBLIC: Gets the association roles of the specifed type played by this topic. |
java.util.Collection<LocatorIF> |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic. |
java.util.Collection<LocatorIF> |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic. |
java.util.Collection<TopicNameIF> |
getTopicNames()
PUBLIC: Gets the names of this topic. |
java.util.Collection<TopicIF> |
getTypes()
PUBLIC: Gets the types that this topic is an instance of. |
void |
merge(TopicIF topic)
EXPERIMENTAL: Merges the characteristics of one topic into another topic. |
void |
remove()
PUBLIC: Removes the object from its parent. |
protected void |
removeOccurrence(OccurrenceIF _occurrence)
|
protected void |
removeRole(AssociationRoleIF assoc_role)
INTERNAL: Removes the association role from the set of association roles in which the topic participates. |
void |
removeSubjectIdentifier(LocatorIF subject_indicator)
PUBLIC: Removes the given subject identifier from the set of subject identifiers for this topic. |
void |
removeSubjectLocator(LocatorIF subject_locator)
PUBLIC: Removes the given subject locator from the set of subject locators for this topic. |
protected void |
removeTopicName(TopicNameIF _name)
|
void |
removeType(TopicIF type)
PUBLIC: Removes a type from this topic. |
java.lang.String |
toString()
|
| Methods inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
|---|
addItemIdentifier, fireEvent, getItemIdentifiers, getObjectId, getTopicMap, isConnected, isReadOnly, removeItemIdentifier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
|---|
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, removeItemIdentifier |
| Field Detail |
|---|
protected java.util.Set<LocatorIF> subjects
protected java.util.Set<LocatorIF> indicators
protected ReifiableIF reified
protected UniqueSet<TopicIF> scope
protected UniqueSet<TopicIF> types
protected java.util.Set<TopicNameIF> names
protected java.util.Set<OccurrenceIF> occurs
protected java.util.Set<AssociationRoleIF> roles
| Constructor Detail |
|---|
protected Topic(TopicMap tm)
| Method Detail |
|---|
public java.util.Collection<LocatorIF> getSubjectLocators()
TopicIF
getSubjectLocators in interface TopicIF
public void addSubjectLocator(LocatorIF subject_locator)
throws ConstraintViolationException
TopicIF
addSubjectLocator in interface TopicIFsubject_locator - A locator for the subject locator to be added;
an object implementing LocatorIF.
ConstraintViolationException - Thrown if the topic map
already has a topic with this subject locator.public void removeSubjectLocator(LocatorIF subject_locator)
TopicIF
removeSubjectLocator in interface TopicIFsubject_locator - A locator for the subject locator to be removed;
an object implementing LocatorIF.public java.util.Collection<LocatorIF> getSubjectIdentifiers()
TopicIF
getSubjectIdentifiers in interface TopicIF
public void addSubjectIdentifier(LocatorIF subject_indicator)
throws ConstraintViolationException
TopicIF
addSubjectIdentifier in interface TopicIFsubject_indicator - A locator for the subject identifier to be added;
an object implementing LocatorIF.
ConstraintViolationException - Thrown if the topic map
already has a topic with this addressable subject.public void removeSubjectIdentifier(LocatorIF subject_indicator)
TopicIF
removeSubjectIdentifier in interface TopicIFsubject_indicator - A locator for the subject identifier to be removed;
an object implementing LocatorIF.public java.util.Collection<TopicNameIF> getTopicNames()
TopicIF
getTopicNames in interface TopicIFprotected void addTopicName(TopicNameIF _name)
protected void removeTopicName(TopicNameIF _name)
public java.util.Collection<OccurrenceIF> getOccurrences()
TopicIF
getOccurrences in interface TopicIFprotected void addOccurrence(OccurrenceIF _occurrence)
protected void removeOccurrence(OccurrenceIF _occurrence)
public java.util.Collection<AssociationRoleIF> getRoles()
TopicIF
getRoles in interface TopicIFpublic java.util.Collection<AssociationRoleIF> getRolesByType(TopicIF roletype)
TopicIF
getRolesByType in interface TopicIF
public java.util.Collection<AssociationRoleIF> getRolesByType(TopicIF roletype,
TopicIF assoc_type)
TopicIF
getRolesByType in interface TopicIFpublic void merge(TopicIF topic)
TopicIF
merge in interface TopicIFtopic - topicIF; the source topic. This is empty after the
operation and is removed from the topic map.protected void addRole(AssociationRoleIF assoc_role)
protected void removeRole(AssociationRoleIF assoc_role)
public void remove()
TMObjectIF
remove in interface TMObjectIFpublic java.util.Collection<TopicIF> getTypes()
TopicIF
getTypes in interface TopicIFpublic void addType(TopicIF type)
TopicIF
addType in interface TopicIFtype - The additional type; an object implementing TopicIF.public void removeType(TopicIF type)
TopicIF
removeType in interface TopicIFtype - The type to be removed; an object implementing TopicIF.public ReifiableIF getReified()
TopicIF
getReified in interface TopicIFpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||