org.jrdf.graph.global.molecule
Interface MoleculeTraverser
- All Known Implementing Classes:
- MoleculeTraverserImpl
public interface MoleculeTraverser
This recursively traverses a Molecule calling methods on the handler class. It will call
MoleculeHandler.handleStartContainsMolecules(java.util.Set) and
MoleculeHandler.handleEndContainsMolecules(java.util.Set) if the molecule (or sub-molecule) contains any
submolecules. If not it will call MoleculeHandler.handleEmptyMolecules(). It
will then iterate over the root triples in the molecule calling (org.jrdf.graph.Triple), it will then attempt to get the submolecule for each triple.
Implementations may want to track the level of the molecule that they are currently in. So having a depth to the
handleContainsMolecules method is the way to do this.
- Version:
- $Id: MoleculeTraverser.java 2894 2009-01-27 21:25:13Z newmana $
- Author:
- Andrew Newman
traverse
void traverse(Molecule molecule,
MoleculeHandler handler)