org.topbraid.spin.model.visitor
Class AbstractTriplesVisitor

java.lang.Object
  extended by org.topbraid.spin.model.visitor.AbstractTriplesVisitor
Direct Known Subclasses:
PropertyPathsGetter

public abstract class AbstractTriplesVisitor
extends java.lang.Object

A utility that can be used to traverse all TriplePatterns under a given root Element. This also traverses function calls and simulates the bindings of those function calls if a Function has a registered body.

Author:
Holger Knublauch

Constructor Summary
AbstractTriplesVisitor(Element element, java.util.Map<Property,RDFNode> initialBindings)
           
 
Method Summary
protected abstract  void handleTriplePattern(TriplePattern triplePattern, java.util.Map<Property,RDFNode> bindings)
          Will be called on each TriplePattern.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTriplesVisitor

public AbstractTriplesVisitor(Element element,
                              java.util.Map<Property,RDFNode> initialBindings)
Method Detail

run

public void run()

handleTriplePattern

protected abstract void handleTriplePattern(TriplePattern triplePattern,
                                            java.util.Map<Property,RDFNode> bindings)
Will be called on each TriplePattern.

Parameters:
triplePattern - the TriplePattern