예제 #1
0
 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;
 }
예제 #2
0
 public Collection getAllNodes() {
   return manager.getAllQueries();
 }