DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.config
Class FrameworkConfigConverter

java.lang.Object
  extended by org.dlese.dpc.schemedit.config.FrameworkConfigConverter

public class FrameworkConfigConverter
extends Object

Converts old style DcsData records (that only mantained a single-entry) into history-aware records.

Author:
ostwald

$Id $


Nested Class Summary
 class FrameworkConfigConverter.DirectoryFilter
           
 
Field Summary
 File convertedDir
           
 File originalsDir
           
 
Constructor Summary
FrameworkConfigConverter(String workingDirPath)
          FrameworkConfigConverter Constructor.
 
Method Summary
 void convertDirectory(File directory)
           
 boolean convertFile(File file)
          Convert file to new format if necessary
static void main(String[] args)
          debugging
static void setDebug(boolean db)
          Sets the debug attribute of the FrameworkConfigConverter object
static void show(Node node)
          Utility to show XML in pretty form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalsDir

public File originalsDir

convertedDir

public File convertedDir
Constructor Detail

FrameworkConfigConverter

public FrameworkConfigConverter(String workingDirPath)
                         throws Exception
FrameworkConfigConverter Constructor. The dcsDataRecords param points to the root directory containing dcs_data records. the subdirectories are named for the metadata formats of the directories they contain, which in turn hold directories for each collection of that format.

Parameters:
path - directory holding default record and records directory
Throws:
Exception
Method Detail

convertDirectory

public void convertDirectory(File directory)

convertFile

public boolean convertFile(File file)
                    throws Exception
Convert file to new format if necessary

Parameters:
file - file to be converted
Returns:
true if converted
Throws:
Exception - thrown if file cannot be converted or written to disk after conversion

main

public static void main(String[] args)
                 throws Exception
debugging

Parameters:
args - The command line arguments
Throws:
Exception

setDebug

public static void setDebug(boolean db)
Sets the debug attribute of the FrameworkConfigConverter object

Parameters:
db - The new debug value

show

public static void show(Node node)
Utility to show XML in pretty form

Parameters:
node - Description of the Parameter

DLESE Tools
v1.6.0