org.opensolaris.opengrok.history
Class HistoryEntry

java.lang.Object
  extended by org.opensolaris.opengrok.history.HistoryEntry

public class HistoryEntry
extends java.lang.Object

Collect all information of a given revision


Constructor Summary
HistoryEntry()
          Creates a new instance of HistoryEntry
HistoryEntry(java.lang.String revision, java.util.Date date, java.lang.String author, java.lang.String message, boolean active)
           
 
Method Summary
 void addFile(java.lang.String file)
           
 void appendMessage(java.lang.String message)
           
 java.lang.String getAuthor()
           
 java.util.Date getDate()
           
 java.util.List<java.lang.String> getFiles()
           
 java.lang.String getLine()
           
 java.lang.String getMessage()
           
 java.io.File getRepositoryPath()
          Returns the subversion repository's view of where the file is in a particular revision.
 java.lang.String getRevision()
           
 java.io.File getSourceRootPath()
          Returns the source root's view of where the file is in a particular revision.
 boolean isActive()
           
 void setActive(boolean active)
           
 void setAuthor(java.lang.String author)
           
 void setDate(java.util.Date date)
           
 void setFiles(java.util.List<java.lang.String> files)
           
 void setMessage(java.lang.String message)
           
 void setRepositoryPath(java.io.File path)
          Sets the subversion repository's view of where the file is in a particular revision.
 void setRevision(java.lang.String revision)
           
 void setSourceRootPath(java.io.File path)
          Sets the source root's view of where the file is in a particular revision.
 void strip()
          Remove "unneeded" info such as multiline history and files list
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HistoryEntry

public HistoryEntry()
Creates a new instance of HistoryEntry


HistoryEntry

public HistoryEntry(java.lang.String revision,
                    java.util.Date date,
                    java.lang.String author,
                    java.lang.String message,
                    boolean active)
Method Detail

getLine

public java.lang.String getLine()

getAuthor

public java.lang.String getAuthor()

getDate

public java.util.Date getDate()

getMessage

public java.lang.String getMessage()

getRevision

public java.lang.String getRevision()

setAuthor

public void setAuthor(java.lang.String author)

setDate

public void setDate(java.util.Date date)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

setMessage

public void setMessage(java.lang.String message)

setRevision

public void setRevision(java.lang.String revision)

appendMessage

public void appendMessage(java.lang.String message)

addFile

public void addFile(java.lang.String file)

getFiles

public java.util.List<java.lang.String> getFiles()

setFiles

public void setFiles(java.util.List<java.lang.String> files)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRepositoryPath

public java.io.File getRepositoryPath()
Returns the subversion repository's view of where the file is in a particular revision.

Returns:
the path

setRepositoryPath

public void setRepositoryPath(java.io.File path)
Sets the subversion repository's view of where the file is in a particular revision.

Parameters:
path - the path

getSourceRootPath

public java.io.File getSourceRootPath()
Returns the source root's view of where the file is in a particular revision.

Returns:
the path

setSourceRootPath

public void setSourceRootPath(java.io.File path)
Sets the source root's view of where the file is in a particular revision.

Parameters:
path - the path

strip

public void strip()
Remove "unneeded" info such as multiline history and files list