|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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(java.lang.Object obj)
|
boolean |
equals(RemoteTopic obj)
|
java.util.Collection |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object. |
java.lang.String |
getObjectId()
PUBLIC: Gets the id of this object. |
java.util.Collection |
getOccurrences()
PUBLIC: Gets the occurrences of this topic. |
TopicIF |
getRealTopic()
|
java.util.Collection |
getRoles()
PUBLIC: Gets the association roles played by this topic. |
java.util.Collection |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic. |
java.util.Collection |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic. |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
java.util.Collection |
getTopicNames()
PUBLIC: Gets the names of this topic. |
java.util.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)
|
java.lang.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 java.util.Collection 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 java.util.Collection 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 java.util.Collection 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 java.util.Collection 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 java.util.Collection getRoles()
TopicIF
getRoles
in interface TopicIF
getRoles
in class Topic
public void remove()
TMObjectIF
remove
in interface TMObjectIF
remove
in class Topic
public java.util.Collection getTypes()
TopicIF
getTypes
in interface TopicIF
getTypes
in class Topic
public void addType(TopicIF type)
TopicIF
addType
in interface TopicIF
addType
in class Topic
type
- The additional type; an object implementing 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 java.lang.String toString()
toString
in class Topic
public java.lang.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 java.util.Collection 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
merge
in interface TopicIF
merge
in class Topic
topic
- topicIF; the source topic. This is empty after the
operation and is removed from the topic map.public void debug()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equals(RemoteTopic obj)
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |