public class NSDL_DCToNCS_ITEMFormatConverter extends java.lang.Object implements XMLDocumentFormatConverter
XMLConversionService
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
format_transform_file
NOT YET DOCUMENTED
|
protected SimpleLuceneIndex |
index
NOT YET DOCUMENTED
|
protected java.io.File |
version_transform_file
NOT YET DOCUMENTED
|
Constructor and Description |
---|
NSDL_DCToNCS_ITEMFormatConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertXML(java.lang.String xml,
XMLDocReader docReader,
javax.servlet.ServletContext context)
Performs XML conversion from ADN to oai_dc format.
|
java.lang.String |
getFromFormat()
Converts from the ncs_item format.
|
java.lang.String |
getToFormat()
Converts to the nsdl_dc format.
|
protected void |
getXFormFilesAndIndex(javax.servlet.ServletContext context)
Gets the xFormFilesAndIndex attribute of the NSDL_DCToNCS_ITEMFormatConverter
object
|
long |
lastModified(javax.servlet.ServletContext context)
Gets the time this converter code was last modified.
|
protected java.io.File format_transform_file
protected java.io.File version_transform_file
protected SimpleLuceneIndex index
public java.lang.String getFromFormat()
getFromFormat
in interface XMLDocumentFormatConverter
public java.lang.String getToFormat()
getToFormat
in interface XMLDocumentFormatConverter
public long lastModified(javax.servlet.ServletContext context)
lastModified
in interface XMLDocumentFormatConverter
context
- The context in which this is running.public java.lang.String convertXML(java.lang.String xml, XMLDocReader docReader, javax.servlet.ServletContext context)
convertXML
in interface XMLDocumentFormatConverter
xml
- XML input in the 'adn' format.docReader
- A lucene doc reader for this record.context
- The servlet context where this is running.protected void getXFormFilesAndIndex(javax.servlet.ServletContext context)
context
- NOT YET DOCUMENTED