jmri.jmrit.revhistory
Class FileHistory

java.lang.Object
  extended by jmri.jmrit.revhistory.FileHistory

public class FileHistory
extends Object

Memo class to remember a file revision history.

These can be nested: A revision can come with a history.

Author:
Bob Jacobsen Copyright (c) 2010

Nested Class Summary
 class FileHistory.OperationMemo
          Memo class for each revision itself
 
Constructor Summary
FileHistory()
           
 
Method Summary
 void addOperation(FileHistory.OperationMemo r)
           
 void addOperation(String type, String filename, FileHistory history)
           
 void addOperation(String type, String date, String filename, FileHistory history)
          Used to add a revision form complete information created elsewhere
 ArrayList<FileHistory.OperationMemo> getList()
           
 void purge(int keep)
           
 String toString()
           
 String toString(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileHistory

public FileHistory()
Method Detail

addOperation

public void addOperation(String type,
                         String date,
                         String filename,
                         FileHistory history)
Used to add a revision form complete information created elsewhere


addOperation

public void addOperation(FileHistory.OperationMemo r)

addOperation

public void addOperation(String type,
                         String filename,
                         FileHistory history)

purge

public void purge(int keep)
Parameters:
keep - Number of levels to keep

toString

public String toString(String prefix)

toString

public String toString()
Overrides:
toString in class Object

getList

public ArrayList<FileHistory.OperationMemo> getList()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads