Package net.ontopia.topicmaps.core.index
Interface ClassInstanceIndexIF
- All Superinterfaces:
IndexIF
- All Known Implementing Classes:
ClassInstanceIndex,ClassInstanceIndex
PUBLIC: Interface implemented by objects providing quick lookup
facilities to find topics used as types, and the instances of those
types, within a topic map.
-
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Gets all occurrences that are in the topic map.PUBLIC: Gets all topic names that are in the topic map.PUBLIC: Gets all variant names that are in the topic map.getAssociationRoles(TopicIF association_role_type) PUBLIC: Gets all association roles that are of the given type.getAssociationRoles(TopicIF association_role_type, TopicIF association_type) PUBLIC: Gets all association roles that are of the given type and part of an association of given type.PUBLIC: Gets the topics that are used as association role types.getAssociations(TopicIF association_type) PUBLIC: Gets all associations that are of the given type.PUBLIC: Gets the topics that are used as association types.getOccurrences(TopicIF occurrence_type) PUBLIC: Gets all occurrences that are of the given type.PUBLIC: Gets the topics that are used as occurrence types.getTopicNames(TopicIF name_type) PUBLIC: Gets all topic names that are of the given type.PUBLIC: Gets the topics that are used as topic name types.PUBLIC: Gets all topics that are instances of the given type.PUBLIC: Gets all topics that are used as topic types.booleanusedAsAssociationRoleType(TopicIF topic) PUBLIC: Returns true if the topic is used as an association role type.booleanusedAsAssociationType(TopicIF topic) PUBLIC: Returns true if the topic is used as an association type.booleanusedAsOccurrenceType(TopicIF topic) PUBLIC: Returns true if the topic is used as an occurrence type.booleanusedAsTopicNameType(TopicIF topic) PUBLIC: Returns true if the topic is used as an topic name type.booleanusedAsTopicType(TopicIF topic) PUBLIC: Returns true if the topic is used as a topic type somewhere.booleanusedAsType(TopicIF topic) PUBLIC: Returns true if the topic is used as a type somewhere.
-
Method Details
-
getTopics
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.- 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: Gets all topic names that are of the given type.- 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.
- Since:
- 3.0
-
getAllTopicNames
Collection<TopicNameIF> getAllTopicNames()PUBLIC: Gets all topic names that are in the topic map.- Returns:
- A collection of TopicNameIF objects
- Since:
- 5.4.0
-
getAllVariantNames
Collection<VariantNameIF> getAllVariantNames()PUBLIC: Gets all variant names that are in the topic map.- Returns:
- A collection of VariantNameIF objects
- Since:
- 5.4.0
-
getOccurrences
PUBLIC: Gets all occurrences that are of the given type.- 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.
-
getAllOccurrences
Collection<OccurrenceIF> getAllOccurrences()PUBLIC: Gets all occurrences that are in the topic map.- Returns:
- A collection of OccurrenceIF objects
- Since:
- 5.4.0
-
getAssociations
PUBLIC: Gets all associations that are of the given type.- 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: Gets all association roles that are of the given type.- 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
Collection<AssociationRoleIF> getAssociationRoles(TopicIF association_role_type, TopicIF association_type) PUBLIC: Gets all association roles that are of the given type and part of an association of given type.- 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.
-
getTopicTypes
Collection<TopicIF> getTopicTypes()PUBLIC: Gets all topics that are used as topic types.- Returns:
- A collection of TopicIF objects, each of which serves as a type for some topic.
-
getTopicNameTypes
Collection<TopicIF> getTopicNameTypes()PUBLIC: Gets the topics that are used as topic name types.- Returns:
- A collection of TopicIF objects, each of which serves as a type for some topic name.
- Since:
- 3.0
-
getOccurrenceTypes
Collection<TopicIF> getOccurrenceTypes()PUBLIC: Gets the topics that are used as occurrence types.- Returns:
- A collection of TopicIF objects, each of which serves as a type for some occurrence.
-
getAssociationTypes
Collection<TopicIF> getAssociationTypes()PUBLIC: Gets the topics that are used as association types.- Returns:
- A collection of TopicIF objects, each of which serves as a type for some association.
-
getAssociationRoleTypes
Collection<TopicIF> getAssociationRoleTypes()PUBLIC: Gets the topics that are used as association role types.- Returns:
- A collection of TopicIF objects, each of which serves as a type for some association role.
-
usedAsTopicType
PUBLIC: Returns true if the topic is used as a topic type somewhere.- Parameters:
topic- An object implementing TopicIF.- Returns:
- Boolean: true if the given topic serves as a type for some topic; false otherwise.
-
usedAsTopicNameType
PUBLIC: Returns true if the topic is used as an topic name type.- Parameters:
topic- An object implementing TopicIF.- Returns:
- Boolean: true if the given topic serves as a type for some topic name; false otherwise.
- Since:
- 3.0
-
usedAsOccurrenceType
PUBLIC: Returns true if the topic is used as an occurrence type.- Parameters:
topic- An object implementing TopicIF.- Returns:
- Boolean: true if the given topic serves as a type for some occurrence; false otherwise.
-
usedAsAssociationType
PUBLIC: Returns true if the topic is used as an association type.- Parameters:
topic- An object implementing TopicIF.- Returns:
- Boolean: true if the given topic serves as a type for some association; false otherwise.
-
usedAsAssociationRoleType
PUBLIC: Returns true if the topic is used as an association role type.- 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: Returns true if the topic is used as a type somewhere.- Parameters:
topic- An object implementing TopicIF.- Returns:
- Boolean: true if the given topic serves as a type for any topic map object; false otherwise.
-