net.ontopia.topicmaps.query.spi
Class FilterPredicate

java.lang.Object
  extended by net.ontopia.topicmaps.query.spi.JavaPredicate
      extended by net.ontopia.topicmaps.query.spi.FilterPredicate
All Implemented Interfaces:
net.ontopia.topicmaps.query.impl.basic.BasicPredicateIF, net.ontopia.topicmaps.query.parser.PredicateIF
Direct Known Subclasses:
EqualsFilter

public abstract class FilterPredicate
extends JavaPredicate

EXPERIMENTAL: Base predicate that provides a simple interface for implementing predicate filters. For such a predicate to work all arguments must be bound at the time when the predicate is executed. See the ProcessPredicate if you need more flexibility.

Since:
4.0

Constructor Summary
FilterPredicate()
           
 
Method Summary
abstract  boolean filter(java.lang.Object[] row)
          EXPERIMENTAL: Returns true if the given row objects should be included in the result.
 net.ontopia.topicmaps.query.impl.basic.QueryMatches satisfy(net.ontopia.topicmaps.query.impl.basic.QueryMatches matches, java.lang.Object[] arguments)
          INTERNAL: Internal machinery.
 
Methods inherited from class net.ontopia.topicmaps.query.spi.JavaPredicate
getCost, getModuleURI, getName, getParameters, getPredicateName, getSignature, getTopicMap, setModuleURI, setParameters, setPredicateName, setTopicMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterPredicate

public FilterPredicate()
Method Detail

satisfy

public final net.ontopia.topicmaps.query.impl.basic.QueryMatches satisfy(net.ontopia.topicmaps.query.impl.basic.QueryMatches matches,
                                                                         java.lang.Object[] arguments)
                                                                  throws InvalidQueryException
Description copied from class: JavaPredicate
INTERNAL: Internal machinery.

Specified by:
satisfy in interface net.ontopia.topicmaps.query.impl.basic.BasicPredicateIF
Specified by:
satisfy in class JavaPredicate
Throws:
InvalidQueryException

filter

public abstract boolean filter(java.lang.Object[] row)
                        throws InvalidQueryException
EXPERIMENTAL: Returns true if the given row objects should be included in the result.

Throws:
InvalidQueryException


Copyright © 2000-2009 Ontopia.