|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.statcvs.model.CvsFile
Represents the information about one file in the source repository.
| Constructor Summary | |
CvsFile(java.lang.String workingname,
Directory directory,
java.util.List revisions,
boolean isBinary,
boolean isInAttic)
Creates a CvsFile object. |
|
| Method Summary | |
int |
getCurrentLinesOfCode()
Returns the number of code lines for this file. 0 will be returned for binary files and for files that are deleted. |
Directory |
getDirectory()
|
java.lang.String |
getFilename()
Returns the filename. |
java.lang.String |
getFilenameWithPath()
Returns the workingname. |
CvsRevision |
getInitialRevision()
Gets the earliest revision of this file. |
CvsRevision |
getLatestRevision()
Gets the latest revision of this file. |
CvsRevision |
getPreviousRevision(CvsRevision revision)
Returns the revision which was replaced by the revision given as argument. |
java.util.Iterator |
getRevisionIterator()
Returns an iterator over of revisions in this file. |
java.util.List |
getRevisions()
Returns the list of CvsRevisions of this file, from latest
to oldest. |
boolean |
hasAuthor(Author author)
Returns true, if author worked on this file. |
boolean |
isBinary()
Returns true if the file is checked in as a binary file. |
boolean |
isDead()
Returns true if the latest revision has state dead. |
boolean |
isInAttic()
Returns true if the file is in the Attic. |
java.lang.String |
toString()
Returns a string representation of this objects content. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CvsFile(java.lang.String workingname,
Directory directory,
java.util.List revisions,
boolean isBinary,
boolean isInAttic)
workingname - The name of the filedirectory - the directory where the file residesrevisions - the list of CvsRevisions of this file,
from latest to oldestisBinary - true if it's a binary fileisInAttic - true iff the file is dead on the main branch| Method Detail |
public java.lang.String getFilenameWithPath()
public java.lang.String getFilename()
public Directory getDirectory()
public CvsRevision getLatestRevision()
public CvsRevision getInitialRevision()
public java.util.List getRevisions()
CvsRevisions of this file, from latest
to oldest.
public int getCurrentLinesOfCode()
public java.util.Iterator getRevisionIterator()
public boolean isDead()
true if the latest revision has state dead.
True, if this file is deleted in the repositorypublic boolean isBinary()
true if the file is checked in as a binary file.
True, if this file is a binary filepublic boolean hasAuthor(Author author)
author worked on this file.
author - The Author to search for
true, if the author is listed in one of
this file's revisionspublic boolean isInAttic()
public CvsRevision getPreviousRevision(CvsRevision revision)
revision - a revision of this file
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||