public class JavaSearcherPredicate extends Object implements BasicPredicateIF
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected SearcherIF |
searcher |
protected TopicMapIF |
topicmap |
Constructor and Description |
---|
JavaSearcherPredicate(String name,
TopicMapIF topicmap,
SearcherIF searcher) |
Modifier and Type | Method and Description |
---|---|
int |
getCost(boolean[] boundparams)
INTERNAL.
|
String |
getName()
INTERNAL: Returns the name of the predicate.
|
protected Object |
getObject(Object value,
int valtype) |
String |
getSignature()
INTERNAL: Returns a string representing the signature of the
predicate.
|
QueryMatches |
satisfy(QueryMatches matches,
Object[] arguments) |
protected String name
protected TopicMapIF topicmap
protected SearcherIF searcher
public JavaSearcherPredicate(String name, TopicMapIF topicmap, SearcherIF searcher)
public String getName()
PredicateIF
getName
in interface PredicateIF
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.
getSignature
in interface PredicateIF
public int getCost(boolean[] boundparams)
PredicateIF
getCost
in interface PredicateIF
public QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException
satisfy
in interface BasicPredicateIF
InvalidQueryException