org.apache.clerezza.rdf.core.event
Class FilterTriple

java.lang.Object
  extended by org.apache.clerezza.rdf.core.event.FilterTriple

public class FilterTriple
extends Object

The FilterTriple class provides a match()-method that tests if a Triple match a certain triple pattern.

Author:
mir

Constructor Summary
FilterTriple(NonLiteral subject, UriRef predicate, Resource object)
          Creates a new FilterTriple.
 
Method Summary
 boolean match(Triple triple)
          Returns true if the subject, predicate and object of the specified Triple match the subject, predicate and object of this FilterTriple.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterTriple

public FilterTriple(NonLiteral subject,
                    UriRef predicate,
                    Resource object)
Creates a new FilterTriple. The specified subject, predicate and object are used to test a given Triple. Any of these values can be null, which acts as wildcard in the test.

Parameters:
subject - the subject.
predicate - the predicate.
object - the object.
Method Detail

match

public boolean match(Triple triple)
Returns true if the subject, predicate and object of the specified Triple match the subject, predicate and object of this FilterTriple. Null values in the FilterTriple act as wildcards.

Parameters:
triple -
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.