|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CvsLogBuilder
Interface for defining a Builder that constructs a data structure from
a CVS logfile. CvsLogfileParser
takes an instance of this
interface and will call methods on the interface for every piece of
data it encounters in the log.
First, buildModule(java.lang.String)
will be called with the name of the
module. Then, buildFile(java.lang.String, boolean, boolean, java.util.Map)
will be called with the filename and
other pieces of information of the first file in the log. Then, for
every revision of this file, buildRevision(net.sf.statcvs.input.RevisionData)
is called. The
calls to buildFile and buildRevision are repeated
for every file in the log.
The files are in no particular order. The revisions of one file are ordered by time, beginning with the most recent.
Method Summary | |
---|---|
void |
buildFile(java.lang.String filename,
boolean isBinary,
boolean isInAttic,
java.util.Map revBySymnames)
Starts building a new file. |
void |
buildModule(java.lang.String moduleName)
Starts building a module. |
void |
buildRevision(RevisionData data)
Adds a revision to the last file that was built.. |
Method Detail |
---|
void buildModule(java.lang.String moduleName)
moduleName
- the name of the modulevoid buildFile(java.lang.String filename, boolean isBinary, boolean isInAttic, java.util.Map revBySymnames)
filename
- the file's name with path relative to the module,
for example "path/file.txt"isBinary
- true if it's a binary fileisInAttic
- true if the file is dead on the main branchrevBySymnames
- maps revision (string) by symbolic name (string)void buildRevision(RevisionData data)
data
- the revision
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |