01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.dso;
05:
06: import com.tc.admin.common.XTreeNode;
07:
08: public abstract class ClassTreeTwig extends XTreeNode implements
09: ClassTreeNode {
10: public ClassTreeTwig(String name) {
11: super (name);
12: }
13:
14: public String getName() {
15: return (String) getUserObject();
16: }
17:
18: public String getFullName() {
19: return ClassesHelper.getHelper().getFullName(this );
20: }
21:
22: public abstract int getInstanceCount();
23:
24: public ClassTreeBranch testGetBranch(String name) {
25: return ClassesHelper.getHelper().testGetBranch(this , name);
26: }
27:
28: public ClassTreeLeaf testGetLeaf(String name) {
29: return ClassesHelper.getHelper().testGetLeaf(this , name);
30: }
31:
32: public String toString() {
33: return getName() + " (" + getInstanceCount() + ")";
34: }
35: }
|