1 4 package com.tc.admin.dso; 5 6 import com.tc.admin.common.XTreeNode; 7 8 public abstract class ClassTreeTwig extends XTreeNode implements ClassTreeNode { 9 public ClassTreeTwig(String name) { 10 super(name); 11 } 12 13 public String getName() { 14 return (String )getUserObject(); 15 } 16 17 public String getFullName() { 18 return ClassesHelper.getHelper().getFullName(this); 19 } 20 21 public abstract int getInstanceCount(); 22 23 public ClassTreeBranch testGetBranch(String name) { 24 return ClassesHelper.getHelper().testGetBranch(this, name); 25 } 26 27 public ClassTreeLeaf testGetLeaf(String name) { 28 return ClassesHelper.getHelper().testGetLeaf(this, name); 29 } 30 31 public String toString() { 32 return getName() + " (" + getInstanceCount() + ")"; 33 } 34 } 35 | Popular Tags |