public class Repository
extends java.lang.Object
VersionedFiles,
Directorys, Revisions and Authors recorded
in the repository's history.
TODO: Rename class to Repository, getCurrentLOC to getCurrentLines, getAuthors to getLogins
TODO: Change getCommits to SortedSet| Constructor | Description |
|---|---|
Repository() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addFile(VersionedFile file) |
Adds one file to the repository.
|
java.util.SortedSet |
getAuthors() |
Returns a SortedSet of all
Authors who have
committed to the repository, sorted by name. |
java.util.List |
getCommits() |
Returns a List of all
Commits. |
int |
getCurrentLOC() |
returns the current line count of the repository
|
java.util.SortedSet |
getDirectories() |
Returns a SortedSet of all
Directory objects
in the repository, ordered in tree order |
java.util.SortedSet |
getFiles() |
Returns a list of all
VersionedFiles, ordered by full name |
java.util.Date |
getFirstDate() |
Returns the first
Date when there
were changes on the repository. |
SymbolicName |
getHead() |
A special symbolic name that contains the latest revision of every file.
|
java.util.Date |
getLastDate() |
Returns the latest
Date when there
were changes on the repository. |
java.util.SortedMap |
getModules() |
|
java.util.SortedSet |
getRevisions() |
Returns a SortedSet of
Revisions
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.
|
java.util.SortedSet |
getSymbolicNames() |
Returns a list of
SymbolicNames,
ordered from latest to oldest. |
boolean |
isEmpty() |
Returns true if the repository contains no files.
|
void |
setCommits(java.util.List commits) |
Sets the list of commits.
|
void |
setSymbolicNames(java.util.SortedSet symbolicNames) |
Sets the list of symbolic names contained in this Repository.
|
java.lang.String |
toString() |
public void addFile(VersionedFile file)
file - the filepublic void setCommits(java.util.List commits)
commits - the list of commitspublic java.util.List getCommits()
Commits.public java.util.Date getLastDate()
Date when there
were changes on the repository.public java.util.Date getFirstDate()
Date when there
were changes on the repository.public int getCurrentLOC()
public java.util.SortedSet getFiles()
VersionedFiles, ordered by full nameVersionedFilespublic boolean isEmpty()
public java.util.SortedSet getRevisions()
Revisions
in the repository, sorted from oldest to most recent.public java.util.SortedSet getDirectories()
Directory objects
in the repository, ordered in tree orderpublic Directory getRoot()
public void setSymbolicNames(java.util.SortedSet symbolicNames)
symbolicNames - public java.util.SortedSet getSymbolicNames()
SymbolicNames,
ordered from latest to oldest.public SymbolicName getHead()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.SortedSet getAuthors()
Authors who have
committed to the repository, sorted by name.public java.util.SortedMap getModules()