net.sf.statcvs.model
Class Author
- Comparable
public class Author
implements Comparable
Represents an author of one or more
Revision
s in a repository.
TODO: Rename to
Login
$Id: Author.java,v 1.14 2008/04/02 11:22:16 benoitx Exp $Author(String name) - Creates a new author.
|
Author
public Author(String name)
Creates a new author.
name
- the author's login name
addRevision
protected void addRevision(Revision revision)
Adds a revision for this author; called by
Revision
constructor
revision
- a revision committed by this author
compareTo
public int compareTo(Object o)
Compares the instance to another author, using their login names.
getDirectories
public SortedSet getDirectories()
Returns all
Directory
s the author
has committed a change to, sorted by name.
- a set of Directory objects
getEmail
public String getEmail()
getHomePageUrl
public String getHomePageUrl()
getImageUrl
public String getImageUrl()
getName
public String getName()
Returns the author's login name.
getRealName
public String getRealName()
getRevisions
public SortedSet getRevisions()
Returns all
Revision
s of this author, sorted from oldest
to most recent.
- all revisions of this author
setEmail
public void setEmail(String email)
setHomePageUrl
public void setHomePageUrl(String homePageUrl)
setImageUrl
public void setImageUrl(String imageUrl)
setRealName
public void setRealName(String realName)
toString
public String toString()