Class HierarchyWalkerRulePredicate
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.utils.HierarchyWalkerRulePredicate
-
- All Implemented Interfaces:
BasicPredicateIF,PredicateIF
public class HierarchyWalkerRulePredicate extends Object implements BasicPredicateIF
INTERNAL:
-
-
Field Summary
Fields Modifier and Type Field Description protected Variablefirstvarprotected Variablemidvarprotected RulePredicateruleprotected Variablesecondvarprotected PredicateClausewrapped
-
Constructor Summary
Constructors Constructor Description HierarchyWalkerRulePredicate(RulePredicate rule, Variable firstvar, Variable secondvar, Variable midvar, PredicateClause wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCost(boolean[] boundparam)INTERNAL.StringgetName()INTERNAL: Returns the name of the predicate.StringgetSignature()INTERNAL: Returns a string representing the signature of the predicate.QueryMatchessatisfy(QueryMatches extmatches, Object[] extarguments)
-
-
-
Field Detail
-
rule
protected RulePredicate rule
-
firstvar
protected Variable firstvar
-
secondvar
protected Variable secondvar
-
midvar
protected Variable midvar
-
wrapped
protected PredicateClause wrapped
-
-
Constructor Detail
-
HierarchyWalkerRulePredicate
public HierarchyWalkerRulePredicate(RulePredicate rule, Variable firstvar, Variable secondvar, Variable midvar, PredicateClause wrapped)
-
-
Method Detail
-
getName
public String 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
public String getSignature() throws InvalidQueryException
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- Throws:
InvalidQueryException
-
getCost
public int getCost(boolean[] boundparam)
Description copied from interface:PredicateIFINTERNAL.- Specified by:
getCostin interfacePredicateIF
-
satisfy
public QueryMatches satisfy(QueryMatches extmatches, Object[] extarguments) throws InvalidQueryException
- Specified by:
satisfyin interfaceBasicPredicateIF- Throws:
InvalidQueryException
-
-