package journal.reader; import journal.action.Action; abstract public class JournalEntry { protected ActionType actionType; protected JournalEntry(Token startToken) { actionType = startToken.getAction(); } protected JournalEntry(ActionType type) { actionType = type; } public void invokeAction(Action action) throws Exception { actionType.invoke(action, this); } public ActionType getActionType() { return actionType; } public String toJournalString() { return toJournalString(actionType); } public String toJournalString(ActionType newAction) { StringBuffer buf = new StringBuffer(); buf.append("@"); buf.append(newAction.symbol); buf.append("@"); return buf.toString(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 24773 | Norman Morse |
Moving journalReader from sven's private branch to perforce_software. This is because journalReader is used in the perfsplit test harness, and should be updated over time. Merging //guest/sven_erik_knop/java/JournalReader/... to //guest/perforce_software/journalReader/... |
||
//guest/sven_erik_knop/java/JournalReader/src/journal/reader/JournalEntry.java | |||||
#2 | 8017 | Sven Erik Knop | Fixed patching by adding copy constructor. | ||
#1 | 7527 | Sven Erik Knop |
JournalReader, now in its proper place. Documentation to follow. |