net.sf.statcvs.model
Class Author

java.lang.Object
  extended bynet.sf.statcvs.model.Author
All Implemented Interfaces:
Comparable

public class Author
extends Object
implements Comparable

Represents an author of one or more CvsRevisions in a repository. TODO: Rename to Login

Version:
$Id: Author.java,v 1.11 2004/02/20 01:33:29 cyganiak Exp $
Author:
Richard Cyganiak

Constructor Summary
Author(String name)
          Creates a new author.
 
Method Summary
protected  void addRevision(CvsRevision revision)
          Adds a revision for this author; called by CvsRevision constructor
 int compareTo(Object o)
          Compares the instance to another author, using their login names.
 SortedSet getDirectories()
          Returns all Directorys the author has committed a change to, sorted by name.
 String getName()
          Returns the author's login name.
 SortedSet getRevisions()
          Returns all CvsRevisions of this author, sorted from oldest to most recent.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Author

public Author(String name)
Creates a new author.

Parameters:
name - the author's login name
Method Detail

addRevision

protected void addRevision(CvsRevision revision)
Adds a revision for this author; called by CvsRevision constructor

Parameters:
revision - a revision committed by this author

getName

public String getName()
Returns the author's login name.

Returns:
the author's login name

getRevisions

public SortedSet getRevisions()
Returns all CvsRevisions of this author, sorted from oldest to most recent.

Returns:
all revisions of this author

getDirectories

public SortedSet getDirectories()
Returns all Directorys the author has committed a change to, sorted by name.

Returns:
a set of Directory objects

compareTo

public int compareTo(Object o)
Compares the instance to another author, using their login names.

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

toString

public String toString()