org.apache.tools.ant.taskdefs.cvslib

Class CVSEntry


public class CVSEntry
extends java.lang.Object

CVS Entry.

Constructor Summary

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

Method Summary

void
addFile(String file, String revision)
Adds a file to the CVSEntry
void
addFile(String file, String revision, String previousRevision)
Adds a file to the CVSEntry
String
getAuthor()
Gets the author of the CVSEntry
String
getComment()
Gets the comment for the CVSEntry
Date
getDate()
Gets the date of the CVSEntry
Vector
getFiles()
Gets the files in this CVSEntry
void
setAuthor(String author)
Sets the author of the CVSEntry
String
toString()
Gets a String containing author, date, files and comment

Constructor Details

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 Details

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