/** Creates a new instance of SchemaTreeModel */
public SchemaTreeModel(Linkable root) {
this.root = root;
RecursiveLoop loop = new RecursiveLoop(){
public boolean logic(Object tree) {
Linkable node = ((Linkable)tree);
nodesIndexedByName.put(node.getName(), node);
return false;
}
public List getChildren(Object tree) {
return ((Linkable)tree).getChildren();
}
};
loop.run(root);
}