hudson.scm
Class CVSChangeLogSet.CVSChangeLog

java.lang.Object
  extended by hudson.scm.ChangeLogSet.Entry
      extended by hudson.scm.CVSChangeLogSet.CVSChangeLog
Enclosing class:
CVSChangeLogSet

public static class CVSChangeLogSet.CVSChangeLog
extends hudson.scm.ChangeLogSet.Entry

In-memory representation of CVS Changelog.


Constructor Summary
CVSChangeLogSet.CVSChangeLog()
           
 
Method Summary
 void addFile(CVSChangeLogSet.File f)
           
 boolean canBeMergedWith(CVSChangeLogSet.CVSChangeLog that)
          Checks if two CVSChangeLogSet.CVSChangeLog entries can be merged.
 Collection<CVSChangeLogSet.File> getAffectedFiles()
           
 Collection<String> getAffectedPaths()
           
 hudson.model.User getAuthor()
           
 String getCurrentRevision()
          This method returns Empty string as revision number.
 String getDate()
           
 List<CVSChangeLogSet.File> getFiles()
           
 String getMsg()
           
 String getTime()
           
 String getUser()
           
 boolean isComplete()
          Returns true if all the fields that are supposed to be non-null is present.
 void merge(CVSChangeLogSet.CVSChangeLog that)
           
 void setDate(String date)
           
 void setMsg(String msg)
           
protected  void setParent(hudson.scm.ChangeLogSet parent)
           
 void setTime(String time)
           
 void setUser(String author)
           
 
Methods inherited from class hudson.scm.ChangeLogSet.Entry
getMsgAnnotated, getMsgEscaped, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSChangeLogSet.CVSChangeLog

public CVSChangeLogSet.CVSChangeLog()
Method Detail

isComplete

public boolean isComplete()
Returns true if all the fields that are supposed to be non-null is present. This is used to make sure the XML file was correct.


canBeMergedWith

public boolean canBeMergedWith(CVSChangeLogSet.CVSChangeLog that)
Checks if two CVSChangeLogSet.CVSChangeLog entries can be merged. This is to work around the duplicate entry problems.


setParent

protected void setParent(hudson.scm.ChangeLogSet parent)
Overrides:
setParent in class hudson.scm.ChangeLogSet.Entry

merge

public void merge(CVSChangeLogSet.CVSChangeLog that)

getDate

@Exported
public String getDate()

setDate

public void setDate(String date)

getTime

@Exported
public String getTime()

setTime

public void setTime(String time)

getCurrentRevision

public String getCurrentRevision()
This method returns Empty string as revision number. CVS stores revision numbers for files in unique way, so it's better to check revision from CVSChangeLogSet.File.getRevision()

Overrides:
getCurrentRevision in class hudson.scm.ChangeLogSet.Entry
Returns:
Empty string

getAuthor

@Exported
public hudson.model.User getAuthor()

getAffectedPaths

public Collection<String> getAffectedPaths()

setUser

public void setUser(String author)

getUser

@Exported
public String getUser()

getMsg

@Exported
public String getMsg()

setMsg

public void setMsg(String msg)

addFile

public void addFile(CVSChangeLogSet.File f)

getFiles

@Exported
public List<CVSChangeLogSet.File> getFiles()

getAffectedFiles

public Collection<CVSChangeLogSet.File> getAffectedFiles()
Overrides:
getAffectedFiles in class hudson.scm.ChangeLogSet.Entry


Copyright © 2004-2011 Hudson. All Rights Reserved.