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 java.lang.Object
implements Builder

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


Field Summary
protected  EventManager eventManager
          The event manager to use
protected  java.lang.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  java.io.File createFile(java.lang.String fileName)
           
 void outputDone()
           
 void parseEnhancedMessage(java.lang.String key, java.lang.Object value)
           
 void parseLine(java.lang.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 java.lang.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(java.lang.String line,
                      boolean isErrorMessage)
Specified by:
parseLine in interface Builder

createFile

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

parseEnhancedMessage

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

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.