1 package net.sf.jlayercheck.util.modeltree; 2 3 import java.util.Vector; 4 5 import javax.swing.tree.TreeNode; 6 7 8 /** 9 * The root of the dependency tree. It contains modules as defined 10 * by the configuration file. 11 * 12 * @author webmaster@earth3d.org 13 */ 14 public interface ModelTree extends TreeNode { 15 public Vector<ModuleNode> getModules(); 16 17 /** 18 * Returns the first ClassNode node for the given classname. 19 * 20 * @param classname 21 * @return 22 */ 23 public ClassNode getClassNode(String classname); 24 25 /** 26 * Returns the node that contains the unassigned packages. 27 * @return "unassigned" ModuleNode 28 */ 29 public ModuleNode getUnassignedModule(); 30 31 /** 32 * Merges the given tree into this one. 33 * 34 * @param additionalModelTree 35 */ 36 public void merge(ModelTree additionalModelTree); 37 }