Revisions:
December 16, 2002 Sacha Labourey:
// Static -------------------------------------------------------- // Constructors -------------------------------------------------- Package jbossPackage = Package.getPackage("org.jboss"); jbossVersion = jbossPackage.getImplementationTitle() + " " + jbossPackage.getImplementationVersion();
ArrayList content = (ArrayList)resources.get (resource); if (content == null || content.size () == 0) { content = new ArrayList (); resources.put (resource, content); } if (!content.contains (tree)) content.add (tree);
return jbossVersion;
return this.homeAction;
return this.iconUrl;
return this.rootMenus;
return this.roots;
return this.version;
ArrayList content = (ArrayList)resources.get (resource); if (content == null || content.size () == 0) return null; else { TreeNode[] result = new TreeNode[content.size ()]; return (TreeNode[])content.toArray (result); }
this.homeAction = homeAction;
this.iconUrl = url;
this.rootMenus = menus;
this.roots = roots;
this.version = version;
String result = "Root: " + roots + "\n" ; Iterator iter = resources.keySet ().iterator (); while (iter.hasNext ()) { ManageableResource key = (ManageableResource)iter.next(); ArrayList content = (ArrayList)resources.get (key); result+=" Key: " + key + "\n"; for (int i = 0; i < content.size(); i++) { result += " Value: " + content.get(i); } result+=" ----\n"; } return result;