public interface XMLDocumentFormatConverter
XMLConversionService to
convert content from one format to another. The input content may be in the form of a
String or a Lucene Document or both.XMLConversionService| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertXML(java.lang.String xml,
XMLDocReader docReader,
javax.servlet.ServletContext context)
Performs XML conversion from the input format to the output format and may use
content available in the given Lucene
Document. |
java.lang.String |
getFromFormat()
The metadataPrefix of the format from which this XMLFormatConverter converts, for
example "dlese_ims," "adn" or "oai_dc".
|
java.lang.String |
getToFormat()
The metadataPrefix of the format to which this XMLFormatConverter converts, for
example "dlese_ims," "adn" or "oai_dc".
|
long |
lastModified(javax.servlet.ServletContext context)
Gets the time this converter code was last modified.
|
java.lang.String getFromFormat()
java.lang.String getToFormat()
java.lang.String convertXML(java.lang.String xml,
XMLDocReader docReader,
javax.servlet.ServletContext context)
Document.
This method should retrun null if the conversion fails for any reason.xml - XML input in the 'from' format.docReader - A lucene doc reader for this record.context - The servlet context where this is running.long lastModified(javax.servlet.ServletContext context)
context - The context in which this is running.