com.hp.hpl.jena.util.iterator
Class Filter

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.Filter
Direct Known Subclasses:
TripleMatchFilter

public abstract class Filter
extends java.lang.Object

boolean functions wrapped to be used in filtering iterators.

Author:
jjc, kers

Field Summary
static Filter any
          A Filter that accepts everything it's offered.
 
Constructor Summary
Filter()
           
 
Method Summary
abstract  boolean accept(java.lang.Object o)
          Answer true iff the object o is acceptable.
 Filter and(Filter other)
           
 ExtendedIterator filterKeep(java.util.Iterator it)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

any

public static final Filter any
A Filter that accepts everything it's offered.

Constructor Detail

Filter

public Filter()
Method Detail

accept

public abstract boolean accept(java.lang.Object o)
Answer true iff the object o is acceptable. This method may also throw an exception if the argument is of a wrong type; it is not required to return false in such a case.


filterKeep

public ExtendedIterator filterKeep(java.util.Iterator it)

and

public Filter and(Filter other)


Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP