Class ItemIdentifierPredicate
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.basic.ItemIdentifierPredicate
-
- All Implemented Interfaces:
BasicPredicateIF
,PredicateIF
- Direct Known Subclasses:
ItemIdentifierPredicate
public class ItemIdentifierPredicate extends Object implements BasicPredicateIF
INTERNAL: Implements the 'item-identifier(thing, locator)' predicate.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
predicateName
protected TopicMapIF
topicmap
-
Constructor Summary
Constructors Constructor Description ItemIdentifierPredicate(TopicMapIF topicmap, String predicateName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost(boolean[] boundparams)
INTERNAL.String
getName()
INTERNAL: Returns the name of the predicate.String
getSignature()
INTERNAL: Returns a string representing the signature of the predicate.protected void
prefetchSources(QueryMatches matches, Object[] arguments, int objix)
QueryMatches
satisfy(QueryMatches matches, Object[] arguments)
-
-
-
Field Detail
-
topicmap
protected TopicMapIF topicmap
-
predicateName
protected String predicateName
-
-
Constructor Detail
-
ItemIdentifierPredicate
public ItemIdentifierPredicate(TopicMapIF topicmap, String predicateName)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PredicateIF
INTERNAL: 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:
getName
in interfacePredicateIF
-
getSignature
public String getSignature()
Description copied from interface:PredicateIF
INTERNAL: 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:
getSignature
in interfacePredicateIF
-
getCost
public int getCost(boolean[] boundparams)
Description copied from interface:PredicateIF
INTERNAL.- Specified by:
getCost
in interfacePredicateIF
-
satisfy
public QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException
- Specified by:
satisfy
in interfaceBasicPredicateIF
- Throws:
InvalidQueryException
-
prefetchSources
protected void prefetchSources(QueryMatches matches, Object[] arguments, int objix)
-
-