public Node getNode(String name) { Collection nodes = manager.getAllQueries(); for (Iterator iter = nodes.iterator(); iter.hasNext(); ) { Query node = (Query) iter.next(); if (node.getName().equals(name)) { return node; } } return null; }
public Collection getAllNodes() { return manager.getAllQueries(); }