public class RemoteTopic extends Topic
indicators, names, occurs, reified, roles, scope, subjects, types
oid, parent, sources, topicmap
EVENT_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_REMOVED
EVENT_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, setTopicMap
fireEvent, isConnected
public boolean isLoaded()
public void setLoaded(boolean isLoaded)
protected void setRealTopic(RemoteTopic topic)
public TopicIF getRealTopic()
public void checkLoad()
public Collection<LocatorIF> getSubjectLocators()
TopicIF
getSubjectLocators
in interface TopicIF
getSubjectLocators
in class Topic
public void addSubjectLocator(LocatorIF subject_locator) throws ConstraintViolationException
TopicIF
addSubjectLocator
in interface TopicIF
addSubjectLocator
in class Topic
subject_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 TopicIF
removeSubjectLocator
in class Topic
subject_locator
- A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection<LocatorIF> getSubjectIdentifiers()
TopicIF
getSubjectIdentifiers
in interface TopicIF
getSubjectIdentifiers
in class Topic
public void addSubjectIdentifier(LocatorIF subject_indicator) throws ConstraintViolationException
TopicIF
addSubjectIdentifier
in interface TopicIF
addSubjectIdentifier
in class Topic
subject_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 TopicIF
removeSubjectIdentifier
in class Topic
subject_indicator
- A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection<TopicNameIF> getTopicNames()
TopicIF
getTopicNames
in interface TopicIF
getTopicNames
in class Topic
protected void addTopicName(TopicNameIF _basename)
addTopicName
in class Topic
protected void removeTopicName(TopicNameIF _basename)
removeTopicName
in class Topic
public Collection<OccurrenceIF> getOccurrences()
TopicIF
getOccurrences
in interface TopicIF
getOccurrences
in class Topic
protected void addOccurrence(OccurrenceIF _occurrence)
addOccurrence
in class Topic
protected void removeOccurrence(OccurrenceIF _occurrence)
removeOccurrence
in class Topic
public Collection<AssociationRoleIF> getRoles()
TopicIF
public void remove()
TMObjectIF
remove
in interface TMObjectIF
remove
in class Topic
public Collection<TopicIF> getTypes()
TopicIF
public void addType(TopicIF type)
TopicIF
public void removeType(TopicIF type)
TopicIF
removeType
in interface TopicIF
removeType
in class Topic
type
- The type to be removed; an object implementing TopicIF.public String getObjectId()
TMObjectIF
getObjectId
in interface TMObjectIF
getObjectId
in class TMObject
public boolean isReadOnly()
TMObjectIF
isReadOnly
in interface TMObjectIF
isReadOnly
in class TMObject
public TopicMapIF getTopicMap()
TMObjectIF
getTopicMap
in interface TMObjectIF
getTopicMap
in class TMObject
public Collection<LocatorIF> getItemIdentifiers()
TMObjectIF
The 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 TMObjectIF
getItemIdentifiers
in class TMObject
public void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIF
addItemIdentifier
in interface TMObjectIF
addItemIdentifier
in class TMObject
source_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)
TMObjectIF
removeItemIdentifier
in interface TMObjectIF
removeItemIdentifier
in class TMObject
source_locator
- The item identifier to be removed; an object implementing LocatorIF.public void merge(TopicIF topic)
TopicIF
public void debug()
public boolean equals(RemoteTopic obj)