org.netbeans.lib.cvsclient.command.diff
Class SimpleDiffBuilder

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

public class SimpleDiffBuilder
extends java.lang.Object
implements Builder

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


Field Summary
protected  DiffCommand diffCommand
           
protected  DiffInformation diffInformation
          The diff object that is currently being built
protected  EventManager eventManager
          The event manager to use
protected  java.lang.String fileDirectory
          The directory in which the file being processed lives.
protected  boolean readingDiffs
           
 
Constructor Summary
SimpleDiffBuilder(EventManager eventMan, DiffCommand diffComm)
           
 
Method Summary
protected  void assignType(DiffInformation.DiffChange change, java.lang.String line)
           
 DiffInformation createDiffInformation()
           
 void outputDone()
           
 void parseEnhancedMessage(java.lang.String key, java.lang.Object value)
           
 void parseLine(java.lang.String line, boolean isErrorMessage)
           
protected  void processDifferences(java.lang.String line)
           
protected  void processFile(java.lang.String line)
           
protected  void processParameters(java.lang.String line)
           
protected  void processRCSfile(java.lang.String line)
           
protected  void processRevision(java.lang.String line)
           
 
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


diffCommand

protected DiffCommand diffCommand

diffInformation

protected DiffInformation diffInformation
The diff object that is currently being built


fileDirectory

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


readingDiffs

protected boolean readingDiffs
Constructor Detail

SimpleDiffBuilder

public SimpleDiffBuilder(EventManager eventMan,
                         DiffCommand diffComm)
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

processFile

protected void processFile(java.lang.String line)

processRCSfile

protected void processRCSfile(java.lang.String line)

processRevision

protected void processRevision(java.lang.String line)

processParameters

protected void processParameters(java.lang.String line)

createDiffInformation

public DiffInformation createDiffInformation()

assignType

protected void assignType(DiffInformation.DiffChange change,
                          java.lang.String line)

processDifferences

protected void processDifferences(java.lang.String line)

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.