Class RemoteTopic
java.lang.Object
net.ontopia.topicmaps.impl.basic.TMObject
net.ontopia.topicmaps.impl.basic.Topic
net.ontopia.topicmaps.impl.remote.RemoteTopic
- All Implemented Interfaces:
Serializable,TMObjectIF,TopicIF
INTERNAL: The remote topic implementation. Checks that it is loaded
and then delegates calls to the super class.
- See Also:
-
Field Summary
Fields inherited from class net.ontopia.topicmaps.impl.basic.Topic
indicators, names, occurs, reified, roles, scope, subjects, typesFields inherited from class net.ontopia.topicmaps.impl.basic.TMObject
oid, parent, sources, topicmapFields inherited from interface net.ontopia.topicmaps.core.TMObjectIF
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENTFields inherited from interface net.ontopia.topicmaps.core.TopicIF
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemIdentifier(LocatorIF source_locator) PUBLIC: Adds the given item identifier to the set of item item identifiers for this object.protected voidaddOccurrence(OccurrenceIF _occurrence) voidaddSubjectIdentifier(LocatorIF subject_indicator) PUBLIC: Adds the given subject identifier to the set of subject identifiers for this topic.voidaddSubjectLocator(LocatorIF subject_locator) PUBLIC: Adds the given subject locator to the set of subject locators for this topic.protected voidaddTopicName(TopicNameIF _basename) voidPUBLIC: Adds a type to this topic.voidvoiddebug()booleanbooleanequals(RemoteTopic obj) PUBLIC: Gets the item identifiers of this object.PUBLIC: Gets the id of this object.PUBLIC: Gets the occurrences of this topic.getRoles()PUBLIC: Gets the association roles played by this topic.PUBLIC: Gets the subject identitifers of this topic.PUBLIC: Gets the subject locators of this topic.PUBLIC: Gets the topic map that this object belongs to.PUBLIC: Gets the names of this topic.getTypes()PUBLIC: Gets the types that this topic is an instance of.inthashCode()booleanisLoaded()booleanPUBLIC: Returns true if this object is read-only, otherwise false.voidEXPERIMENTAL: Merges the characteristics of one topic into another topic.voidremove()PUBLIC: Removes the object from its parent.voidremoveItemIdentifier(LocatorIF source_locator) PUBLIC: Removes the given item identifier from the set of item identifiers.protected voidremoveOccurrence(OccurrenceIF _occurrence) voidremoveSubjectIdentifier(LocatorIF subject_indicator) PUBLIC: Removes the given subject identifier from the set of subject identifiers for this topic.voidremoveSubjectLocator(LocatorIF subject_locator) PUBLIC: Removes the given subject locator from the set of subject locators for this topic.protected voidremoveTopicName(TopicNameIF _basename) voidremoveType(TopicIF type) PUBLIC: Removes a type from this topic.voidsetLoaded(boolean isLoaded) protected voidsetRealTopic(RemoteTopic topic) toString()Methods inherited from class net.ontopia.topicmaps.impl.basic.Topic
addRole, getAssociations, getAssociationsByType, getOccurrencesByType, getReified, getRolesByType, getRolesByType, getTopicNamesByType, removeRole, setReified, setTopicMapMethods inherited from class net.ontopia.topicmaps.impl.basic.TMObject
fireEvent, isConnected
-
Method Details
-
isLoaded
public boolean isLoaded() -
setLoaded
public void setLoaded(boolean isLoaded) -
setRealTopic
-
getRealTopic
-
checkLoad
public void checkLoad() -
getSubjectLocators
Description copied from interface:TopicIFPUBLIC: Gets the subject locators of this topic. These are locators for resources that directly address the subject of this topic. Such a resource is also called an addressable subject. The subject locators are not guaranteed to have any specific order within the returned collection.- Specified by:
getSubjectLocatorsin interfaceTopicIF- Overrides:
getSubjectLocatorsin classTopic- Returns:
- A collection of LocatorIF objects serving as subject locators.
-
addSubjectLocator
Description copied from interface:TopicIFPUBLIC: Adds the given subject locator to the set of subject locators for this topic.- Specified by:
addSubjectLocatorin interfaceTopicIF- Overrides:
addSubjectLocatorin classTopic- Parameters:
subject_locator- A locator for the subject locator to be added; an object implementing LocatorIF.- Throws:
ConstraintViolationException- Thrown if the topic map already has a topic with this subject locator.
-
removeSubjectLocator
Description copied from interface:TopicIFPUBLIC: Removes the given subject locator from the set of subject locators for this topic. If the topic does not have the given subject locator then this method has no effect.- Specified by:
removeSubjectLocatorin interfaceTopicIF- Overrides:
removeSubjectLocatorin classTopic- Parameters:
subject_locator- A locator for the subject locator to be removed; an object implementing LocatorIF.
-
getSubjectIdentifiers
Description copied from interface:TopicIFPUBLIC: Gets the subject identitifers of this topic. These are locators for resources that indirectly address or otherwise indicate the subject of this topic. A subject identifier is intended as a surrogate for a subject which cannot be addressed directly. The subject identifiers are not guaranteed to have any specific order within the returned collection.- Specified by:
getSubjectIdentifiersin interfaceTopicIF- Overrides:
getSubjectIdentifiersin classTopic- Returns:
- A collection of LocatorIF objects serving as subject identifiers.
-
addSubjectIdentifier
Description copied from interface:TopicIFPUBLIC: Adds the given subject identifier to the set of subject identifiers for this topic.- Specified by:
addSubjectIdentifierin interfaceTopicIF- Overrides:
addSubjectIdentifierin classTopic- Parameters:
subject_indicator- A locator for the subject identifier to be added; an object implementing LocatorIF.- Throws:
ConstraintViolationException- Thrown if the topic map already has a topic with this addressable subject.
-
removeSubjectIdentifier
Description copied from interface:TopicIFPUBLIC: Removes the given subject identifier from the set of subject identifiers for this topic. If the topic does not have the given subject identifier then this method has no effect.- Specified by:
removeSubjectIdentifierin interfaceTopicIF- Overrides:
removeSubjectIdentifierin classTopic- Parameters:
subject_indicator- A locator for the subject identifier to be removed; an object implementing LocatorIF.
-
getTopicNames
Description copied from interface:TopicIFPUBLIC: Gets the names of this topic.- Specified by:
getTopicNamesin interfaceTopicIF- Overrides:
getTopicNamesin classTopic- Returns:
- A collection of TopicNameIF objects.
-
addTopicName
- Overrides:
addTopicNamein classTopic
-
removeTopicName
- Overrides:
removeTopicNamein classTopic
-
getOccurrences
Description copied from interface:TopicIFPUBLIC: Gets the occurrences of this topic. The occurrences are not guaranteed to have any specific order.- Specified by:
getOccurrencesin interfaceTopicIF- Overrides:
getOccurrencesin classTopic- Returns:
- A collection of OccurrenceIF objects.
-
addOccurrence
- Overrides:
addOccurrencein classTopic
-
removeOccurrence
- Overrides:
removeOccurrencein classTopic
-
getRoles
Description copied from interface:TopicIFPUBLIC: Gets the association roles played by this topic. There is no guarantee as to the order these are returned in. -
remove
public void remove()Description copied from interface:TMObjectIFPUBLIC: Removes the object from its parent.- Specified by:
removein interfaceTMObjectIF- Overrides:
removein classTopic
-
getTypes
Description copied from interface:TopicIFPUBLIC: Gets the types that this topic is an instance of. There is no guarantee as to which order these will be returned in. -
addType
Description copied from interface:TopicIFPUBLIC: Adds a type to this topic. -
removeType
Description copied from interface:TopicIFPUBLIC: Removes a type from this topic. If the given topic is not present amongst the types, then the method has no effect.- Specified by:
removeTypein interfaceTopicIF- Overrides:
removeTypein classTopic- Parameters:
type- The type to be removed; an object implementing TopicIF.
-
toString
-
getObjectId
Description copied from interface:TMObjectIFPUBLIC: Gets the id of this object. The object id is part of the topic map id space, and must be unique. The object id is not significant (or unique) outside the current topic map. The object id is immutable. The object id is thus stable through this object's lifetime.- Specified by:
getObjectIdin interfaceTMObjectIF- Overrides:
getObjectIdin classTMObject- Returns:
- string which is this object's id.
-
isReadOnly
public boolean isReadOnly()Description copied from interface:TMObjectIFPUBLIC: Returns true if this object is read-only, otherwise false.- Specified by:
isReadOnlyin interfaceTMObjectIF- Overrides:
isReadOnlyin classTMObject- Returns:
- read-only (true) or not read-only (false).
-
getTopicMap
Description copied from interface:TMObjectIFPUBLIC: Gets the topic map that this object belongs to. If the object has been removed from its topic map or not added to a topic map yet this will be null.- Specified by:
getTopicMapin interfaceTMObjectIF- Overrides:
getTopicMapin classTMObject- Returns:
- A topic map; an object implementing TopicMapIF.
-
getItemIdentifiers
Description copied from interface:TMObjectIFPUBLIC: Gets the item identifiers of this object. These locators are pointers back to the locations from where this object originated.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.
- Specified by:
getItemIdentifiersin interfaceTMObjectIF- Overrides:
getItemIdentifiersin classTMObject- Returns:
- A collection of LocatorIF objects addressing the item.
-
addItemIdentifier
Description copied from interface:TMObjectIFPUBLIC: Adds the given item identifier to the set of item item identifiers for this object.- Specified by:
addItemIdentifierin interfaceTMObjectIF- Overrides:
addItemIdentifierin classTMObject- Parameters:
source_locator- The item identifier to be added; an object implementing LocatorIF.- Throws:
ConstraintViolationException- Thrown if another object in the same topic map already has the given item identifier.
-
removeItemIdentifier
Description copied from interface:TMObjectIFPUBLIC: Removes the given item identifier from the set of item identifiers. If this object does not have the given item identifier the call has no effect.- Specified by:
removeItemIdentifierin interfaceTMObjectIF- Overrides:
removeItemIdentifierin classTMObject- Parameters:
source_locator- The item identifier to be removed; an object implementing LocatorIF.
-
merge
Description copied from interface:TopicIFEXPERIMENTAL: Merges the characteristics of one topic into another topic. The source topic stripped of characteristics, all of which are moved to the target topic. Duplicate characteristics are suppressed. The topics must be in the same topic map, and the source topic is removed from the topic map. -
debug
public void debug() -
equals
-
equals
-
hashCode
public int hashCode()
-