01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.views;
06:
07: public class ExcludesWrapper {
08: InstrumentedClassesWrapper m_instrumentedClasses;
09: ExcludeWrapper[] children;
10:
11: ExcludesWrapper(InstrumentedClassesWrapper instrumentedClasses) {
12: m_instrumentedClasses = instrumentedClasses;
13: }
14:
15: ExcludeWrapper[] createExcludeWrappers() {
16: int count = m_instrumentedClasses.sizeOfExcludeArray();
17: children = new ExcludeWrapper[count];
18:
19: for (int i = 0; i < count; i++) {
20: children[i] = new ExcludeWrapper(m_instrumentedClasses, i);
21: }
22:
23: return children;
24: }
25:
26: ExcludeWrapper[] getChildren() {
27: return children;
28: }
29:
30: ExcludeWrapper getChildAt(int index) {
31: return children != null ? children[index] : null;
32: }
33:
34: int sizeOfExcludeArray() {
35: return m_instrumentedClasses.sizeOfExcludeArray();
36: }
37:
38: public String toString() {
39: return "Excludes";
40: }
41: }
|