KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > dso > ClassTreeTwig


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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 JavaDoc name) {
10     super(name);
11   }
12
13   public String JavaDoc getName() {
14     return (String JavaDoc)getUserObject();
15   }
16
17   public String JavaDoc getFullName() {
18     return ClassesHelper.getHelper().getFullName(this);
19   }
20
21   public abstract int getInstanceCount();
22
23   public ClassTreeBranch testGetBranch(String JavaDoc name) {
24     return ClassesHelper.getHelper().testGetBranch(this, name);
25   }
26
27   public ClassTreeLeaf testGetLeaf(String JavaDoc name) {
28     return ClassesHelper.getHelper().testGetLeaf(this, name);
29   }
30
31   public String JavaDoc toString() {
32     return getName() + " (" + getInstanceCount() + ")";
33   }
34 }
35
Popular Tags