org.sourcejammer.project.controller
Class ChangeListMaker

java.lang.Object
  |
  +--org.sourcejammer.project.controller.ChangeListMaker

public class ChangeListMaker
extends java.lang.Object

Title: $FileName: ChangeListMaker.java$

Version:
$VerNum: 7$
Author:
$AuthorName: Rob MacGrogan$

$Description: Generates change lists from one or more Labels.$
$KeyWordsOff: $

Nested Class Summary
private static class ChangeListMaker.PathAndFile
           
 
Field Summary
private  java.util.ArrayList added
           
private static java.lang.String ADDED
           
private static java.lang.String CHANGED
           
private static java.lang.String COMPARED_TO
           
private  java.lang.String eol
           
private  int eolType
           
private static java.lang.String GEN_BY
           
private  NodeLibrary library
           
private static char LINE_CHAR
           
private  java.util.ArrayList modified
           
private static java.lang.String MODULES
           
private  java.lang.String newComment
           
private  long newID
           
private  Label newLabel
           
private  java.util.Hashtable newSorted
           
private  long oldID
           
private  Label oldLabel
           
private  java.util.Hashtable oldSorted
           
private  java.util.ArrayList removed
           
private static java.lang.String REMOVED
           
private static java.lang.String STAR_LINE
           
private static java.lang.String TAB
           
private  java.io.PrintStream target
           
private static java.lang.String TITLE
           
 
Constructor Summary
ChangeListMaker(NodeLibrary lib)
           
 
Method Summary
private  void addBeanToMap(org.sourcejammer.project.controller.LabelVersionMappingBean bean, java.util.Hashtable map)
           
 void generateList()
           
private  java.lang.String getProjectPath(java.lang.String fullPath)
           
private  void print()
           
private  void print(char[] ch)
           
private  void print(java.lang.String s)
           
 void setEolType(int eolType)
          Sets the eolType.
 void setNewLabel(Label newLabel, long verId)
          Sets the newLabel.
 void setNewLabel(Label newLabel, java.lang.String comment)
          Sets the newLabel.
 void setOldLabel(Label oldLabel, long verId)
          Sets the oldLabel.
private  void setRemovedAddedModified()
           
 void setTarget(java.io.PrintStream target)
          Sets the target.
private  java.util.Hashtable sortLabel(Label lbl)
           
private  void sortLabels()
           
private  void sortListsInMap(java.util.Hashtable map)
           
private  java.util.ArrayList sortMap(java.util.Hashtable map)
           
private  void tabPrint(java.lang.String s)
           
private  void twoTabBulletPrint(java.lang.String s)
           
private  void twoTabPrint(java.lang.String s)
           
private  void writeAdded()
           
private  void writeHeader()
           
private  void writeModified()
           
private  void writeRemoved()
           
private  void writeSectionHeader(java.lang.String section)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newID

private long newID

newComment

private java.lang.String newComment

oldID

private long oldID

newLabel

private Label newLabel

oldLabel

private Label oldLabel

newSorted

private java.util.Hashtable newSorted

oldSorted

private java.util.Hashtable oldSorted

library

private NodeLibrary library

eolType

private int eolType

eol

private java.lang.String eol

removed

private java.util.ArrayList removed

added

private java.util.ArrayList added

modified

private java.util.ArrayList modified

target

private java.io.PrintStream target

STAR_LINE

private static final java.lang.String STAR_LINE
See Also:
Constant Field Values

TAB

private static final java.lang.String TAB
See Also:
Constant Field Values

COMPARED_TO

private static final java.lang.String COMPARED_TO
See Also:
Constant Field Values

GEN_BY

private static final java.lang.String GEN_BY
See Also:
Constant Field Values

TITLE

private static final java.lang.String TITLE
See Also:
Constant Field Values

LINE_CHAR

private static final char LINE_CHAR
See Also:
Constant Field Values

MODULES

private static final java.lang.String MODULES
See Also:
Constant Field Values

ADDED

private static final java.lang.String ADDED
See Also:
Constant Field Values

CHANGED

private static final java.lang.String CHANGED
See Also:
Constant Field Values

REMOVED

private static final java.lang.String REMOVED
See Also:
Constant Field Values
Constructor Detail

ChangeListMaker

public ChangeListMaker(NodeLibrary lib)
Method Detail

generateList

public void generateList()
                  throws FileAccessException,
                         SecurityException,
                         FileDoesNotExistException,
                         NoSuchVersionException
FileAccessException
SecurityException
FileDoesNotExistException
NoSuchVersionException

sortLabels

private void sortLabels()

sortLabel

private java.util.Hashtable sortLabel(Label lbl)

setRemovedAddedModified

private void setRemovedAddedModified()

sortMap

private java.util.ArrayList sortMap(java.util.Hashtable map)

sortListsInMap

private void sortListsInMap(java.util.Hashtable map)

addBeanToMap

private void addBeanToMap(org.sourcejammer.project.controller.LabelVersionMappingBean bean,
                          java.util.Hashtable map)

writeHeader

private void writeHeader()
                  throws FileAccessException
FileAccessException

writeSectionHeader

private void writeSectionHeader(java.lang.String section)

print

private void print()

print

private void print(java.lang.String s)

print

private void print(char[] ch)

tabPrint

private void tabPrint(java.lang.String s)

twoTabPrint

private void twoTabPrint(java.lang.String s)

twoTabBulletPrint

private void twoTabBulletPrint(java.lang.String s)

writeRemoved

private void writeRemoved()
                   throws FileAccessException,
                          SecurityException,
                          FileDoesNotExistException
FileAccessException
SecurityException
FileDoesNotExistException

writeAdded

private void writeAdded()
                 throws FileAccessException,
                        SecurityException,
                        FileDoesNotExistException,
                        NoSuchVersionException
FileAccessException
SecurityException
FileDoesNotExistException
NoSuchVersionException

writeModified

private void writeModified()
                    throws FileAccessException,
                           SecurityException,
                           FileDoesNotExistException,
                           NoSuchVersionException
FileAccessException
SecurityException
FileDoesNotExistException
NoSuchVersionException

getProjectPath

private java.lang.String getProjectPath(java.lang.String fullPath)

setNewLabel

public void setNewLabel(Label newLabel,
                        long verId)
Sets the newLabel.

Parameters:
newLabel - The newLabel to set

setNewLabel

public void setNewLabel(Label newLabel,
                        java.lang.String comment)
Sets the newLabel.

Parameters:
newLabel - The newLabel to set

setOldLabel

public void setOldLabel(Label oldLabel,
                        long verId)
Sets the oldLabel.

Parameters:
oldLabel - The oldLabel to set

setTarget

public void setTarget(java.io.PrintStream target)
Sets the target.

Parameters:
target - The target to set

setEolType

public void setEolType(int eolType)
Sets the eolType.

Parameters:
eolType - The eolType to set


Copyright 2003 Soucejammer project.