|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsModule
Representation of a CVS module. May be the root of a project or any of its subfolders
Constructor Summary | |
CvsModule(CvsContent content,
CvsModule father,
java.lang.String name)
Constructor CvsModule |
Method Summary | |
void |
addChild(CvsModule childModule)
Adds a child module into this module |
boolean |
allFilesDeleted()
Returns true if all files in this module and its
children are deleted. |
CvsModule |
getChild(java.lang.String childPath)
Returns a child module, specified by pathname |
protected java.util.Iterator |
getChildrenIterator()
Returns an iterator over the children list of this module. |
int |
getCurrentFileCount()
Returns the number of files in this module. |
int |
getDeletedFileCount()
Returns the number of deleted files in this module. |
int |
getDepth()
Returns the depth of this module in the tree. |
CvsModule |
getFather()
Returns the father of this module. |
java.util.Iterator |
getFileIterator()
Returns an iterator of CvsFile s over the files in this module only. |
int |
getLinesInModule()
Returns the number of code lines in this module. |
java.lang.String |
getName()
Returns the name of this module without its path. |
int |
getNumberOfChildren()
Method getNumberOfChildren. |
java.lang.String |
getPath()
Returns the path. |
boolean |
isRoot()
Returns true if this module is the root module. |
CvsTreeIterator |
iterator()
Returns a CvsTreeIterator which can be used to traverse
the hole subtree of this module including this module. |
java.lang.String |
toString()
Returns a string representation of this module. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CvsModule(CvsContent content, CvsModule father, java.lang.String name)
name
- - name of the directory of this modulecontent
- content objectfather
- module of this moduleMethod Detail |
public void addChild(CvsModule childModule)
childModule
- child to addpublic int getDepth()
public CvsModule getChild(java.lang.String childPath)
childPath
- path of the child
public java.util.Iterator getFileIterator()
CvsFile
s over the files in this module only.
public int getLinesInModule()
public int getCurrentFileCount()
public int getDeletedFileCount()
protected java.util.Iterator getChildrenIterator()
public CvsTreeIterator iterator()
CvsTreeIterator
which can be used to traverse
the hole subtree of this module including this module.
CvsTreeIterator
public java.lang.String toString()
public int getNumberOfChildren()
public boolean isRoot()
public java.lang.String getPath()
public CvsModule getFather()
null
if this module is
the root.public java.lang.String getName()
public boolean allFilesDeleted()
true
if all files in this module and its
children are deleted.
true
if all files are deleted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |