|
||||||||||
| 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
net.ontopia.topicmaps.impl.remote.RemoteTopic
public class RemoteTopic
INTERNAL: The remote topic implementation. Checks that it is loaded and then delegates calls to the super class.
| Field Summary |
|---|
| Fields inherited from class net.ontopia.topicmaps.impl.basic.Topic |
|---|
indicators, names, occurs, reified, roles, scope, subjects, types |
| Fields inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
|---|
MSG_NULL_ARGUMENT, sources |
| Method Summary | |
|---|---|
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 |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object. |
String |
getObjectId()
PUBLIC: Gets the id of this object. |
Collection |
getOccurrences()
PUBLIC: Gets the occurrences of this topic. |
TopicIF |
getRealTopic()
|
Collection |
getRoles()
PUBLIC: Gets the association roles played by this topic. |
Collection |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic. |
Collection |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic. |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
Collection |
getTopicNames()
PUBLIC: Gets the names of this topic. |
Collection |
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()
|
| Methods inherited from class net.ontopia.topicmaps.impl.basic.Topic |
|---|
addRole, getReified, getRolesByType, getRolesByType, removeRole |
| Methods inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
|---|
fireEvent, isConnected |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isLoaded()
public void setLoaded(boolean isLoaded)
protected void setRealTopic(RemoteTopic topic)
public TopicIF getRealTopic()
public void checkLoad()
public Collection getSubjectLocators()
TopicIF
getSubjectLocators in interface TopicIFgetSubjectLocators in class Topic
public void addSubjectLocator(LocatorIF subject_locator)
throws ConstraintViolationException
TopicIF
addSubjectLocator 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)
TopicIF
removeSubjectLocator in interface TopicIFremoveSubjectLocator in class Topicsubject_locator - A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection getSubjectIdentifiers()
TopicIF
getSubjectIdentifiers in interface TopicIFgetSubjectIdentifiers in class Topic
public void addSubjectIdentifier(LocatorIF subject_indicator)
throws ConstraintViolationException
TopicIF
addSubjectIdentifier 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)
TopicIF
removeSubjectIdentifier in interface TopicIFremoveSubjectIdentifier in class Topicsubject_indicator - A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection getTopicNames()
TopicIF
getTopicNames in interface TopicIFgetTopicNames in class Topicprotected void addTopicName(TopicNameIF _basename)
addTopicName in class Topicprotected void removeTopicName(TopicNameIF _basename)
removeTopicName in class Topicpublic Collection getOccurrences()
TopicIF
getOccurrences in interface TopicIFgetOccurrences in class Topicprotected void addOccurrence(OccurrenceIF _occurrence)
addOccurrence in class Topicprotected void removeOccurrence(OccurrenceIF _occurrence)
removeOccurrence in class Topicpublic Collection getRoles()
TopicIF
getRoles in interface TopicIFgetRoles in class Topicpublic void remove()
TMObjectIF
remove in interface TMObjectIFremove in class Topicpublic Collection getTypes()
TopicIF
getTypes in interface TopicIFgetTypes in class Topicpublic void addType(TopicIF type)
TopicIF
addType in interface TopicIFaddType in class Topictype - The additional type; an object implementing TopicIF.public void removeType(TopicIF type)
TopicIF
removeType in interface TopicIFremoveType in class Topictype - The type to be removed; an object implementing TopicIF.public String toString()
toString in class Topicpublic String getObjectId()
TMObjectIF
getObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic boolean isReadOnly()
TMObjectIF
isReadOnly in interface TMObjectIFisReadOnly in class TMObjectpublic TopicMapIF getTopicMap()
TMObjectIF
getTopicMap in interface TMObjectIFgetTopicMap in class TMObjectpublic Collection 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 TMObject
public void addItemIdentifier(LocatorIF source_locator)
throws ConstraintViolationException
TMObjectIF
addItemIdentifier 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)
TMObjectIF
removeItemIdentifier in interface TMObjectIFremoveItemIdentifier in class TMObjectsource_locator - The item identifier to be removed; an object implementing LocatorIF.public void merge(TopicIF topic)
TopicIF
merge in interface TopicIFmerge in class Topictopic - topicIF; the source topic. This is empty after the
operation and is removed from the topic map.public void debug()
public boolean equals(Object obj)
equals in class Objectpublic boolean equals(RemoteTopic obj)
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||