net.sf.statcvs.model
Class Author

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

public class Author
extends java.lang.Object
implements java.lang.Comparable

Represents an author of one or more revisions in a repository. TODO: Write tests!

Version:
$Id: Author.java,v 1.7 2003/06/02 22:46:56 cyganiak Exp $
Author:
Richard Cyganiak

Constructor Summary
Author(java.lang.String name)
          Creates a new author
 
Method Summary
 void addRevision(CvsRevision revision)
          adds a revision for this author
 int compareTo(java.lang.Object o)
           
 java.util.Collection getDirectories()
          Returns a Set of all Directorys the author has ever committed a change to
 java.lang.String getName()
           
 RevisionIterator getRevisionIterator()
          Returns a RevisionIterator for this author
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Author

public Author(java.lang.String name)
Creates a new author

Parameters:
name - the author's name
Method Detail

getName

public java.lang.String getName()
Returns:
the author's name

addRevision

public void addRevision(CvsRevision revision)
adds a revision for this author

Parameters:
revision - a revision committed by this author

getRevisionIterator

public RevisionIterator getRevisionIterator()
Returns a RevisionIterator for this author

Returns:
all revisions of this author, sorted from oldest to newest

getDirectories

public java.util.Collection getDirectories()
Returns a Set of all Directorys the author has ever committed a change to

Returns:
directories as a Set of Directory objects

compareTo

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

toString

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