|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.query.impl.basic.AbstractInstanceOfPredicate net.ontopia.topicmaps.query.impl.basic.InstanceOfPredicate
public class InstanceOfPredicate
INTERNAL: Implements the 'instance-of' predicate using the indexes.
Field Summary | |
---|---|
protected java.util.Map |
superTypeCache
|
protected TypeHierarchyUtils |
typeutils
|
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractInstanceOfPredicate |
---|
index, topicmap |
Constructor Summary | |
---|---|
InstanceOfPredicate(TopicMapIF topicmap)
|
Method Summary | |
---|---|
protected java.util.Collection |
getClasses(TopicIF instance)
INTERNAL: Should return all applicable types of the given topic. |
protected java.util.Collection |
getInstances(TopicIF klass)
INTERNAL: Should return all instances of the topic, as seen by the specific predicate. |
java.lang.String |
getName()
INTERNAL: Returns the name of the predicate. |
protected java.util.Collection |
getSubtypes(TopicIF type)
|
protected java.util.Collection |
getSupertypes(TopicIF type)
INTERNAL: Should return all supertypes of the given class, including the class itself. |
protected java.util.Collection |
getTypes()
INTERNAL: Should return all topic types, as seen by the specific predicate. |
protected void |
start()
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TypeHierarchyUtils typeutils
protected java.util.Map superTypeCache
Constructor Detail |
---|
public InstanceOfPredicate(TopicMapIF topicmap)
Method Detail |
---|
public java.lang.String getName()
PredicateIF
protected void start()
AbstractInstanceOfPredicate
start
in class AbstractInstanceOfPredicate
protected java.util.Collection getClasses(TopicIF instance)
AbstractInstanceOfPredicate
getClasses
in class AbstractInstanceOfPredicate
protected java.util.Collection getInstances(TopicIF klass)
AbstractInstanceOfPredicate
getInstances
in class AbstractInstanceOfPredicate
protected java.util.Collection getTypes()
AbstractInstanceOfPredicate
getTypes
in class AbstractInstanceOfPredicate
protected java.util.Collection getSupertypes(TopicIF type)
AbstractInstanceOfPredicate
getSupertypes
in class AbstractInstanceOfPredicate
protected java.util.Collection getSubtypes(TopicIF type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |