com.hp.hpl.jena.graph
Class TripleMatchFilter

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.Filter<Triple>
      extended by com.hp.hpl.jena.graph.TripleMatchFilter

public class TripleMatchFilter
extends com.hp.hpl.jena.util.iterator.Filter<Triple>

A class to turn a triple (treated as a pattern) into a Filter. It used to take a TripleMatch but those are obsolete.

Author:
bwm, kers

Field Summary
 
Fields inherited from class com.hp.hpl.jena.util.iterator.Filter
any
 
Constructor Summary
TripleMatchFilter(Triple tMatch)
          Creates new TripleMatchFilter
 
Method Summary
 boolean accept(Triple t)
          The object is wanted.
 
Methods inherited from class com.hp.hpl.jena.util.iterator.Filter
and, any, filterKeep, isAny
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleMatchFilter

public TripleMatchFilter(Triple tMatch)
Creates new TripleMatchFilter

Method Detail

accept

public boolean accept(Triple t)
The object is wanted.

Specified by:
accept in class com.hp.hpl.jena.util.iterator.Filter<Triple>
Parameters:
t - The object to accept or reject. Must be a Triple
Returns:
true if the object is wanted.


Licenced under the Apache License, Version 2.0