net.sf.statcvs.input
public class RevisionData extends Object
Constructor and Description |
---|
RevisionData() |
Modifier and Type | Method and Description |
---|---|
String |
getComment() |
Date |
getDate() |
int |
getLinesAdded() |
int |
getLinesRemoved() |
String |
getLoginName() |
String |
getRevisionNumber() |
boolean |
hasNoLines()
Checks if the revision contains numbers for the added
and removed lines.
|
boolean |
isAddOnSubbranch()
Returns true if this revisionNumber marks the adding of a new file
on a subbranch.
|
boolean |
isChangeOrRestore()
Returns true if this revisionNumber is a normal change, or if it
restores a removed file.
|
boolean |
isCreation()
Returns true if this revisionNumber is the creation of a new file.
|
boolean |
isDeletion()
Returns true if this revisionNumber is the removal of a file.
|
boolean |
isOnTrunk()
Returns true if this revisionNumber is on the main branch.
|
boolean |
isStateDead()
Returns true if this is a dead revisionNumber.
|
boolean |
isStateExp()
Returns true if this is an Exp revisionNumber.
|
void |
setComment(String comment) |
void |
setDate(Date date) |
void |
setLines(int added,
int removed)
Sets the number of added and removed lines.
|
void |
setLoginName(String authorName) |
void |
setRevisionNumber(String revision)
Sets the revision number.
|
void |
setStateDead() |
void |
setStateExp() |
String |
toString() |
public String getLoginName()
public void setLoginName(String authorName)
authorName
- The loginName to set.public Date getDate()
public void setDate(Date date)
date
- The date to set.public int getLinesAdded()
public int getLinesRemoved()
public boolean hasNoLines()
public void setLines(int added, int removed)
added
- The number of added linesremoved
- The number of removed linespublic String getRevisionNumber()
public void setRevisionNumber(String revision)
revision
- The revision numberpublic void setStateDead()
public void setStateExp()
public String getComment()
public void setComment(String comment)
comment
- The comment to set.public boolean isAddOnSubbranch()
public boolean isDeletion()
isAddOnSubbranch()
public boolean isChangeOrRestore()
public boolean isCreation()
public boolean isOnTrunk()
public boolean isStateExp()
public boolean isStateDead()