DLESE Tools
v1.6.0

org.dlese.dpc.xml
Class LIBRARY_DCToNSDL_DCFormatConverter

java.lang.Object
  extended by org.dlese.dpc.xml.LIBRARY_DCToNSDL_DCFormatConverter
All Implemented Interfaces:
XMLFormatConverter

public class LIBRARY_DCToNSDL_DCFormatConverter
extends Object
implements XMLFormatConverter

EXPERIMENTAL (and low fidelity) converter for library_dc to nsdl_dc.

NOTE: this converter is a quick and dirty approach for going from library_dc to nsdl_dc. It first converts library_dc to oai_dc, and then manipuates the root element to turn the oai_dc into nsdl_dc. The result is a valid nsdl_dc record, but this process is likely not optimal!

Author:
Jonathan Ostwald

Field Summary
protected  File library_dc_to_oai_dc_transform_file
           
 
Constructor Summary
LIBRARY_DCToNSDL_DCFormatConverter()
           
 
Method Summary
 String convertXML(String xml)
          NOT YET DOCUMENTED
 String convertXML(String xml, ServletContext context)
          NOT YET DOCUMENTED
 String getFromFormat()
          Converts from the libarary_dc format.
 String getToFormat()
          Converts to the nsdl_dc format
protected  void getXFormFilesAndIndex(ServletContext context)
           
 long lastModified(ServletContext context)
          NOT YET DOCUMENTED
static void main(String[] args)
          The main program for the LIBRARY_DCToNSDL_DCFormatConverter class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

library_dc_to_oai_dc_transform_file

protected File library_dc_to_oai_dc_transform_file
Constructor Detail

LIBRARY_DCToNSDL_DCFormatConverter

public LIBRARY_DCToNSDL_DCFormatConverter()
Method Detail

getFromFormat

public String getFromFormat()
Converts from the libarary_dc format.

Specified by:
getFromFormat in interface XMLFormatConverter
Returns:
The String "libarary_dc".

getToFormat

public String getToFormat()
Converts to the nsdl_dc format

Specified by:
getToFormat in interface XMLFormatConverter
Returns:
The String "nsdl_dc".

main

public static void main(String[] args)
                 throws Exception
The main program for the LIBRARY_DCToNSDL_DCFormatConverter class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

convertXML

public String convertXML(String xml)
NOT YET DOCUMENTED

Parameters:
xml - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

convertXML

public String convertXML(String xml,
                         ServletContext context)
NOT YET DOCUMENTED

Specified by:
convertXML in interface XMLFormatConverter
Parameters:
xml - NOT YET DOCUMENTED
context - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

getXFormFilesAndIndex

protected void getXFormFilesAndIndex(ServletContext context)

lastModified

public long lastModified(ServletContext context)
NOT YET DOCUMENTED

Specified by:
lastModified in interface XMLFormatConverter
Parameters:
context - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0