public class LIBRARY_DCToNSDL_DCFormatConverter extends java.lang.Object implements XMLFormatConverter
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!
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
library_dc_to_oai_dc_transform_file |
Constructor and Description |
---|
LIBRARY_DCToNSDL_DCFormatConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertXML(java.lang.String xml)
NOT YET DOCUMENTED
|
java.lang.String |
convertXML(java.lang.String xml,
javax.servlet.ServletContext context)
NOT YET DOCUMENTED
|
java.lang.String |
getFromFormat()
Converts from the libarary_dc format.
|
java.lang.String |
getToFormat()
Converts to the nsdl_dc format
|
protected void |
getXFormFilesAndIndex(javax.servlet.ServletContext context) |
long |
lastModified(javax.servlet.ServletContext context)
NOT YET DOCUMENTED
|
static void |
main(java.lang.String[] args)
The main program for the LIBRARY_DCToNSDL_DCFormatConverter class
|
protected java.io.File library_dc_to_oai_dc_transform_file
public java.lang.String getFromFormat()
getFromFormat
in interface XMLFormatConverter
public java.lang.String getToFormat()
getToFormat
in interface XMLFormatConverter
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String convertXML(java.lang.String xml)
xml
- NOT YET DOCUMENTEDpublic java.lang.String convertXML(java.lang.String xml, javax.servlet.ServletContext context)
convertXML
in interface XMLFormatConverter
xml
- NOT YET DOCUMENTEDcontext
- NOT YET DOCUMENTEDprotected void getXFormFilesAndIndex(javax.servlet.ServletContext context)
public long lastModified(javax.servlet.ServletContext context)
lastModified
in interface XMLFormatConverter
context
- NOT YET DOCUMENTED