Package org.apache.tools.ant.taskdefs.cvslib

# Class CVSEntry

java.lang.Object
org.apache.tools.ant.taskdefs.cvslib.CVSEntry

public class CVSEntry extends Object
CVS Entry.

## Constructor Summary

Constructors
Constructor
Description
`CVSEntry(Date date, String author, String comment)`
Creates a new instance of a CVSEntry

## Method Summary

Modifier and Type
Method
Description
`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<org.apache.tools.ant.taskdefs.cvslib.RCSFile>`
`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

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## 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

### getDate

public Date getDate()
Gets the date of the CVSEntry

Returns:
  the date

### setAuthor

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

Parameters:
  `author` - the author

### 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

### getFiles

public Vector<org.apache.tools.ant.taskdefs.cvslib.RCSFile> getFiles()
Gets the files in this CVSEntry

Returns:
  the files

### toString

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

Overrides:
  `toString` in class `Object`
Returns:
  a string representation of this CVSEntry