Class RemoteTopic

    • Method Detail

      • isLoaded

        public boolean isLoaded()
      • setLoaded

        public void setLoaded​(boolean isLoaded)
      • setRealTopic

        protected void setRealTopic​(RemoteTopic topic)
      • getRealTopic

        public TopicIF getRealTopic()
      • checkLoad

        public void checkLoad()
      • getSubjectLocators

        public Collection<LocatorIF> getSubjectLocators()
        Description copied from interface: TopicIF
        PUBLIC: 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:
        getSubjectLocators in interface TopicIF
        Overrides:
        getSubjectLocators in class Topic
        Returns:
        A collection of LocatorIF objects serving as subject locators.
      • removeSubjectLocator

        public void removeSubjectLocator​(LocatorIF subject_locator)
        Description copied from interface: TopicIF
        PUBLIC: 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:
        removeSubjectLocator in interface TopicIF
        Overrides:
        removeSubjectLocator in class Topic
        Parameters:
        subject_locator - A locator for the subject locator to be removed; an object implementing LocatorIF.
      • getSubjectIdentifiers

        public Collection<LocatorIF> getSubjectIdentifiers()
        Description copied from interface: TopicIF
        PUBLIC: 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:
        getSubjectIdentifiers in interface TopicIF
        Overrides:
        getSubjectIdentifiers in class Topic
        Returns:
        A collection of LocatorIF objects serving as subject identifiers.
      • removeSubjectIdentifier

        public void removeSubjectIdentifier​(LocatorIF subject_indicator)
        Description copied from interface: TopicIF
        PUBLIC: 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:
        removeSubjectIdentifier in interface TopicIF
        Overrides:
        removeSubjectIdentifier in class Topic
        Parameters:
        subject_indicator - A locator for the subject identifier to be removed; an object implementing LocatorIF.
      • getOccurrences

        public Collection<OccurrenceIF> getOccurrences()
        Description copied from interface: TopicIF
        PUBLIC: Gets the occurrences of this topic. The occurrences are not guaranteed to have any specific order.
        Specified by:
        getOccurrences in interface TopicIF
        Overrides:
        getOccurrences in class Topic
        Returns:
        A collection of OccurrenceIF objects.
      • getRoles

        public Collection<AssociationRoleIF> getRoles()
        Description copied from interface: TopicIF
        PUBLIC: Gets the association roles played by this topic. There is no guarantee as to the order these are returned in.
        Specified by:
        getRoles in interface TopicIF
        Overrides:
        getRoles in class Topic
        Returns:
        A collection of AssociationRoleIF objects.
      • remove

        public void remove()
        Description copied from interface: TMObjectIF
        PUBLIC: Removes the object from its parent.
        Specified by:
        remove in interface TMObjectIF
        Overrides:
        remove in class Topic
      • getTypes

        public Collection<TopicIF> getTypes()
        Description copied from interface: TopicIF
        PUBLIC: Gets the types that this topic is an instance of. There is no guarantee as to which order these will be returned in.
        Specified by:
        getTypes in interface TopicIF
        Overrides:
        getTypes in class Topic
        Returns:
        A collection of TopicIF objects.
      • addType

        public void addType​(TopicIF type)
        Description copied from interface: TopicIF
        PUBLIC: Adds a type to this topic.
        Specified by:
        addType in interface TopicIF
        Overrides:
        addType in class Topic
        Parameters:
        type - The additional type; an object implementing TopicIF.
      • removeType

        public void removeType​(TopicIF type)
        Description copied from interface: TopicIF
        PUBLIC: Removes a type from this topic. If the given topic is not present amongst the types, then the method has no effect.
        Specified by:
        removeType in interface TopicIF
        Overrides:
        removeType in class Topic
        Parameters:
        type - The type to be removed; an object implementing TopicIF.
      • getObjectId

        public String getObjectId()
        Description copied from interface: TMObjectIF
        PUBLIC: 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:
        getObjectId in interface TMObjectIF
        Overrides:
        getObjectId in class TMObject
        Returns:
        string which is this object's id.
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: TMObjectIF
        PUBLIC: Returns true if this object is read-only, otherwise false.
        Specified by:
        isReadOnly in interface TMObjectIF
        Overrides:
        isReadOnly in class TMObject
        Returns:
        read-only (true) or not read-only (false).
      • getTopicMap

        public TopicMapIF getTopicMap()
        Description copied from interface: TMObjectIF
        PUBLIC: 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:
        getTopicMap in interface TMObjectIF
        Overrides:
        getTopicMap in class TMObject
        Returns:
        A topic map; an object implementing TopicMapIF.
      • getItemIdentifiers

        public Collection<LocatorIF> getItemIdentifiers()
        Description copied from interface: TMObjectIF
        PUBLIC: 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:
        getItemIdentifiers in interface TMObjectIF
        Overrides:
        getItemIdentifiers in class TMObject
        Returns:
        A collection of LocatorIF objects addressing the item.
      • removeItemIdentifier

        public void removeItemIdentifier​(LocatorIF source_locator)
        Description copied from interface: TMObjectIF
        PUBLIC: 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:
        removeItemIdentifier in interface TMObjectIF
        Overrides:
        removeItemIdentifier in class TMObject
        Parameters:
        source_locator - The item identifier to be removed; an object implementing LocatorIF.
      • merge

        public void merge​(TopicIF topic)
        Description copied from interface: TopicIF
        EXPERIMENTAL: 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.
        Specified by:
        merge in interface TopicIF
        Overrides:
        merge in class Topic
        Parameters:
        topic - topicIF; the source topic. This is empty after the operation and is removed from the topic map.
      • debug

        public void debug()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object