Package org.dlese.dpc.schemedit.config
Class FrameworkConfigConverter
java.lang.Object
org.dlese.dpc.schemedit.config.FrameworkConfigConverter
Converts old style DcsData records (that only mantained a
single-entry) into history-aware records.
- Author:
- ostwald
$Id $
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFrameworkConfigConverter(String workingDirPath) FrameworkConfigConverter Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertDirectory(File directory) booleanconvertFile(File file) Convert file to new format if necessarystatic voiddebuggingstatic voidsetDebug(boolean db) Sets the debug attribute of the FrameworkConfigConverter objectstatic voidshow(org.dom4j.Node node) Utility to show XML in pretty form
-
Field Details
-
originalsDir
-
convertedDir
-
-
Constructor Details
-
FrameworkConfigConverter
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 Details
-
convertDirectory
-
convertFile
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
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(org.dom4j.Node node) Utility to show XML in pretty form- Parameters:
node- Description of the Parameter
-