|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.ultrametrics.rcs.Revision
Encapsulation of an RCS revision including a log entry describing the change and the text of the modification.
Field Summary | |
static java.lang.String |
_rcsId
|
Constructor Summary | |
Revision(LogEntry logEntry,
Modification modification)
Create a new revision. |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
void |
dump()
Similar to toString(), but more verbose and dumps directly to stderr. |
int |
getAddedCount()
Retrieve the number of lines added. |
java.lang.String |
getAuthor()
Retrieve the author of the revision. |
java.util.Collection |
getBranches()
Retrieve the version numbers of branches of this version's node. |
java.lang.String |
getChanges()
Retrieve the changes for this revision. |
java.lang.String |
getComments()
Retrieve the author's comments describing this modification. |
java.util.Date |
getDate()
Retrieve the date this revision was made. |
int |
getLineCount()
Retrieve the total line count. |
java.lang.String |
getNextVersion()
Retrieve the version number of the next version. |
int |
getRemovedCount()
Retrieve the number of lines removed. |
java.lang.String |
getState()
Retrieve the state. |
java.lang.String |
getVersion()
Retrieve the version number of this revision. |
protected void |
setAddedCount(int added)
|
protected void |
setRemovedCount(int removed)
|
java.lang.String |
toString()
|
java.lang.String |
toSummaryString()
Similar to toString(), but a more concise, single-line description. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String _rcsId
Constructor Detail |
public Revision(LogEntry logEntry, Modification modification)
logEntry
- the log entry for the revision.modification
- the modification log for the revision.Method Detail |
public java.lang.String getVersion()
public java.lang.String getChanges()
public java.lang.String getComments()
public int getAddedCount()
public int getRemovedCount()
public int getLineCount()
protected void setAddedCount(int added)
protected void setRemovedCount(int removed)
public java.lang.String getAuthor()
public java.util.Date getDate()
RCS dates are stored in and use GMT as a base. Note: Most RCS/CVS clients always display times in GMT. Converting this Date to a string might display the date adjusted for your locale.
public java.lang.String getState()
public java.lang.String getNextVersion()
public java.util.Collection getBranches()
public int compareTo(java.lang.Object o)
public java.lang.String toSummaryString()
public java.lang.String toString()
public void dump()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |