Package net.ontopia.topicmaps.query.spi
Class JavaPredicate
java.lang.Object
net.ontopia.topicmaps.query.spi.JavaPredicate
- All Implemented Interfaces:
BasicPredicateIF,PredicateIF
- Direct Known Subclasses:
FilterPredicate,ProcessPredicate
INTERNAL: Abstract predicate class that works as a common
superclass for the real predicate classes. Don't subclass this one
directly; instead, subclass one of its subclasses, FilterPredicate
or ProcessPredicated, depending on what kind of predicate you
want.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCost(boolean[] boundparams) INTERNAL.getName()INTERNAL: Returns the name of the predicate.INTERNAL: Returns a string representing the signature of the predicate.abstract QueryMatchessatisfy(QueryMatches matches, Object[] arguments) INTERNAL: Internal machinery.voidsetModuleURI(String moduleURI) voidsetParameters(Map parameters) voidsetPredicateName(String predicateName) voidsetTopicMap(TopicMapIF topicmap)
-
Constructor Details
-
JavaPredicate
public JavaPredicate()
-
-
Method Details
-
getName
Description copied from interface:PredicateIFINTERNAL: Returns the name of the predicate. This will usually be the name of the predicate within its module ('instance-of', '/=', 'starts-with'), but some virtual predicates cannot be reached from the syntax and may return names that will not parse.- Specified by:
getNamein interfacePredicateIF
-
getSignature
Description copied from interface:PredicateIFINTERNAL: 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.
- Specified by:
getSignaturein interfacePredicateIF
-
getCost
public int getCost(boolean[] boundparams) Description copied from interface:PredicateIFINTERNAL.- Specified by:
getCostin interfacePredicateIF
-
getModuleURI
-
setModuleURI
-
getPredicateName
-
setPredicateName
-
getTopicMap
-
setTopicMap
-
getParameters
-
setParameters
-
satisfy
public abstract QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException INTERNAL: Internal machinery.- Specified by:
satisfyin interfaceBasicPredicateIF- Throws:
InvalidQueryException
-