|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.Directory
net.sf.statcvs.model.DirectoryImpl
public class DirectoryImpl
A concrete directory in a directory tree. Implementation of the
Directory
interface.
Constructor Summary | |
---|---|
DirectoryImpl(Directory parent,
java.lang.String name)
Creates a new Directory with the given parent and name |
Method Summary | |
---|---|
int |
getDepth()
|
java.lang.String |
getName()
Returns the directory's name without full path or any slashes, e.g. |
Directory |
getParent()
Returns the directory's parent directory or null if it is the root |
java.lang.String |
getPath()
Returns the directory's full path with trailing slash, for example "src/net/sf/statcvs/" |
boolean |
isRoot()
|
java.lang.String |
toString()
|
Methods inherited from class net.sf.statcvs.model.Directory |
---|
addFile, addSubdirectory, compareTo, getCurrentFileCount, getCurrentLOC, getFiles, getRevisionIterator, getSubdirectories, getSubdirectoriesRecursive, isEmpty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectoryImpl(Directory parent, java.lang.String name)
parent
- the parent directoryname
- the directory's name without path or slashesMethod Detail |
---|
public java.lang.String getName()
Directory
getName
in class Directory
Directory.getName()
public java.lang.String getPath()
Directory
getPath
in class Directory
Directory.getPath()
public Directory getParent()
Directory
getParent
in class Directory
Directory.getParent()
public boolean isRoot()
isRoot
in class Directory
Directory.isRoot()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int getDepth()
getDepth
in class Directory
Directory.getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |