public class Topic extends TMObject implements TopicIF
| Modifier and Type | Field and Description |
|---|---|
protected Set<LocatorIF> |
indicators |
protected Set<TopicNameIF> |
names |
protected Set<OccurrenceIF> |
occurs |
protected ReifiableIF |
reified |
protected Set<AssociationRoleIF> |
roles |
protected UniqueSet<TopicIF> |
scope |
protected Set<LocatorIF> |
subjects |
protected UniqueSet<TopicIF> |
types |
oid, parent, sources, topicmapEVENT_ADD_OCCURRENCE, EVENT_ADD_SUBJECTIDENTIFIER, EVENT_ADD_SUBJECTLOCATOR, EVENT_ADD_TOPICNAME, EVENT_ADD_TYPE, EVENT_ADDED, EVENT_MODIFIED, EVENT_REMOVE_OCCURRENCE, EVENT_REMOVE_SUBJECTIDENTIFIER, EVENT_REMOVE_SUBJECTLOCATOR, EVENT_REMOVE_TOPICNAME, EVENT_REMOVE_TYPE, EVENT_REMOVEDEVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT| Modifier and Type | Method and Description |
|---|---|
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.
|
Collection<AssociationIF> |
getAssociations()
PUBLIC: Gets the associations that have roles played by this topic.
|
Collection<AssociationIF> |
getAssociationsByType(TopicIF type)
PUBLIC: Gets the associations that have roles played by this topic,
where the association is of specified type.
|
Collection<OccurrenceIF> |
getOccurrences()
PUBLIC: Gets the occurrences of this topic.
|
Collection<OccurrenceIF> |
getOccurrencesByType(TopicIF type)
PUBLIC: Gets the occurrences of this topic with a specified type.
|
ReifiableIF |
getReified()
PUBLIC: Returns the topic map object that this topic reifies.
|
Collection<AssociationRoleIF> |
getRoles()
PUBLIC: Gets the association roles played by this topic.
|
Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype)
PUBLIC: Gets the association roles of the specifed type played
by this topic.
|
Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype,
TopicIF assoc_type)
PUBLIC: Gets the association roles of the specifed type played
by this topic.
|
Collection<LocatorIF> |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic.
|
Collection<LocatorIF> |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic.
|
Collection<TopicNameIF> |
getTopicNames()
PUBLIC: Gets the names of this topic.
|
Collection<TopicNameIF> |
getTopicNamesByType(TopicIF type)
PUBLIC: Gets the topic names of this topic with a specified type.
|
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.
|
protected void |
setReified(ReifiableIF reified) |
protected void |
setTopicMap(TopicMap parent)
INTERNAL: Sets the topic map that the object belongs to.
|
String |
toString() |
addItemIdentifier, fireEvent, getItemIdentifiers, getObjectId, getTopicMap, isConnected, isReadOnly, removeItemIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, removeItemIdentifierprotected ReifiableIF reified
protected Set<TopicNameIF> names
protected Set<OccurrenceIF> occurs
protected Set<AssociationRoleIF> roles
protected Topic(TopicMap tm)
protected void setTopicMap(TopicMap parent)
public Collection<LocatorIF> getSubjectLocators()
TopicIFgetSubjectLocators in interface TopicIFpublic void addSubjectLocator(LocatorIF subject_locator) throws ConstraintViolationException
TopicIFaddSubjectLocator 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)
TopicIFremoveSubjectLocator in interface TopicIFsubject_locator - A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection<LocatorIF> getSubjectIdentifiers()
TopicIFgetSubjectIdentifiers in interface TopicIFpublic void addSubjectIdentifier(LocatorIF subject_indicator) throws ConstraintViolationException
TopicIFaddSubjectIdentifier 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)
TopicIFremoveSubjectIdentifier in interface TopicIFsubject_indicator - A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection<TopicNameIF> getTopicNames()
TopicIFgetTopicNames in interface TopicIFprotected void addTopicName(TopicNameIF _name)
protected void removeTopicName(TopicNameIF _name)
public Collection<TopicNameIF> getTopicNamesByType(TopicIF type)
TopicIFgetTopicNamesByType in interface TopicIFpublic Collection<OccurrenceIF> getOccurrences()
TopicIFgetOccurrences in interface TopicIFpublic Collection<OccurrenceIF> getOccurrencesByType(TopicIF type)
TopicIFgetOccurrencesByType in interface TopicIFprotected void addOccurrence(OccurrenceIF _occurrence)
protected void removeOccurrence(OccurrenceIF _occurrence)
public Collection<AssociationRoleIF> getRoles()
TopicIFpublic Collection<AssociationRoleIF> getRolesByType(TopicIF roletype)
TopicIFgetRolesByType in interface TopicIFpublic Collection<AssociationRoleIF> getRolesByType(TopicIF roletype, TopicIF assoc_type)
TopicIFgetRolesByType in interface TopicIFpublic Collection<AssociationIF> getAssociations()
TopicIFgetAssociations in interface TopicIFpublic Collection<AssociationIF> getAssociationsByType(TopicIF type)
TopicIFgetAssociationsByType in interface TopicIFpublic void merge(TopicIF topic)
TopicIFprotected void addRole(AssociationRoleIF assoc_role)
protected void removeRole(AssociationRoleIF assoc_role)
public void remove()
TMObjectIFremove in interface TMObjectIFpublic Collection<TopicIF> getTypes()
TopicIFpublic void addType(TopicIF type)
TopicIFpublic void removeType(TopicIF type)
TopicIFremoveType in interface TopicIFtype - The type to be removed; an object implementing TopicIF.public ReifiableIF getReified()
TopicIFgetReified in interface TopicIFprotected void setReified(ReifiableIF reified)