Class ClearCaseChangeLogConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.clearcase.command.changelog.ClearCaseChangeLogConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringFormatter used to parse Clearcase date/timestamp.private static final Stringprivate ChangeSetthe current log entry being processed by the parserprivate ChangeFilethe current file being processed by the parserprivate static final Stringprivate static final intexpecting commentsprivate static final intexpecting dateprivate static final intexpecting file informationprivate static final intexpecting revisionprivate static final Stringprivate static final Stringprivate intcurrent status of the parserprivate static final Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeLine(String line) private ChangeSetGetter for property currentChange.private ChangeFileGetter for property currentFile.private intGetter for property status.private voidProcess the current input line in the Get Comment state.private voidprocessGetDate(String line) Process the current input line in the Get Date state.private voidprocessGetFile(String line) Process the current input line in the Get File state.private voidprocessGetRevision(String line) Process the current input line in the Get Revision.private voidsetCurrentChange(ChangeSet currentChange) Setter for property currentLogEntry.private voidsetCurrentFile(ChangeFile currentFile) Setter for property currentFile.private voidsetStatus(int status) Setter for property status.Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
CLEARCASE_TIMESTAMP_PATTERN
Formatter used to parse Clearcase date/timestamp.- See Also:
-
NAME_TAG
- See Also:
-
USER_TAG
- See Also:
-
DATE_TAG
- See Also:
-
COMMENT_TAG
- See Also:
-
REVISION_TAG
- See Also:
-
entries
-
GET_FILE
private static final int GET_FILEexpecting file information- See Also:
-
GET_DATE
private static final int GET_DATEexpecting date- See Also:
-
GET_COMMENT
private static final int GET_COMMENTexpecting comments- See Also:
-
GET_REVISION
private static final int GET_REVISIONexpecting revision- See Also:
-
status
private int statuscurrent status of the parser -
currentChange
the current log entry being processed by the parser -
currentFile
the current file being processed by the parser -
userDatePattern
-
-
Constructor Details
-
ClearCaseChangeLogConsumer
-
-
Method Details
-
getModifications
-
consumeLine
-
processGetFile
Process the current input line in the Get File state.- Parameters:
line- a line of text from the clearcase log output
-
processGetDate
Process the current input line in the Get Date state.- Parameters:
line- a line of text from the clearcase log output
-
processGetCommentAndUser
Process the current input line in the Get Comment state.- Parameters:
line- a line of text from the clearcase log output
-
processGetRevision
Process the current input line in the Get Revision.- Parameters:
line- a line of text from the clearcase log output
-
getCurrentFile
Getter for property currentFile.- Returns:
- Value of property currentFile.
-
setCurrentFile
Setter for property currentFile.- Parameters:
currentFile- New value of property currentFile.
-
getCurrentChange
Getter for property currentChange.- Returns:
- Value of property currentChange.
-
setCurrentChange
Setter for property currentLogEntry.- Parameters:
currentChange- New value of property currentLogEntry.
-
getStatus
private int getStatus()Getter for property status.- Returns:
- Value of property status.
-
setStatus
private void setStatus(int status) Setter for property status.- Parameters:
status- New value of property status.
-