|
|||||||||||
| 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
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 slashes| Method Detail |
public java.lang.String getName()
Directory
getName in class DirectoryDirectory.getName()public java.lang.String getPath()
Directory
getPath in class DirectoryDirectory.getPath()public Directory getParent()
Directory
getParent in class DirectoryDirectory.getParent()public boolean isRoot()
isRoot in class DirectoryDirectory.isRoot()public java.lang.String toString()
Object.toString()public int getDepth()
getDepth in class DirectoryDirectory.getDepth()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||