org.apache.clerezza.rdf.core.event
Class FilterTriple
java.lang.Object
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
|
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()
|
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.
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.