Class DynamicFailurePredicate
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
-
- net.ontopia.topicmaps.query.impl.basic.DynamicFailurePredicate
-
- All Implemented Interfaces:
BasicPredicateIF
,PredicateIF
- Direct Known Subclasses:
DynamicFailurePredicate
public class DynamicFailurePredicate extends AbstractDynamicPredicate
INTERNAL: Special predicate used when a topic is used as a predicate but the topic is neither an association type nor an occurrence type. It is needed because creating a DynamicAssociationPredicate or DynamicOccurrencePredicate assumes a particular type of parameter (pair or non-pair), whereas this predicate will not complain about that.
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
base, name, type
-
-
Constructor Summary
Constructors Constructor Description DynamicFailurePredicate()
DynamicFailurePredicate(TopicIF type, LocatorIF base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost(boolean[] boundparams)
INTERNAL.String
getSignature()
INTERNAL: Returns a string representing the signature of the predicate.QueryMatches
satisfy(QueryMatches matches, Object[] arguments)
-
Methods inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractDynamicPredicate
getName, getType
-
-
-
-
Method Detail
-
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.
-
getCost
public int getCost(boolean[] boundparams)
Description copied from interface:PredicateIF
INTERNAL.
-
satisfy
public QueryMatches satisfy(QueryMatches matches, Object[] arguments) throws InvalidQueryException
- Throws:
InvalidQueryException
-
-