public class DynamicAssociationPredicate extends AbstractDynamicPredicate
Modifier and Type | Class and Description |
---|---|
protected class |
DynamicAssociationPredicate.ArgumentPair |
Modifier and Type | Field and Description |
---|---|
protected ClassInstanceIndexIF |
index |
protected TopicMapIF |
topicmap |
base, name, type
Constructor and Description |
---|
DynamicAssociationPredicate(TopicMapIF topicmap,
LocatorIF base,
TopicIF type) |
Modifier and Type | Method and Description |
---|---|
protected DynamicAssociationPredicate.ArgumentPair[] |
getBoundArguments(QueryMatches matches,
Object[] arguments,
int boundarg) |
int |
getCost(boolean[] boundparams)
INTERNAL.
|
String |
getSignature()
INTERNAL: Returns a string representing the signature of the
predicate.
|
protected DynamicAssociationPredicate.ArgumentPair[] |
getUnboundArguments(QueryMatches matches,
Object[] arguments) |
QueryMatches |
satisfy(QueryMatches matches,
Object[] arguments) |
getName, getType
protected TopicMapIF topicmap
protected ClassInstanceIndexIF index
public DynamicAssociationPredicate(TopicMapIF topicmap, LocatorIF base, TopicIF type)
public 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.
public int getCost(boolean[] boundparams)
PredicateIF
public QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException
InvalidQueryException
protected DynamicAssociationPredicate.ArgumentPair[] getBoundArguments(QueryMatches matches, Object[] arguments, int boundarg) throws InvalidQueryException
InvalidQueryException
protected DynamicAssociationPredicate.ArgumentPair[] getUnboundArguments(QueryMatches matches, Object[] arguments) throws InvalidQueryException
InvalidQueryException