%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
net.sf.infrared.web.treecontrolmodel.IRLeafNode |
|
|
1 | /* |
|
2 | * |
|
3 | * Copyright 2005 Tavant Technologies and Contributors |
|
4 | * |
|
5 | * Licensed under the Apache License, Version 2.0 (the "License") |
|
6 | * you may not use this file except in compliance with the License. |
|
7 | * You may obtain a copy of the License at |
|
8 | * |
|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | * |
|
11 | * Unless required by applicable law or agreed to in writing, software |
|
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | * See the License for the specific language governing permissions and |
|
15 | * limitations under the License. |
|
16 | * |
|
17 | * |
|
18 | * |
|
19 | * Original Author: prashant.nair (Tavant Technologies) |
|
20 | * Contributor(s): -; |
|
21 | * |
|
22 | */ |
|
23 | package net.sf.infrared.web.treecontrolmodel; |
|
24 | ||
25 | import net.sf.infrared.base.model.AggregateExecutionTime; |
|
26 | import net.sf.infrared.base.util.TreeNode; |
|
27 | import net.sf.infrared.web.treecontrolmodel.NodeToStringConverter; |
|
28 | ||
29 | import java.util.ArrayList; |
|
30 | import java.util.List; |
|
31 | ||
32 | /** |
|
33 | * Represents a leaf level node in the tree. |
|
34 | */ |
|
35 | public class IRLeafNode implements net.sf.jsptree.tree.TreeNode { |
|
36 | public AggrApiJspTreeNode treeNode; |
|
37 | ||
38 | public TreeNode node; |
|
39 | ||
40 | public NodeToStringConverter nodeToStringConverter; |
|
41 | ||
42 | 0 | public IRLeafNode(TreeNode node, NodeToStringConverter nodeToStringConverter) { |
43 | 0 | this.node = node; |
44 | 0 | AggregateExecutionTime aggApiTime = (AggregateExecutionTime) node.getValue(); |
45 | 0 | this.treeNode = new AggrApiJspTreeNode(aggApiTime, nodeToStringConverter); |
46 | 0 | this.nodeToStringConverter = nodeToStringConverter; |
47 | 0 | } |
48 | ||
49 | public Object getData() { |
|
50 | 0 | return treeNode; |
51 | } |
|
52 | ||
53 | public List getChildNodes() { |
|
54 | 0 | return new ArrayList(); |
55 | } |
|
56 | ||
57 | public int getDepth() { |
|
58 | 0 | return node.getDepth(); |
59 | } |
|
60 | ||
61 | public boolean hasChildren() { |
|
62 | 0 | return false; |
63 | } |
|
64 | ||
65 | public int getChildCount() { |
|
66 | 0 | return 0; |
67 | } |
|
68 | ||
69 | public Object clone() throws CloneNotSupportedException { |
|
70 | 0 | return null; |
71 | } |
|
72 | ||
73 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |