net.sf.bloof.scm.cvsplugin
Class Revision

java.lang.Object
  |
  +--net.sf.bloof.scm.cvsplugin.Revision
All Implemented Interfaces:
ScmRevision

public class Revision
extends java.lang.Object
implements ScmRevision

Container class for a Revision of a CVS controlled file

Version:
$Id: Revision.java,v 1.10 2003/09/06 08:35:09 pekacki Exp $
Author:
Lukasz Pekacki

Constructor Summary
Revision()
           
 
Method Summary
 int getAdded()
          Returns the numer of lines added in this revision
 java.lang.String getAuthor()
          Returns the login of the Author if this revision
 java.lang.String getComment()
          Returns the comment of the author to this revision
 java.util.Date getDate()
          Returns the Date when the revision was checked in into the SCM
 java.lang.String getFileName()
          Returns the filename of the file according to this revision
 FileState getFileState()
          Returns the state of the File at the moment of this revision
 java.lang.String getPath()
          Returns the path of the file according to this revision
 java.lang.String getQualifiedFilename()
          Returns a qualified file name ( including the path ) of the file according to this revision
 int getRemoved()
          Returns the numer of lines removed in this revision
 java.lang.String getRevisionName()
          Returns the identifier of this revision
 void setAdded(int aAdded)
          Sets the added lines
 void setAuthor(java.lang.String aAuthor)
          Sets the author.
 void setComment(java.lang.String aComment)
          Sets the Comment
 void setDate(java.util.Date aDate)
          Sets the date.
 void setFileName(java.lang.String aFileName)
          Sets the fileName.
 void setFileState(FileState aFileState)
          Sets the state of the file at the moment of this revision
 void setPath(java.lang.String aPath)
          Sets the path.
 void setRemoved(int aRemoved)
          Sets the removed.
 void setRevisionName(java.lang.String aRevisionName)
          Sets the revisionName.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Revision

public Revision()
Method Detail

getAdded

public int getAdded()
Description copied from interface: ScmRevision
Returns the numer of lines added in this revision

Specified by:
getAdded in interface ScmRevision
Returns:
int number of lines added in this revision
See Also:
ScmRevision.getAdded( )

getAuthor

public java.lang.String getAuthor()
Description copied from interface: ScmRevision
Returns the login of the Author if this revision

Specified by:
getAuthor in interface ScmRevision
Returns:
String login of the Author if this revision
See Also:
ScmRevision.getAuthor( )

getComment

public java.lang.String getComment()
Description copied from interface: ScmRevision
Returns the comment of the author to this revision

Specified by:
getComment in interface ScmRevision
Returns:
String comment of the author about the changes in this revision
See Also:
ScmRevision.getComment( )

getDate

public java.util.Date getDate()
Description copied from interface: ScmRevision
Returns the Date when the revision was checked in into the SCM

Specified by:
getDate in interface ScmRevision
Returns:
Date when the revision was checked in into the SCM
See Also:
ScmRevision.getDate( )

getFileName

public java.lang.String getFileName()
Description copied from interface: ScmRevision
Returns the filename of the file according to this revision

Specified by:
getFileName in interface ScmRevision
Returns:
String filename of the file according to this revision
See Also:
ScmRevision.getFileName( )

getFileState

public FileState getFileState()
Description copied from interface: ScmRevision
Returns the state of the File at the moment of this revision

Specified by:
getFileState in interface ScmRevision
Returns:
FileState the state of the File at the moment of this revision
See Also:
ScmRevision.getFileState( )

getPath

public java.lang.String getPath()
Description copied from interface: ScmRevision
Returns the path of the file according to this revision

Specified by:
getPath in interface ScmRevision
Returns:
String path of the file according to this revision
See Also:
ScmRevision.getPath( )

getQualifiedFilename

public java.lang.String getQualifiedFilename()
Description copied from interface: ScmRevision
Returns a qualified file name ( including the path ) of the file according to this revision

Specified by:
getQualifiedFilename in interface ScmRevision
Returns:
qualified file name ( including the path ) of the file according to this revision
See Also:
ScmRevision.getQualifiedFilename( )

getRemoved

public int getRemoved()
Description copied from interface: ScmRevision
Returns the numer of lines removed in this revision

Specified by:
getRemoved in interface ScmRevision
Returns:
int number of lines removed in this revision
See Also:
ScmRevision.getRemoved( )

getRevisionName

public java.lang.String getRevisionName()
Description copied from interface: ScmRevision
Returns the identifier of this revision

Specified by:
getRevisionName in interface ScmRevision
Returns:
String of the Revision identifier ( e.g. 1.1.2 )
See Also:
ScmRevision.getRevisionName( )

setAdded

public void setAdded(int aAdded)
Sets the added lines

Parameters:
aAdded - lines

setAuthor

public void setAuthor(java.lang.String aAuthor)
Sets the author.

Parameters:
aAuthor - The author to set

setComment

public void setComment(java.lang.String aComment)
Sets the Comment

Parameters:
aComment - The comment to set

setDate

public void setDate(java.util.Date aDate)
Sets the date.

Parameters:
aDate - The date to set

setFileName

public void setFileName(java.lang.String aFileName)
Sets the fileName.

Parameters:
aFileName - The fileName to set

setFileState

public void setFileState(FileState aFileState)
Sets the state of the file at the moment of this revision

Parameters:
aFileState - the state of the file at the moment of this revision

setPath

public void setPath(java.lang.String aPath)
Sets the path.

Parameters:
aPath - The path to set

setRemoved

public void setRemoved(int aRemoved)
Sets the removed.

Parameters:
aRemoved - The removed to set

setRevisionName

public void setRevisionName(java.lang.String aRevisionName)
Sets the revisionName.

Parameters:
aRevisionName - The revisionName to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString( )


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.