Class DirectInstanceOfPredicate
java.lang.Object
net.ontopia.topicmaps.query.impl.basic.AbstractInstanceOfPredicate
net.ontopia.topicmaps.query.impl.basic.DirectInstanceOfPredicate
- All Implemented Interfaces:
BasicPredicateIF,PredicateIF
- Direct Known Subclasses:
DirectInstanceOfPredicate
INTERNAL: Implements the 'direct-instance-of' predicate using the indexes.
-
Field Summary
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractInstanceOfPredicate
index, topicmap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CollectiongetClasses(TopicIF instance) INTERNAL: Should return all applicable types of the given topic.protected CollectiongetInstances(TopicIF klass) INTERNAL: Should return all instances of the topic, as seen by the specific predicate.getName()INTERNAL: Returns the name of the predicate.protected CollectiongetSupertypes(TopicIF type) INTERNAL: Should return all supertypes of the given class, including the class itself.protected CollectiongetTypes()INTERNAL: Should return all topic types, as seen by the specific predicate.protected voidstart()INTERNAL: Called before the evaluation of a new query, to allow resetting of internal caches etc.Methods inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractInstanceOfPredicate
getCost, getDirectInstances, getSignature, satisfy
-
Constructor Details
-
DirectInstanceOfPredicate
-
-
Method Details
-
getName
Description copied from interface:PredicateIFINTERNAL: Returns the name of the predicate. This will usually be the name of the predicate within its module ('instance-of', '/=', 'starts-with'), but some virtual predicates cannot be reached from the syntax and may return names that will not parse. -
start
protected void start()Description copied from class:AbstractInstanceOfPredicateINTERNAL: Called before the evaluation of a new query, to allow resetting of internal caches etc.- Specified by:
startin classAbstractInstanceOfPredicate
-
getClasses
Description copied from class:AbstractInstanceOfPredicateINTERNAL: Should return all applicable types of the given topic. In 'instance-of' this includes the supertypes of the topic's types.- Specified by:
getClassesin classAbstractInstanceOfPredicate
-
getInstances
Description copied from class:AbstractInstanceOfPredicateINTERNAL: Should return all instances of the topic, as seen by the specific predicate.- Specified by:
getInstancesin classAbstractInstanceOfPredicate
-
getTypes
Description copied from class:AbstractInstanceOfPredicateINTERNAL: Should return all topic types, as seen by the specific predicate.- Specified by:
getTypesin classAbstractInstanceOfPredicate
-
getSupertypes
Description copied from class:AbstractInstanceOfPredicateINTERNAL: Should return all supertypes of the given class, including the class itself. In 'direct-instance-of' this should just be the class itself.- Specified by:
getSupertypesin classAbstractInstanceOfPredicate
-