com.hp.hpl.jena.graph.query
Class Matcher

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.Matcher

public abstract class Matcher
extends Object

A Matcher knows how to match itself against a concrete triple (the triple to be matched) and a domain (of bindings to check and extend). It is part of the improved-we-hope PatternStage code.

Author:
kers

Field Summary
static Matcher always
          This matcher always answers true and doesn't even look at the domain, never mind update it.
 
Constructor Summary
Matcher()
           
 
Method Summary
abstract  boolean match(Domain d, Triple t)
          Answer true iff we match the triple t given the bindings in d, updating those bindings if appropriate; the bindings may be updated even if the match answers false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

always

public static final Matcher always
This matcher always answers true and doesn't even look at the domain, never mind update it.

Constructor Detail

Matcher

public Matcher()
Method Detail

match

public abstract boolean match(Domain d,
                              Triple t)
Answer true iff we match the triple t given the bindings in d, updating those bindings if appropriate; the bindings may be updated even if the match answers false.



Licenced under the Apache License, Version 2.0