FileDocCategorySizeDatePackage
CVSEntry.javaAPI DocApache Ant 1.703070Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.cvslib

CVSEntry

public class CVSEntry extends Object
CVS Entry.

Fields Summary
private Date
date
private String
author
private final String
comment
private final Vector
files
Constructors Summary
public CVSEntry(Date date, String author, String comment)
Creates a new instance of a CVSEntry

param
date the date
param
author the author
param
comment a comment to be added to the revision


                                  
              
        this.date = date;
        this.author = author;
        this.comment = comment;
    
Methods Summary
public voidaddFile(java.lang.String file, java.lang.String revision)
Adds a file to the CVSEntry

param
file the file to add
param
revision the revision

        files.addElement(new RCSFile(file, revision));
    
public voidaddFile(java.lang.String file, java.lang.String revision, java.lang.String previousRevision)
Adds a file to the CVSEntry

param
file the file to add
param
revision the revision
param
previousRevision the previous revision

        files.addElement(new RCSFile(file, revision, previousRevision));
    
public java.lang.StringgetAuthor()
Gets the author of the CVSEntry

return
the author

        return author;
    
public java.lang.StringgetComment()
Gets the comment for the CVSEntry

return
the comment

        return comment;
    
public java.util.DategetDate()
Gets the date of the CVSEntry

return
the date

        return date;
    
public java.util.VectorgetFiles()
Gets the files in this CVSEntry

return
the files

        return files;
    
public voidsetAuthor(java.lang.String author)
Sets the author of the CVSEntry

param
author the author

        this.author = author;
    
public java.lang.StringtoString()
Gets a String containing author, date, files and comment

return
a string representation of this CVSEntry

        return getAuthor() + "\n" + getDate() + "\n" + getFiles() + "\n"
            + getComment();