Coverage Report - net.sf.statcvs.model.DirectoryRoot
 
Classes in this File Line Coverage Branch Coverage Complexity
DirectoryRoot
0%
0/8
N/A
1
 
 1  
 /*
 2  
         StatCvs - CVS statistics generation 
 3  
         Copyright (C) 2002  Lukasz Pekacki <lukasz@pekacki.de>
 4  
         http://statcvs.sf.net/
 5  
     
 6  
         This library is free software; you can redistribute it and/or
 7  
         modify it under the terms of the GNU Lesser General Public
 8  
         License as published by the Free Software Foundation; either
 9  
         version 2.1 of the License, or (at your option) any later version.
 10  
 
 11  
         This library is distributed in the hope that it will be useful,
 12  
         but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14  
         Lesser General Public License for more details.
 15  
 
 16  
         You should have received a copy of the GNU Lesser General Public
 17  
         License along with this library; if not, write to the Free Software
 18  
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 19  
     
 20  
         $RCSfile: DirectoryRoot.java,v $
 21  
         $Date: 2008/04/02 11:22:16 $
 22  
 */
 23  
 package net.sf.statcvs.model;
 24  
 
 25  
 /**
 26  
  * The root of a tree of <tt>Directory</tt> objects. To create an instance
 27  
  * of this class, call {@link Directory#createRoot}.
 28  
  * 
 29  
  * @author Richard Cyganiak <richard@cyganiak.de>
 30  
  * @version $Id: DirectoryRoot.java,v 1.4 2008/04/02 11:22:16 benoitx Exp $
 31  
  */
 32  
 class DirectoryRoot extends Directory {
 33  
 
 34  
     /**
 35  
      * Use {@link Directory#createRoot} to construct instances of this class.
 36  
      *
 37  
      */
 38  0
     DirectoryRoot() {
 39  
         // no code, we just want the Javadoc comment
 40  0
     }
 41  
 
 42  
     /**
 43  
      * @see net.sf.statcvs.model.Directory#getName()
 44  
      */
 45  
     public String getName() {
 46  0
         return "";
 47  
     }
 48  
 
 49  
     /**
 50  
      * @see net.sf.statcvs.model.Directory#getPath()
 51  
      */
 52  
     public String getPath() {
 53  0
         return "";
 54  
     }
 55  
 
 56  
     /**
 57  
      * @see net.sf.statcvs.model.Directory#getParent()
 58  
      */
 59  
     public Directory getParent() {
 60  0
         return null;
 61  
     }
 62  
 
 63  
     /**
 64  
      * @see net.sf.statcvs.model.Directory#isRoot()
 65  
      */
 66  
     public boolean isRoot() {
 67  0
         return true;
 68  
     }
 69  
 
 70  
     /**
 71  
      * @see java.lang.Object#toString()
 72  
      */
 73  
     public String toString() {
 74  0
         return "root directory";
 75  
     }
 76  
 
 77  
     /**
 78  
      * @see net.sf.statcvs.model.Directory#getDepth()
 79  
      */
 80  
     public int getDepth() {
 81  0
         return 0;
 82  
     }
 83  
 }