net.ontopia.topicmaps.query.impl.basic
Class DynamicAssociationPredicate

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
      extended by net.ontopia.topicmaps.query.impl.basic.DynamicAssociationPredicate
All Implemented Interfaces:
BasicPredicateIF, PredicateIF
Direct Known Subclasses:
DynamicAssociationPredicate

public class DynamicAssociationPredicate
extends AbstractDynamicPredicate

INTERNAL: Implements association type predicates.


Field Summary
protected  ClassInstanceIndexIF index
           
protected  TopicMapIF topicmap
           
 
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
base, name, type
 
Constructor Summary
DynamicAssociationPredicate(TopicMapIF topicmap, LocatorIF base, TopicIF type)
           
 
Method Summary
protected  net.ontopia.topicmaps.query.impl.basic.DynamicAssociationPredicate.ArgumentPair[] getBoundArguments(QueryMatches matches, java.lang.Object[] arguments, int boundarg)
           
 int getCost(boolean[] boundparams)
          INTERNAL.
 java.lang.String getSignature()
          INTERNAL: Returns a string representing the signature of the predicate.
protected  net.ontopia.topicmaps.query.impl.basic.DynamicAssociationPredicate.ArgumentPair[] getUnboundArguments(QueryMatches matches, java.lang.Object[] arguments)
           
 QueryMatches satisfy(QueryMatches matches, java.lang.Object[] arguments)
           
 
Methods inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicmap

protected TopicMapIF topicmap

index

protected ClassInstanceIndexIF index
Constructor Detail

DynamicAssociationPredicate

public DynamicAssociationPredicate(TopicMapIF topicmap,
                                   LocatorIF base,
                                   TopicIF type)
Method Detail

getSignature

public java.lang.String getSignature()
Description copied from interface: PredicateIF
INTERNAL: Returns a string representing the signature of the predicate. The string consists of a whitespace-separated list of arguments, where each argument is made up of tokens representing the type or cardinality of that argument.

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.


getCost

public int getCost(boolean[] boundparams)
Description copied from interface: PredicateIF
INTERNAL.


satisfy

public QueryMatches satisfy(QueryMatches matches,
                            java.lang.Object[] arguments)
                     throws InvalidQueryException
Throws:
InvalidQueryException

getBoundArguments

protected net.ontopia.topicmaps.query.impl.basic.DynamicAssociationPredicate.ArgumentPair[] getBoundArguments(QueryMatches matches,
                                                                                                              java.lang.Object[] arguments,
                                                                                                              int boundarg)
                                                                                                       throws InvalidQueryException
Throws:
InvalidQueryException

getUnboundArguments

protected net.ontopia.topicmaps.query.impl.basic.DynamicAssociationPredicate.ArgumentPair[] getUnboundArguments(QueryMatches matches,
                                                                                                                java.lang.Object[] arguments)
                                                                                                         throws InvalidQueryException
Throws:
InvalidQueryException


Copyright © 2000-2012 Ontopia.