|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsRevision
One revision of a CvsFile
. That can be an initial revision
(checkin), a change, a deletion, or a re-add. Revisions are created
using the methods CvsFile.addInitialRevision(java.lang.String, net.sf.statcvs.model.Author, java.util.Date, java.lang.String, int)
,
CvsFile.addChangeRevision(java.lang.String, net.sf.statcvs.model.Author, java.util.Date, java.lang.String, int, int, int)
and
CvsFile.addDeletionRevision(java.lang.String, net.sf.statcvs.model.Author, java.util.Date, java.lang.String, int)
.
TODO: Replace type code with hierarchy
TODO: Rename class to Revision, getAuthor() to getLogin(), isDead() to isDeletion()
Field Summary | |
static int |
TYPE_BEGIN_OF_LOG
Marks a revision at the very beginning of the log timespan. |
static int |
TYPE_CHANGE
Marks a revision that changes the file. |
static int |
TYPE_CREATION
Marks a revision that creates a new file. |
static int |
TYPE_DELETION
Marks a revision that deletes the file. |
Method Summary | |
int |
compareTo(Object other)
Compares this revision to another revision. |
Author |
getAuthor()
Returns the author of this revision. |
String |
getComment()
Returns the comment for this revision. |
Date |
getDate()
Returns the date of this revision. |
int |
getEffectiveLinesOfCode()
Deprecated. Use getLines() instead. |
CvsFile |
getFile()
Returns the file which was changed by this revision. |
int |
getFileCountChange()
Deprecated. Use getFileCountDelta() instead. |
int |
getFileCountDelta()
Returns the change of the file count caused by this revision. |
int |
getLines()
Returns the number of lines for this revision. |
int |
getLinesAdded()
Deprecated. Use getLinesDelta() and getReplacedLines() instead. |
int |
getLinesDelta()
Returns by how many lines the line count changed with this revision. |
int |
getLinesOfCode()
Deprecated. Use getLines() instead. |
int |
getLinesOfCodeChange()
Deprecated. Use getLinesDelta() instead. |
int |
getLinesRemoved()
Deprecated. Use getLinesDelta() and getReplacedLines() instead. |
int |
getLineValue()
Deprecated. Use getNewLines() instead. |
int |
getNewLines()
Returns the number of "new" lines in this revision. |
CvsRevision |
getPreviousRevision()
Returns the predecessor of this revision or null if it is the first revision for the file. |
int |
getRemovingValue()
Deprecated. Use getReplacedLines() and getLinesDelta() instead. |
int |
getReplacedLines()
Returns the number of lines that were removed and replaced by other lines in this revision. |
String |
getRevision()
Deprecated. Use getRevisionNumber() instead. |
String |
getRevisionNumber()
Returns the revision number. |
boolean |
isBeginOfLog()
Returns true if this is a revision at the very beginning of the log timespan which is only a container for the number of code lines at the beginning of the log and not a real revision committed by an author. |
boolean |
isDead()
Returns true if the file is deleted in this revision. |
boolean |
isInitialRevision()
Returns true if the file did not exist before this
revision and does exist afterwards. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TYPE_CREATION
public static final int TYPE_CHANGE
public static final int TYPE_DELETION
public static final int TYPE_BEGIN_OF_LOG
Method Detail |
public String getRevisionNumber()
public Author getAuthor()
public String getComment()
public Date getDate()
public int getLines()
public int getLinesDelta()
-getLines()
,
re-adds and initial revisions return getLines()
.
public int getReplacedLines()
public int getNewLines()
public int getFileCountDelta()
public boolean isInitialRevision()
true
if the file did not exist before this
revision and does exist afterwards. Possibly the file was deleted
before, or it never existed before.
true
if the file did not exist beforepublic boolean isDead()
true
if the file is deleted in this revisionpublic boolean isBeginOfLog()
true
if this revision exists
only for StatCvs bookkeeping purposespublic String toString()
public CvsFile getFile()
public CvsRevision getPreviousRevision()
public int compareTo(Object other)
compareTo
in interface Comparable
public int getLinesAdded()
getLinesDelta()
and getReplacedLines()
instead.
public int getLinesRemoved()
getLinesDelta()
and getReplacedLines()
instead.
public int getLinesOfCode()
getLines()
instead.
public int getEffectiveLinesOfCode()
getLines()
instead.
public int getLinesOfCodeChange()
getLinesDelta()
instead.
public int getLineValue()
getNewLines()
instead.
public int getRemovingValue()
getReplacedLines()
and getLinesDelta()
instead.
public int getFileCountChange()
getFileCountDelta()
instead.
public String getRevision()
getRevisionNumber()
instead.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |