Class ClassInstanceIndex

    • Method Detail

      • getTopics

        public Collection<TopicIF> getTopics​(TopicIF topic_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all topics that are instances of the given type. Topic types are an abbreviated form of an association having roles for type and instance. This index provides optimized handling for topic types.
        Specified by:
        getTopics in interface ClassInstanceIndexIF
        Parameters:
        topic_type - The given type; an object implementing TopicIF.
        Returns:
        A collection of TopicIF objects; the instances of the type represented by the given topic.
      • getTopicNames

        public Collection<TopicNameIF> getTopicNames​(TopicIF name_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all topic names that are of the given type.
        Specified by:
        getTopicNames in interface ClassInstanceIndexIF
        Parameters:
        name_type - The given type; an object implementing TopicIF.
        Returns:
        A collection of TopicNameIF objects; topic names with the type represented by the given topic.
      • getOccurrences

        public Collection<OccurrenceIF> getOccurrences​(TopicIF occurrence_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all occurrences that are of the given type.
        Specified by:
        getOccurrences in interface ClassInstanceIndexIF
        Parameters:
        occurrence_type - The given type; an object implementing TopicIF.
        Returns:
        A collection of OccurrenceIF objects; occurrences with the type represented by the given topic.
      • getAssociations

        public Collection<AssociationIF> getAssociations​(TopicIF association_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all associations that are of the given type.
        Specified by:
        getAssociations in interface ClassInstanceIndexIF
        Parameters:
        association_type - The given type; an object implementing TopicIF.
        Returns:
        A collection of AssociationIF objects; associations with the type represented by the given topic.
      • getAssociationRoles

        public Collection<AssociationRoleIF> getAssociationRoles​(TopicIF association_role_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all association roles that are of the given type.
        Specified by:
        getAssociationRoles in interface ClassInstanceIndexIF
        Parameters:
        association_role_type - The given type; an object implementing TopicIF.
        Returns:
        A collection of AssociationRoleIF objects; association roles with the type represented by the given topic.
      • getAssociationRoles

        public Collection<AssociationRoleIF> getAssociationRoles​(TopicIF association_role_type,
                                                                 TopicIF association_type)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Gets all association roles that are of the given type and part of an association of given type.
        Specified by:
        getAssociationRoles in interface ClassInstanceIndexIF
        Parameters:
        association_role_type - The given role type; an object implementing TopicIF.
        association_type - The given association type; an object implementing TopicIF.
        Returns:
        A collection of AssociationRoleIF objects; association roles with the type represented by the given topic and part of an association with given type.
      • usedAsTopicType

        public boolean usedAsTopicType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as a topic type somewhere.
        Specified by:
        usedAsTopicType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for some topic; false otherwise.
      • usedAsTopicNameType

        public boolean usedAsTopicNameType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as an topic name type.
        Specified by:
        usedAsTopicNameType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for some topic name; false otherwise.
      • usedAsOccurrenceType

        public boolean usedAsOccurrenceType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as an occurrence type.
        Specified by:
        usedAsOccurrenceType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for some occurrence; false otherwise.
      • usedAsAssociationType

        public boolean usedAsAssociationType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as an association type.
        Specified by:
        usedAsAssociationType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for some association; false otherwise.
      • usedAsAssociationRoleType

        public boolean usedAsAssociationRoleType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as an association role type.
        Specified by:
        usedAsAssociationRoleType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for some association role; false otherwise.
      • usedAsType

        public boolean usedAsType​(TopicIF topic)
        Description copied from interface: ClassInstanceIndexIF
        PUBLIC: Returns true if the topic is used as a type somewhere.
        Specified by:
        usedAsType in interface ClassInstanceIndexIF
        Parameters:
        topic - An object implementing TopicIF.
        Returns:
        Boolean: true if the given topic serves as a type for any topic map object; false otherwise.