Coverage report

  %line %branch
net.sf.infrared.web.treecontrolmodel.IRTreeStructureModel
0% 
0% 

 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:  kamal.govindraj (Tavant Technologies)
 20  
  * Contributor(s):   prashant.nair;
 21  
  *
 22  
  */
 23  
 package net.sf.infrared.web.treecontrolmodel;
 24  
 
 25  
 import net.sf.jsptree.tree.TreeNode;
 26  
 import net.sf.jsptree.tree.TreeStructureModel;
 27  
 
 28  
 /**
 29  
  * Defines the structure model of the tree.
 30  
  */
 31  
 public class IRTreeStructureModel implements TreeStructureModel
 32  
 {
 33  
 	public TreeNode rootNode;
 34  
 	private String treeName;
 35  
 
 36  
 	public IRTreeStructureModel(TreeNode node)
 37  0
 	{
 38  0
 		setRootNode(node);
 39  0
 	}
 40  
 
 41  
 	public void setRootNode(TreeNode node) {
 42  0
 		rootNode = node;
 43  0
 	}
 44  
 
 45  
     public String getName()
 46  
 	{
 47  0
 		return treeName;
 48  
 	}
 49  
 
 50  
     public void setName(String treeName)
 51  
 	{
 52  0
 		this.treeName = treeName;
 53  0
 	}
 54  
 
 55  
     public TreeNode getRootNode()
 56  
 	{
 57  0
 		return rootNode;
 58  
 	}
 59  
 
 60  0
     public void setRoot(Object root){}
 61  
 
 62  
     public boolean addChildToRoot(Object child)
 63  
     {
 64  0
         return false;
 65  
     }
 66  
 
 67  
     public boolean addChildToParent(Object parent, Object child)
 68  
     {
 69  0
         return false;
 70  
     }
 71  
 
 72  
     public boolean removeNode(Object node)
 73  
     {
 74  0
         return false;
 75  
     }
 76  
 
 77  
     public boolean isLeaf(Object node)
 78  
     {
 79  0
         return false;
 80  
     }
 81  
 
 82  
     public int getChildCount(Object parent)
 83  
     {
 84  0
         return 0;
 85  
     }
 86  
 
 87  
     public int getMaxDepth()
 88  
     {
 89  0
         return 0;
 90  
     }
 91  
 
 92  
     public Object clone() throws CloneNotSupportedException
 93  
     {
 94  0
         IRTreeStructureModel structure = (IRTreeStructureModel)super.clone();
 95  0
         if(this.rootNode != null)
 96  0
             structure.rootNode = (TreeNode)this.rootNode.clone();
 97  
 
 98  0
         return structure;
 99  
 
 100  
     }
 101  
 
 102  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.