|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.scm.provider.cvslib.command.changelog.CvsChangeLogConsumer
Field Summary | |
private org.apache.maven.scm.ChangeSet |
currentChange
the current log entry being processed by the parser |
private org.apache.maven.scm.ChangeFile |
currentFile
the current file being processed by the parser |
private static java.lang.String |
DATE_TAG
Marks date data |
private static java.lang.String |
END_FILE
Marks end of file |
private java.util.List |
entries
|
private static int |
GET_COMMENT
expecting comments |
private static int |
GET_DATE
expecting date |
private static int |
GET_FILE
expecting file information |
private static int |
GET_REVISION
expecting revision |
private org.apache.maven.scm.log.ScmLogger |
logger
|
private static java.lang.String |
REVISION_TAG
Marks revision data |
private static java.lang.String |
START_FILE
Marks start of file data |
private static java.lang.String |
START_REVISION
Marks start of revision |
private int |
status
current status of the parser |
Constructor Summary | |
CvsChangeLogConsumer(org.apache.maven.scm.log.ScmLogger logger)
|
Method Summary | |
private void |
addEntry(org.apache.maven.scm.ChangeSet entry,
org.apache.maven.scm.ChangeFile file)
Add a change log entry to the list (if it's not already there) with the given file. |
void |
consumeLine(java.lang.String line)
|
private org.apache.maven.scm.ChangeSet |
getCurrentChange()
Getter for property currentChange. |
private org.apache.maven.scm.ChangeFile |
getCurrentFile()
Getter for property currentFile. |
java.util.List |
getModifications()
|
private int |
getStatus()
Getter for property status. |
private void |
processGetComment(java.lang.String line)
Process the current input line in the Get Comment state. |
private void |
processGetDate(java.lang.String line)
Process the current input line in the Get Date state. |
private void |
processGetFile(java.lang.String line)
Process the current input line in the Get File state. |
private void |
processGetRevision(java.lang.String line)
Process the current input line in the Get Revision state. |
private void |
setCurrentChange(org.apache.maven.scm.ChangeSet currentChange)
Setter for property currentChange. |
private void |
setCurrentFile(org.apache.maven.scm.ChangeFile currentFile)
Setter for property currentFile. |
private void |
setStatus(int status)
Setter for property status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List entries
private static final int GET_FILE
private static final int GET_DATE
private static final int GET_COMMENT
private static final int GET_REVISION
private static final java.lang.String START_FILE
private static final java.lang.String END_FILE
private static final java.lang.String START_REVISION
private static final java.lang.String REVISION_TAG
private static final java.lang.String DATE_TAG
private int status
private org.apache.maven.scm.ChangeSet currentChange
private org.apache.maven.scm.ChangeFile currentFile
private org.apache.maven.scm.log.ScmLogger logger
Constructor Detail |
public CvsChangeLogConsumer(org.apache.maven.scm.log.ScmLogger logger)
Method Detail |
public java.util.List getModifications()
public void consumeLine(java.lang.String line)
consumeLine
in interface org.codehaus.plexus.util.cli.StreamConsumer
private void addEntry(org.apache.maven.scm.ChangeSet entry, org.apache.maven.scm.ChangeFile file)
entry
- a ChangeSet
to be added to the list if another
with the same key doesn't exist already. If the entry's author
is null, the entry wont be addedfile
- a ChangeFile
to be added to the entryprivate void processGetFile(java.lang.String line)
line
- a line of text from the cvs log outputprivate void processGetRevision(java.lang.String line)
line
- a line of text from the cvs log outputprivate void processGetDate(java.lang.String line)
line
- a line of text from the cvs log outputprivate void processGetComment(java.lang.String line)
line
- a line of text from the cvs log outputprivate org.apache.maven.scm.ChangeFile getCurrentFile()
private void setCurrentFile(org.apache.maven.scm.ChangeFile currentFile)
currentFile
- New value of property currentFile.private org.apache.maven.scm.ChangeSet getCurrentChange()
private void setCurrentChange(org.apache.maven.scm.ChangeSet currentChange)
currentChange
- New value of property currentChange.private int getStatus()
private void setStatus(int status)
status
- New value of property status.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |