public class ClearCaseChangeLogConsumer extends AbstractConsumer
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLEARCASE_TIMESTAMP_PATTERN
Formatter used to parse Clearcase date/timestamp.
|
private static java.lang.String |
COMMENT_TAG |
private ChangeSet |
currentChange
the current log entry being processed by the parser
|
private ChangeFile |
currentFile
the current file being processed by the parser
|
private static java.lang.String |
DATE_TAG |
private java.util.List<ChangeSet> |
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 static java.lang.String |
NAME_TAG |
private static java.lang.String |
REVISION_TAG |
private int |
status
current status of the parser
|
private static java.lang.String |
USER_TAG |
private java.lang.String |
userDatePattern |
Constructor and Description |
---|
ClearCaseChangeLogConsumer(ScmLogger logger,
java.lang.String userDatePattern) |
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(java.lang.String line) |
private ChangeSet |
getCurrentChange()
Getter for property currentChange.
|
private ChangeFile |
getCurrentFile()
Getter for property currentFile.
|
java.util.List<ChangeSet> |
getModifications() |
private int |
getStatus()
Getter for property status.
|
private void |
processGetCommentAndUser(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.
|
private void |
setCurrentChange(ChangeSet currentChange)
Setter for property currentLogEntry.
|
private void |
setCurrentFile(ChangeFile currentFile)
Setter for property currentFile.
|
private void |
setStatus(int status)
Setter for property status.
|
getLogger, parseDate, parseDate, setLogger
private static final java.lang.String CLEARCASE_TIMESTAMP_PATTERN
private static final java.lang.String NAME_TAG
private static final java.lang.String USER_TAG
private static final java.lang.String DATE_TAG
private static final java.lang.String COMMENT_TAG
private static final java.lang.String REVISION_TAG
private java.util.List<ChangeSet> 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 int status
private ChangeSet currentChange
private ChangeFile currentFile
private java.lang.String userDatePattern
public ClearCaseChangeLogConsumer(ScmLogger logger, java.lang.String userDatePattern)
public java.util.List<ChangeSet> getModifications()
public void consumeLine(java.lang.String line)
private void processGetFile(java.lang.String line)
line
- a line of text from the clearcase log outputprivate void processGetDate(java.lang.String line)
line
- a line of text from the clearcase log outputprivate void processGetCommentAndUser(java.lang.String line)
line
- a line of text from the clearcase log outputprivate void processGetRevision(java.lang.String line)
line
- a line of text from the clearcase log outputprivate ChangeFile getCurrentFile()
private void setCurrentFile(ChangeFile currentFile)
currentFile
- New value of property currentFile.private ChangeSet getCurrentChange()
private void setCurrentChange(ChangeSet currentChange)
currentChange
- New value of property currentLogEntry.private int getStatus()
private void setStatus(int status)
status
- New value of property status.