|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.impl.utils.AbstractIndex net.ontopia.topicmaps.impl.utils.BasicIndex net.ontopia.topicmaps.impl.basic.index.ClassInstanceIndex
public class ClassInstanceIndex
INTERNAL: The basic dynamic class instance index implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex |
---|
BasicIndex.EventHandler |
Field Summary | |
---|---|
protected CollectionMap |
assocs
|
protected CollectionMap |
bnames
|
protected CollectionMap |
occurs
|
protected CollectionMap |
roles
|
protected CollectionMap |
topics
|
Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex |
---|
handlers |
Method Summary | |
---|---|
java.util.Collection |
getAssociationRoles(TopicIF association_role_type)
PUBLIC: Gets all association roles that are of the given type. |
java.util.Collection |
getAssociationRoleTypes()
PUBLIC: Gets the topics that are used as association role types. |
java.util.Collection |
getAssociations(TopicIF association_type)
PUBLIC: Gets all associations that are of the given type. |
java.util.Collection |
getAssociationTypes()
PUBLIC: Gets the topics that are used as association types. |
java.util.Collection |
getOccurrences(TopicIF occurrence_type)
PUBLIC: Gets all occurrences that are of the given type. |
java.util.Collection |
getOccurrenceTypes()
PUBLIC: Gets the topics that are used as occurrence types. |
java.util.Collection |
getTopicNames(TopicIF basename_type)
PUBLIC: Gets all topic names that are of the given type. |
java.util.Collection |
getTopicNameTypes()
PUBLIC: Gets the topics that are used as topic name types. |
java.util.Collection |
getTopics(TopicIF topic_type)
PUBLIC: Gets all topics that are instances of the given type. |
java.util.Collection |
getTopicTypes()
PUBLIC: Gets all topics that are used as topic types. |
boolean |
usedAsAssociationRoleType(TopicIF topic)
PUBLIC: Returns true if the topic is used as an association role type. |
boolean |
usedAsAssociationType(TopicIF topic)
PUBLIC: Returns true if the topic is used as an association type. |
boolean |
usedAsOccurrenceType(TopicIF topic)
PUBLIC: Returns true if the topic is used as an occurrence type. |
boolean |
usedAsTopicNameType(TopicIF topic)
PUBLIC: Returns true if the topic is used as an topic name type. |
boolean |
usedAsTopicType(TopicIF topic)
PUBLIC: Returns true if the topic is used as a topic type somewhere. |
boolean |
usedAsType(TopicIF topic)
PUBLIC: Returns true if the topic is used as a type somewhere. |
Methods inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex |
---|
getIndex, processEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CollectionMap topics
protected CollectionMap bnames
protected CollectionMap occurs
protected CollectionMap assocs
protected CollectionMap roles
Method Detail |
---|
public java.util.Collection getTopics(TopicIF topic_type)
ClassInstanceIndexIF
getTopics
in interface ClassInstanceIndexIF
topic_type
- The given type; an object implementing TopicIF.
public java.util.Collection getTopicNames(TopicIF basename_type)
ClassInstanceIndexIF
getTopicNames
in interface ClassInstanceIndexIF
basename_type
- The given type; an object implementing TopicIF.
public java.util.Collection getOccurrences(TopicIF occurrence_type)
ClassInstanceIndexIF
getOccurrences
in interface ClassInstanceIndexIF
occurrence_type
- The given type; an object implementing TopicIF.
public java.util.Collection getAssociations(TopicIF association_type)
ClassInstanceIndexIF
getAssociations
in interface ClassInstanceIndexIF
association_type
- The given type; an object implementing TopicIF.
public java.util.Collection getAssociationRoles(TopicIF association_role_type)
ClassInstanceIndexIF
getAssociationRoles
in interface ClassInstanceIndexIF
association_role_type
- The given type; an object implementing TopicIF.
public java.util.Collection getTopicTypes()
ClassInstanceIndexIF
getTopicTypes
in interface ClassInstanceIndexIF
public java.util.Collection getTopicNameTypes()
ClassInstanceIndexIF
getTopicNameTypes
in interface ClassInstanceIndexIF
public java.util.Collection getOccurrenceTypes()
ClassInstanceIndexIF
getOccurrenceTypes
in interface ClassInstanceIndexIF
public java.util.Collection getAssociationTypes()
ClassInstanceIndexIF
getAssociationTypes
in interface ClassInstanceIndexIF
public java.util.Collection getAssociationRoleTypes()
ClassInstanceIndexIF
getAssociationRoleTypes
in interface ClassInstanceIndexIF
public boolean usedAsTopicType(TopicIF topic)
ClassInstanceIndexIF
usedAsTopicType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
public boolean usedAsTopicNameType(TopicIF topic)
ClassInstanceIndexIF
usedAsTopicNameType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
public boolean usedAsOccurrenceType(TopicIF topic)
ClassInstanceIndexIF
usedAsOccurrenceType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
public boolean usedAsAssociationType(TopicIF topic)
ClassInstanceIndexIF
usedAsAssociationType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
public boolean usedAsAssociationRoleType(TopicIF topic)
ClassInstanceIndexIF
usedAsAssociationRoleType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
public boolean usedAsType(TopicIF topic)
ClassInstanceIndexIF
usedAsType
in interface ClassInstanceIndexIF
topic
- An object implementing TopicIF.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |