net.sf.statsvn.input
public class RevisionData extends Object
Constructor and Description |
---|
RevisionData() |
Modifier and Type | Method and Description |
---|---|
RevisionData |
createCopy()
Returns a new instance of the RevisionData, with the same fields as the current one.
|
String |
getComment() |
String |
getCopyfromPath() |
String |
getCopyfromRevision() |
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 |
isChange()
Returns true if this revisionNumber is a normal change.
|
boolean |
isCreationOrRestore()
Returns true if this revisionNumber is the creation of a new file or a restore..
|
boolean |
isDeletion()
Returns true if this revisionNumber is the removal of a file.
|
boolean |
isStateDead()
Returns true if this is a dead revisionNumber.
|
boolean |
isStateExp()
Returns true if this is an Exp ("exposed"?) revisionNumber.
|
void |
setComment(String comment) |
void |
setCopyfromPath(String copyfromPath) |
void |
setCopyfromRevision(String copyfromRevision) |
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 |
setStateAdded(boolean isAdded)
Is this revision an addition?
New in StatSVN: This is no longer a still exists in working copy.
|
void |
setStateDead(boolean isDead)
Is this revision a deletion?
|
void |
setStateExp(boolean isExposed)
Is the revision exposed.
|
String |
toString()
Returns the current revision data in string format.
|
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(boolean isDead)
isDead
- true if revision is a deletion.public void setStateExp(boolean isExposed)
isExposed
- true true if the revision is not a deletion.public void setStateAdded(boolean isAdded)
isAdded
- public String getComment()
public void setComment(String comment)
comment
- The comment to set.public boolean isDeletion()
public boolean isChange()
public boolean isCreationOrRestore()
public boolean isStateExp()
public boolean isStateDead()
public String toString()
public RevisionData createCopy()
public String getCopyfromPath()
public void setCopyfromPath(String copyfromPath)
public String getCopyfromRevision()
public void setCopyfromRevision(String copyfromRevision)