public class InstanceOfPredicate extends AbstractInstanceOfPredicate
Modifier and Type | Field and Description |
---|---|
protected Map |
superTypeCache |
protected TypeHierarchyUtils |
typeutils |
index, topicmap
Constructor and Description |
---|
InstanceOfPredicate(TopicMapIF topicmap) |
Modifier and Type | Method and Description |
---|---|
protected Collection |
getClasses(TopicIF instance)
INTERNAL: Should return all applicable types of the given topic.
|
protected Collection |
getInstances(TopicIF klass)
INTERNAL: Should return all instances of the topic, as seen by the
specific predicate.
|
String |
getName()
INTERNAL: Returns the name of the predicate.
|
protected Collection |
getSubtypes(TopicIF type) |
protected Collection |
getSupertypes(TopicIF type)
INTERNAL: Should return all supertypes of the given class,
including the class itself.
|
protected 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.
|
getCost, getDirectInstances, getSignature, satisfy
protected TypeHierarchyUtils typeutils
protected Map superTypeCache
public InstanceOfPredicate(TopicMapIF topicmap)
public String getName()
PredicateIF
protected void start()
AbstractInstanceOfPredicate
start
in class AbstractInstanceOfPredicate
protected Collection getClasses(TopicIF instance)
AbstractInstanceOfPredicate
getClasses
in class AbstractInstanceOfPredicate
protected Collection getInstances(TopicIF klass)
AbstractInstanceOfPredicate
getInstances
in class AbstractInstanceOfPredicate
protected Collection getTypes()
AbstractInstanceOfPredicate
getTypes
in class AbstractInstanceOfPredicate
protected Collection getSupertypes(TopicIF type)
AbstractInstanceOfPredicate
getSupertypes
in class AbstractInstanceOfPredicate
protected Collection getSubtypes(TopicIF type)