|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of this interface are used by the 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
Method Summary | |
---|---|
String |
convertXML(String xml,
XMLDocReader docReader,
ServletContext context)
Performs XML conversion from the input format to the output format and may use content available in the given Lucene Document . |
String |
getFromFormat()
The metadataPrefix of the format from which this XMLFormatConverter converts, for example "dlese_ims," "adn" or "oai_dc". |
String |
getToFormat()
The metadataPrefix of the format to which this XMLFormatConverter converts, for example "dlese_ims," "adn" or "oai_dc". |
long |
lastModified(ServletContext context)
Gets the time this converter code was last modified. |
Method Detail |
public String getFromFormat()
public String getToFormat()
public String convertXML(String xml, XMLDocReader docReader, 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.
public long lastModified(ServletContext context)
context
- The context in which this is running.
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |