|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsContent
Represents a CVS Repository and provides access to the CvsFile
s,
Directory
s, CvsRevision
s and Author
s recorded
in the repository's history.
TODO: Rename class to Repository, getCurrentLOC to getCurrentLines, getAuthors to getLogins
TODO: Change getCommits to SortedSet
Constructor Summary | |
CvsContent()
|
Method Summary | |
void |
addFile(CvsFile file)
Adds one file to the repository. |
SortedSet |
getAuthors()
Returns a SortedSet of all Author s who have
committed to the repository, sorted by name. |
List |
getCommits()
Returns a List of all Commit s. |
int |
getCurrentLOC()
returns the current line count of the repository |
SortedSet |
getDirectories()
Returns a SortedSet of all Directory objects
in the repository, ordered in tree order |
SortedSet |
getFiles()
Returns a list of all CvsFile s, ordered by full name |
Date |
getFirstDate()
Returns the first Date when there
were changes on the repository. |
Date |
getLastDate()
Returns the latest Date when there
were changes on the repository. |
SortedSet |
getRevisions()
Returns a SortedSet of CvsRevision s
in the repository, sorted from oldest to most recent. |
Directory |
getRoot()
Returns the repository's root directory, or null if the directory contains no files. |
boolean |
isEmpty()
Returns true if the repository contains no files. |
void |
setCommits(List commits)
Sets the list of commits. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CvsContent()
Method Detail |
public void addFile(CvsFile file)
file
- the filepublic void setCommits(List commits)
commits
- the list of commitspublic List getCommits()
Commit
s.
public Date getLastDate()
Date
when there
were changes on the repository.
public Date getFirstDate()
Date
when there
were changes on the repository.
public int getCurrentLOC()
public SortedSet getFiles()
CvsFile
s, ordered by full name
CvsFile
spublic boolean isEmpty()
public SortedSet getRevisions()
CvsRevision
s
in the repository, sorted from oldest to most recent.
public SortedSet getDirectories()
Directory
objects
in the repository, ordered in tree order
public Directory getRoot()
public String toString()
public SortedSet getAuthors()
Author
s who have
committed to the repository, sorted by name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |