org.netbeans.lib.cvsclient.command.log
Class LogBuilder

java.lang.Object
  extended by org.netbeans.lib.cvsclient.command.log.LogBuilder
All Implemented Interfaces:
Builder

public class LogBuilder
extends Object
implements Builder

Handles the building of a log information object and the firing of events when complete objects are built.

Author:
Milos Kleint

Field Summary
protected  EventManager eventManager
          The event manager to use
protected  String fileDirectory
          The directory in which the file being processed lives.
protected  BasicCommand logCommand
           
protected  LogInformation logInfo
          The log object that is currently being built
protected  LogInformation.Revision revision
           
 
Constructor Summary
LogBuilder(EventManager eventMan, BasicCommand command)
           
 
Method Summary
protected  File createFile(String fileName)
           
 void outputDone()
           
 void parseEnhancedMessage(String key, Object value)
           
 void parseLine(String line, boolean isErrorMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventManager

protected EventManager eventManager
The event manager to use


logCommand

protected BasicCommand logCommand

logInfo

protected LogInformation logInfo
The log object that is currently being built


revision

protected LogInformation.Revision revision

fileDirectory

protected String fileDirectory
The directory in which the file being processed lives. This is relative to the local directory

Constructor Detail

LogBuilder

public LogBuilder(EventManager eventMan,
                  BasicCommand command)
Method Detail

outputDone

public void outputDone()
Specified by:
outputDone in interface Builder

parseLine

public void parseLine(String line,
                      boolean isErrorMessage)
Specified by:
parseLine in interface Builder

createFile

protected File createFile(String fileName)
Parameters:
fileName - relative URL-path to command execution directory

parseEnhancedMessage

public void parseEnhancedMessage(String key,
                                 Object value)
Specified by:
parseEnhancedMessage in interface Builder


Copyright © 2011. All Rights Reserved.