import org.w3c.dom.*;
import java.util.*;

public class SearchVisitor extends Visitor {

	private List<Element> found = new ArrayList<Element>();

	public List<Element> getFound() {
		return found;
	}

    // override:
	public boolean test(Element node) {
		return false; // for now
	}

	public void visit(Element node) throws VisitorException {
	   if (test(node)) {
		   found.add(node);
	   }
    }
}

