com.atlassian.fisheye.spi.data
Class FileRevisionData
java.lang.Object
com.atlassian.fisheye.spi.data.FileRevisionData
public class FileRevisionData
- extends java.lang.Object
Data object encapsulating information about a filerevision in the repository
Constructor Summary |
FileRevisionData()
|
FileRevisionData(java.lang.String path,
java.lang.String rev,
java.lang.String author,
java.util.Date date,
FileRevisionData.FileRevisionState fileRevisionState,
int totalLines,
int linesAdded,
int linesRemoved,
java.lang.String csid,
java.lang.String ancestor,
java.lang.String comment,
java.lang.String contentLink)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileRevisionData
public FileRevisionData(java.lang.String path,
java.lang.String rev,
java.lang.String author,
java.util.Date date,
FileRevisionData.FileRevisionState fileRevisionState,
int totalLines,
int linesAdded,
int linesRemoved,
java.lang.String csid,
java.lang.String ancestor,
java.lang.String comment,
java.lang.String contentLink)
- Parameters:
path
- the path to the revision with respect to the fisheye repository rootrev
- revision idauthor
- the author of the revisiondate
- the date of the revisionfileRevisionState
- the state of the revision (added, deleted or changed)totalLines
- number of lines in the filelinesAdded
- number of lines added to the filelinesRemoved
- number of lines removed from the filecsid
- ID of this filerevision's changesetancestor
- the ancestor of this filerevision, can be nullcomment
- the log comment of the changeset of this filerevision
FileRevisionData
public FileRevisionData()
getContentLink
public java.lang.String getContentLink()
setContentLink
public void setContentLink(java.lang.String contentLink)
getState
public FileRevisionData.FileRevisionState getState()
- Returns:
- the state of the revision (added, deleted or changed)
getPath
public java.lang.String getPath()
- Returns:
- the path to the revision with respect to the fisheye repository root
getRev
public java.lang.String getRev()
- Returns:
- the revision id
getAuthor
public java.lang.String getAuthor()
- Returns:
- the author of the revision
getDate
public java.util.Date getDate()
- Returns:
- the date of the revision
getTotalLines
public int getTotalLines()
- Returns:
- number of lines in the file
getLinesAdded
public int getLinesAdded()
- Returns:
- linesAdded number of lines added to the file
getLinesRemoved
public int getLinesRemoved()
- Returns:
- number of lines removed from the file
getCsid
public java.lang.String getCsid()
- Returns:
- ID of this filerevision's changeset
getAncestor
public java.lang.String getAncestor()
- Returns:
- the ancestor of this filerevision, can be null
getComment
public java.lang.String getComment()
- Returns:
- the log comment of the changeset of this filerevision
setState
public void setState(FileRevisionData.FileRevisionState fileRevisionState)
setPath
public void setPath(java.lang.String path)
setRev
public void setRev(java.lang.String rev)
setAuthor
public void setAuthor(java.lang.String author)
setDate
public void setDate(java.util.Date date)
setTotalLines
public void setTotalLines(int totalLines)
setLinesAdded
public void setLinesAdded(int linesAdded)
setLinesRemoved
public void setLinesRemoved(int linesRemoved)
setCsid
public void setCsid(java.lang.String csid)
setAncestor
public void setAncestor(java.lang.String ancestor)
setComment
public void setComment(java.lang.String comment)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object