|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statsvn.input.RevisionData
public class RevisionData
Container for all information contained in one SVN revision.
Constructor Summary | |
---|---|
RevisionData()
|
Method Summary | |
---|---|
RevisionData |
createCopy()
Returns a new instance of the RevisionData, with the same fields as the current one. |
java.lang.String |
getComment()
|
java.lang.String |
getCopyfromPath()
|
java.lang.String |
getCopyfromRevision()
|
java.util.Date |
getDate()
|
int |
getLinesAdded()
|
int |
getLinesRemoved()
|
java.lang.String |
getLoginName()
|
java.lang.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"?) |
void |
setComment(java.lang.String comment)
|
void |
setCopyfromPath(java.lang.String copyfromPath)
|
void |
setCopyfromRevision(java.lang.String copyfromRevision)
|
void |
setDate(java.util.Date date)
|
void |
setLines(int added,
int removed)
Sets the number of added and removed lines. |
void |
setLoginName(java.lang.String authorName)
|
void |
setRevisionNumber(java.lang.String revision)
Sets the revision number. |
void |
setStateAdded(boolean isAdded)
Is this revision an addition? |
void |
setStateDead(boolean isDead)
Is this revision a deletion? |
void |
setStateExp(boolean isExposed)
Is the revision exposed. |
java.lang.String |
toString()
Returns the current revision data in string format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RevisionData()
Method Detail |
---|
public java.lang.String getLoginName()
public void setLoginName(java.lang.String authorName)
authorName
- The loginName to set.public java.util.Date getDate()
public void setDate(java.util.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 java.lang.String getRevisionNumber()
public void setRevisionNumber(java.lang.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 java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- The comment to set.public boolean isDeletion()
public boolean isChange()
public boolean isCreationOrRestore()
public boolean isStateExp()
public boolean isStateDead()
public java.lang.String toString()
toString
in class java.lang.Object
public RevisionData createCopy()
public java.lang.String getCopyfromPath()
public void setCopyfromPath(java.lang.String copyfromPath)
public java.lang.String getCopyfromRevision()
public void setCopyfromRevision(java.lang.String copyfromRevision)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |