|
||||||||||
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
public abstract class AbstractInstanceOfPredicate
INTERNAL: Common superclass for the two instance-of predicates.
Field Summary | |
---|---|
protected ClassInstanceIndexIF |
index
|
protected TopicMapIF |
topicmap
|
Constructor Summary | |
---|---|
AbstractInstanceOfPredicate(TopicMapIF topicmap)
|
Method Summary | |
---|---|
protected abstract java.util.Collection |
getClasses(TopicIF instance)
INTERNAL: Should return all applicable types of the given topic. |
int |
getCost(boolean[] boundparams)
INTERNAL. |
protected java.util.Collection |
getDirectInstances(TopicIF classes)
INTERNAL: Should return all instances of the topic, as seen by the specific predicate. |
protected abstract java.util.Collection |
getInstances(TopicIF klass)
INTERNAL: Should return all instances of the topic, as seen by the specific predicate. |
java.lang.String |
getSignature()
INTERNAL: Returns a string representing the signature of the predicate. |
protected abstract java.util.Collection |
getSupertypes(TopicIF type)
INTERNAL: Should return all supertypes of the given class, including the class itself. |
protected abstract java.util.Collection |
getTypes()
INTERNAL: Should return all topic types, as seen by the specific predicate. |
QueryMatches |
satisfy(QueryMatches result,
java.lang.Object[] arguments)
|
protected abstract void |
start()
INTERNAL: Called before the evaluation of a new query, to allow resetting of internal caches etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.ontopia.topicmaps.query.parser.PredicateIF |
---|
getName |
Field Detail |
---|
protected TopicMapIF topicmap
protected ClassInstanceIndexIF index
Constructor Detail |
---|
public AbstractInstanceOfPredicate(TopicMapIF topicmap)
Method Detail |
---|
public java.lang.String getSignature()
PredicateIF
The instance-of predicate would have a signature of "t t", while /= would have ". .", and in would have ". .+". For full details, see topicmaps.impl.utils.ArgumentValidator.
getSignature
in interface PredicateIF
public int getCost(boolean[] boundparams)
PredicateIF
getCost
in interface PredicateIF
public QueryMatches satisfy(QueryMatches result, java.lang.Object[] arguments) throws InvalidQueryException
satisfy
in interface BasicPredicateIF
InvalidQueryException
protected abstract void start()
protected abstract java.util.Collection getClasses(TopicIF instance)
protected abstract java.util.Collection getInstances(TopicIF klass)
protected abstract java.util.Collection getTypes()
protected abstract java.util.Collection getSupertypes(TopicIF type)
protected java.util.Collection getDirectInstances(TopicIF classes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |