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()
PredicateIFgetName in interface PredicateIFpublic String getSignature()
PredicateIFThe 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 PredicateIFpublic int getCost(boolean[] boundparams)
PredicateIFgetCost in interface PredicateIFpublic QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException
satisfy in interface BasicPredicateIFInvalidQueryException