Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.cvslib

public Class CVSEntry

extends Object
Class Inheritance
Imports
java.util.Date, .Vector

CVS Entry.

Field Summary

Modifier and TypeField and Description
private String
private final String
private Date
private final Vector<RCSFile>

Constructor Summary

AccessConstructor and Description
public
CVSEntry(final Date
the date
date
,
final String
the author
author
,
final String
a comment to be added to the revision
comment
)

Creates a new instance of a CVSEntry

Method Summary

Modifier and TypeMethod and Description
public void
addFile(final String
the file to add
file
,
final String
the revision
revision
)

Adds a file to the CVSEntry

public void
addFile(final String
the file to add
file
,
final String
the revision
revision
,
final String
the previous revision
previousRevision
)

Adds a file to the CVSEntry

public String

Returns:

the author
getAuthor
()

Gets the author of the CVSEntry

public String

Returns:

the comment
getComment
()

Gets the comment for the CVSEntry

public Date

Returns:

the date
getDate
()

Gets the date of the CVSEntry

public Vector<RCSFile>

Returns:

the files
getFiles
()

Gets the files in this CVSEntry

public void
setAuthor(final String
the author
author
)

Sets the author of the CVSEntry

public String

Returns:

a string representation of this CVSEntry
toString
()

Overrides java.lang.Object.toString.

Gets a String containing author, date, files and comment
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

authorback to summary
private String author
commentback to summary
private final String comment
dateback to summary
private Date date
filesback to summary
private final Vector<RCSFile> files

Constructor Detail

CVSEntryback to summary
public CVSEntry(final Date date, final String author, final String comment)

Creates a new instance of a CVSEntry

Parameters
date:Date

the date

author:String

the author

comment:String

a comment to be added to the revision

Method Detail

addFileback to summary
public void addFile(final String file, final String revision)

Adds a file to the CVSEntry

Parameters
file:String

the file to add

revision:String

the revision

addFileback to summary
public void addFile(final String file, final String revision, final String previousRevision)

Adds a file to the CVSEntry

Parameters
file:String

the file to add

revision:String

the revision

previousRevision:String

the previous revision

getAuthorback to summary
public String getAuthor()

Gets the author of the CVSEntry

Returns:String

the author

getCommentback to summary
public String getComment()

Gets the comment for the CVSEntry

Returns:String

the comment

getDateback to summary
public Date getDate()

Gets the date of the CVSEntry

Returns:Date

the date

getFilesback to summary
public Vector<RCSFile> getFiles()

Gets the files in this CVSEntry

Returns:Vector<RCSFile>

the files

setAuthorback to summary
public void setAuthor(final String author)

Sets the author of the CVSEntry

Parameters
author:String

the author

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Gets a String containing author, date, files and comment

Returns:String

a string representation of this CVSEntry

Annotations
@Override