org.apache.tools.ant.taskdefs.cvslib

Class CVSEntry

public class CVSEntry extends Object

CVS Entry.
Constructor Summary
CVSEntry(Date date, String author, String comment)
Creates a new instance of a CVSEntry
Method Summary
voidaddFile(String file, String revision)
Adds a file to the CVSEntry
voidaddFile(String file, String revision, String previousRevision)
Adds a file to the CVSEntry
StringgetAuthor()
Gets the author of the CVSEntry
StringgetComment()
Gets the comment for the CVSEntry
DategetDate()
Gets the date of the CVSEntry
VectorgetFiles()
Gets the files in this CVSEntry
voidsetAuthor(String author)
Sets the author of the CVSEntry
StringtoString()
Gets a String containing author, date, files and comment

Constructor Detail

CVSEntry

public CVSEntry(Date date, String author, String comment)
Creates a new instance of a CVSEntry

Parameters: date the date author the author comment a comment to be added to the revision

Method Detail

addFile

public void addFile(String file, String revision)
Adds a file to the CVSEntry

Parameters: file the file to add revision the revision

addFile

public void addFile(String file, String revision, String previousRevision)
Adds a file to the CVSEntry

Parameters: file the file to add revision the revision previousRevision the previous revision

getAuthor

public String getAuthor()
Gets the author of the CVSEntry

Returns: the author

getComment

public String getComment()
Gets the comment for the CVSEntry

Returns: the comment

getDate

public Date getDate()
Gets the date of the CVSEntry

Returns: the date

getFiles

public Vector getFiles()
Gets the files in this CVSEntry

Returns: the files

setAuthor

public void setAuthor(String author)
Sets the author of the CVSEntry

Parameters: author the author

toString

public String toString()
Gets a String containing author, date, files and comment

Returns: a string representation of this CVSEntry