public class RemoteTopic extends Topic
indicators, names, occurs, reified, roles, scope, subjects, typesoid, 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 |
|---|---|
void |
addItemIdentifier(LocatorIF source_locator)
PUBLIC: Adds the given item identifier to the set of item
item identifiers for this object.
|
protected void |
addOccurrence(OccurrenceIF _occurrence) |
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 _basename) |
void |
addType(TopicIF type)
PUBLIC: Adds a type to this topic.
|
void |
checkLoad() |
void |
debug() |
boolean |
equals(Object obj) |
boolean |
equals(RemoteTopic obj) |
Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object.
|
String |
getObjectId()
PUBLIC: Gets the id of this object.
|
Collection<OccurrenceIF> |
getOccurrences()
PUBLIC: Gets the occurrences of this topic.
|
TopicIF |
getRealTopic() |
Collection<AssociationRoleIF> |
getRoles()
PUBLIC: Gets the association roles 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.
|
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to.
|
Collection<TopicNameIF> |
getTopicNames()
PUBLIC: Gets the names of this topic.
|
Collection<TopicIF> |
getTypes()
PUBLIC: Gets the types that this topic is an instance of.
|
int |
hashCode() |
boolean |
isLoaded() |
boolean |
isReadOnly()
PUBLIC: Returns true if this object is read-only, otherwise false.
|
void |
merge(TopicIF topic)
EXPERIMENTAL: Merges the characteristics of one topic into
another topic.
|
void |
remove()
PUBLIC: Removes the object from its parent.
|
void |
removeItemIdentifier(LocatorIF source_locator)
PUBLIC: Removes the given item identifier from the set of item
identifiers.
|
protected void |
removeOccurrence(OccurrenceIF _occurrence) |
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 _basename) |
void |
removeType(TopicIF type)
PUBLIC: Removes a type from this topic.
|
void |
setLoaded(boolean isLoaded) |
protected void |
setRealTopic(RemoteTopic topic) |
String |
toString() |
addRole, getAssociations, getAssociationsByType, getOccurrencesByType, getReified, getRolesByType, getRolesByType, getTopicNamesByType, removeRole, setReified, setTopicMapfireEvent, isConnectedpublic boolean isLoaded()
public void setLoaded(boolean isLoaded)
protected void setRealTopic(RemoteTopic topic)
public TopicIF getRealTopic()
public void checkLoad()
public Collection<LocatorIF> getSubjectLocators()
TopicIFgetSubjectLocators in interface TopicIFgetSubjectLocators in class Topicpublic void addSubjectLocator(LocatorIF subject_locator) throws ConstraintViolationException
TopicIFaddSubjectLocator in interface TopicIFaddSubjectLocator in class Topicsubject_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 TopicIFremoveSubjectLocator in class Topicsubject_locator - A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection<LocatorIF> getSubjectIdentifiers()
TopicIFgetSubjectIdentifiers in interface TopicIFgetSubjectIdentifiers in class Topicpublic void addSubjectIdentifier(LocatorIF subject_indicator) throws ConstraintViolationException
TopicIFaddSubjectIdentifier in interface TopicIFaddSubjectIdentifier in class Topicsubject_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 TopicIFremoveSubjectIdentifier in class Topicsubject_indicator - A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection<TopicNameIF> getTopicNames()
TopicIFgetTopicNames in interface TopicIFgetTopicNames in class Topicprotected void addTopicName(TopicNameIF _basename)
addTopicName in class Topicprotected void removeTopicName(TopicNameIF _basename)
removeTopicName in class Topicpublic Collection<OccurrenceIF> getOccurrences()
TopicIFgetOccurrences in interface TopicIFgetOccurrences in class Topicprotected void addOccurrence(OccurrenceIF _occurrence)
addOccurrence in class Topicprotected void removeOccurrence(OccurrenceIF _occurrence)
removeOccurrence in class Topicpublic Collection<AssociationRoleIF> getRoles()
TopicIFpublic void remove()
TMObjectIFremove in interface TMObjectIFremove in class Topicpublic Collection<TopicIF> getTypes()
TopicIFpublic void addType(TopicIF type)
TopicIFpublic void removeType(TopicIF type)
TopicIFremoveType in interface TopicIFremoveType in class Topictype - The type to be removed; an object implementing TopicIF.public String getObjectId()
TMObjectIFgetObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic boolean isReadOnly()
TMObjectIFisReadOnly in interface TMObjectIFisReadOnly in class TMObjectpublic TopicMapIF getTopicMap()
TMObjectIFgetTopicMap in interface TMObjectIFgetTopicMap in class TMObjectpublic Collection<LocatorIF> getItemIdentifiers()
TMObjectIFThe purpose is to enable the engine to detect when references to external objects refer to objects that are already present within the system, such as topic maps which are already loaded.
getItemIdentifiers in interface TMObjectIFgetItemIdentifiers in class TMObjectpublic void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIFaddItemIdentifier in interface TMObjectIFaddItemIdentifier in class TMObjectsource_locator - The item identifier to be added; an object implementing LocatorIF.ConstraintViolationException - Thrown if another object
in the same topic map already has the given item
identifier.public void removeItemIdentifier(LocatorIF source_locator)
TMObjectIFremoveItemIdentifier in interface TMObjectIFremoveItemIdentifier in class TMObjectsource_locator - The item identifier to be removed; an object implementing LocatorIF.public void merge(TopicIF topic)
TopicIFpublic void debug()
public boolean equals(RemoteTopic obj)